Code Monkey home page Code Monkey logo

Comments (5)

arodel21 avatar arodel21 commented on June 1, 2024

Hello @marade.

Thanks for pointing this out.

Could you please share the error log with me to have a better idea of how to fix this?

from genovi.

marade avatar marade commented on June 1, 2024

sequence.gb is a file downloaded from GenBank today:

$ genovi -o genovi/blah -i sequence.gb -s complete
[Errno 2] No such file or directory: 'genovi/blah-temp/contig_1-genovi/blah.faa'
Error when transforming gbk to faa.
/home/ubuntu/miniconda3/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
Traceback (most recent call last):
File "/home/ubuntu/miniconda3/envs/genovi/bin/genovi", line 8, in
sys.exit(main())
File "/home/ubuntu/miniconda3/envs/genovi/lib/python3.7/site-packages/scripts/GenoVi.py", line 685, in main
visualiseGenome(*get_args())
File "/home/ubuntu/miniconda3/envs/genovi/lib/python3.7/site-packages/scripts/GenoVi.py", line 341, in visualiseGenome
sizes, cogs_p, cogs_n, lengths, chrms, hist, wanted_cogs = base(file, temp_folder + "/" + output_file_part, output_file + "/" + output_file, True, True, cogs_classified, cogs_classified, False, True, deepnog_confidence_threshold, verbose, wanted_cogs=wanted_cogs)
File "/home/ubuntu/miniconda3/envs/genovi/lib/python3.7/site-packages/scripts/create_raw.py", line 494, in base
sizes, _, _, lengths = create_kar(gbk_file, tmp, output, complete)
File "/home/ubuntu/miniconda3/envs/genovi/lib/python3.7/site-packages/scripts/create_raw.py", line 139, in create_kar
with open(output_file, 'w') as output:
FileNotFoundError: [Errno 2] No such file or directory: 'genovi/blah-temp/contig_1-genovi/blah_bands.kar'

from genovi.

arodel21 avatar arodel21 commented on June 1, 2024

Hi @marade. I apologize for the delay in replying.

I have committed an update related to the handling of relative paths. It is not yet included in the installable version of GenoVi, but you can find it in the Github repo. It will soon be added to a new version which will include other improvements.

Please do let us know if you have further quesitons.

from genovi.

marade avatar marade commented on June 1, 2024

Sounds good @arodel21. Thanks!

from genovi.

marade avatar marade commented on June 1, 2024

I tried using GenoVi again and found that relative paths still don't work. I see there's a commit related to this here:

fdd3c5d

The code for this commit is not nearly sufficient to address the problem. I'd like to emphasize that GenoVi is fundamentally broken when it comes to handling paths. I'll recommend again extensive use of Pathlib Path().absolute() or os.path.abspath() so that you can handle relative paths correctly.

from genovi.

Related Issues (19)

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.