Skip to content

Python errors in running GenoVi #5

@iwilkie

Description

@iwilkie

Hi,

I was hoping to try out GenoVi to visualise a few of my genomes, but have run into an issue I was hoping you could help me with.

From what I can tell there seem to be two different issues, one is something related to the cairoSVG library, which doesn't seem to be a major issue, whereas the other one actually stops the run and seems to be related to with the GenoVi python script itself. Here's the command I submitted and the output:

$ genovi -i PROKKA_02082023.gbk -cs paradise -s complete --size --cogs_unclassified --title 'M30B9 sp.' --title_position top --italic_words 1 -te

There's been an error finding cairoSVG library, so PNG images might be different from expected. Please prefer using SVG output.
/Users/iwilkie/opt/anaconda3/envs/genovi/lib/python3.7/site-packages/Bio/GenBank/Scanner.py:1219: BiopythonParserWarning: Premature end of file in sequence data
  "Premature end of file in sequence data", BiopythonParserWarning
genovi-temp/contig_1-genovi_bands.kar created succesfully.
genovi-temp/contig_1-genovi_tRNA_pos.txt created succesfully.
genovi-temp/contig_1-genovi_tRNA_neg.txt created succesfully.
genovi-temp/contig_1-genovi_rRNA_pos.txt created succesfully.
genovi-temp/contig_1-genovi_rRNA_neg.txt created succesfully.
genovi-temp/contig_1-genovi_CDS_pos.txt created succesfully.
genovi-temp/contig_1-genovi_CDS_neg.txt created succesfully.
Transforming GenBank record LBDLHKHK_1 to .fna
Done
Drawing 1...
Traceback (most recent call last):
  File "/Users/iwilkie/opt/anaconda3/envs/genovi/bin/genovi", line 8, in <module>
    sys.exit(main())
  File "/Users/iwilkie/opt/anaconda3/envs/genovi/lib/python3.7/site-packages/scripts/GenoVi.py", line 685, in main
    visualiseGenome(*get_args())
  File "/Users/iwilkie/opt/anaconda3/envs/genovi/lib/python3.7/site-packages/scripts/GenoVi.py", line 414, in visualiseGenome
    pCDS_colour = CDS_positive, nCDS_colour = CDS_negative, tRNA_colour = tRNA, rRNA_colour = rRNA, GC_content_colour = GC_content, font_colour = font_colour)
  File "/Users/iwilkie/opt/anaconda3/envs/genovi/lib/python3.7/site-packages/scripts/addText.py", line 52, in addText
    source = open(inFile)
FileNotFoundError: [Errno 2] No such file or directory: 'genovi/genovi.svg'

Would you happen to have any recommendations for how to fix/avoid this issue, and how to go forward?

I really appreciate any help you can provide, thanks in advance!

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions