Giter Site home page Giter Site logo

Comments (5)

HilbigA avatar HilbigA commented on September 8, 2024

My apologies, I misunderstood that files need to be provided as a list for all filetypes that arent GFF3. While providing a list with the gbk files worked well on a test-subset, I am now running into this error:

.gbk
Traceback (most recent call last):
File "/home/ubuntu/miniconda3/bin/panaroo", line 10, in
sys.exit(main())
File "/home/ubuntu/miniconda3/lib/python3.9/site-packages/panaroo/main.py", line 298, in main
files.append(create_temp_gff3(line[0], None, temp_dir))
File "/home/ubuntu/miniconda3/lib/python3.9/site-packages/panaroo/prokka.py", line 84, in create_temp_gff3
convert_gbk_gff3(gff_file, temp_dir + "temp_gffs/" + prefix + '.gff', True)
File "/home/ubuntu/miniconda3/lib/python3.9/site-packages/panaroo/biocode_convert.py", line 150, in convert_gbk_gff3
gene.add_mRNA(mRNA)
UnboundLocalError: local variable 'gene' referenced before assignment

Any ideas whats causing that? thanks a lot.

from panaroo.

HilbigA avatar HilbigA commented on September 8, 2024

I solved my issue by chucking gff and gbk files together and using a list of those as input, which worked.

However I am leaving the issue open as it is not clear to me why one subset of the .gbk files was rejected (see 2nd post). Is this connected to the --compliance tag in Prokka?

from panaroo.

gtonkinhill avatar gtonkinhill commented on September 8, 2024

Hi,

Sorry for the slow response and I'm glad you got it running.

If it's possible, it would be great if you could share one of the gbk files that caused this error along with the exact command you ran. This would help me a lot in working out what went wrong.

from panaroo.

HilbigA avatar HilbigA commented on September 8, 2024

Hi, now my apologies for the late reply, I must have missed the notification that you responded. Here is the command I used:
ls .g > list.txt
panaroo -i list.txt -o panaroo_out --clean-mode strict --remove-invalid-genes ->

Github is saying that I mustnt upload gbk format - how do I provide this?

The gbk files that worked fine were produced with the fq2dna pipeline (https://gitlab.pasteur.fr/GIPhy/fq2dna), here however the gff files are not routinely provided with the output but gbk only. The gbk files that did not work were generated by me when running Prokka on contigs that were pre-assembled. From this prokka run I did myself I had the gff files that worked with panaroo, command (where var is my contig.fasta file and pref the basename):
prokka $var --prefix $pref --usegenus --outdir ../ProkkaOut/$pref --kingdom Bacteria --genus Streptococcus --species agalactiae --strain $pref

Thanks a lot for looking into this!

from panaroo.

gtonkinhill avatar gtonkinhill commented on September 8, 2024

Hi,

Apologies, I lost track of this issue. I have now added extra error messages to v1.3.4 which indicate that Panaroo requires GBK files that are compliant with Genbank/ENA/DDJB.

from panaroo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.