Puumanamana / CoCoNet

Tool for unsupervised contig binning from viral metagenomes
Apache License 2.0
15 stars 1 forks source link

H5 file not found error message #3

Closed Yangzyangjin closed 2 years ago

Yangzyangjin commented 3 years ago

Dear CoCoNet developer,

I am really interested in your tool and installed the tool by following your documents. I tried to run it on your test dataset but it failed because of some errors. I don't really understand what the error message means. I wonder if you can help me with the issue.

Thanks!

Best wishes, Herina Yang

My code is: coconet run --fasta tests/sim_data/assembly.fasta --coverage tests/sim_data/*.bam --output output_test

Traceback (most recent call last): File "/root/miniconda3/envs/vamb/bin/coconet", line 8, in sys.exit(main()) File "/root/miniconda3/envs/vamb/lib/python3.7/site-packages/coconet/coconet.py", line 62, in main learn(cfg) File "/root/miniconda3/envs/vamb/lib/python3.7/site-packages/coconet/coconet.py", line 197, in learn model = load_model(cfg) File "/root/miniconda3/envs/vamb/lib/python3.7/site-packages/coconet/dl.py", line 67, in load_model input_shapes = config.get_input_shapes() File "/root/miniconda3/envs/vamb/lib/python3.7/site-packages/coconet/core/config.py", line 200, in get_input_shapes with h5py.File(self.io['h5'], 'r') as handle: File "/root/miniconda3/envs/vamb/lib/python3.7/site-packages/h5py/_hl/files.py", line 507, in init fid = make_fid(name, mode, userblock_size, fapl, fcpl, swmr=swmr) File "/root/miniconda3/envs/vamb/lib/python3.7/site-packages/h5py/_hl/files.py", line 220, in make_fid fid = h5f.open(name, flags, fapl=fapl) File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper File "h5py/h5f.pyx", line 106, in h5py.h5f.open FileNotFoundError: [Errno 2] Unable to open file (unable to open file: name = '/workspace/coconet/CoCoNet/output_test/coverage.h5', errno = 2, error message = 'No such file or directory', flags = 0, o_flags = 0)

Puumanamana commented 3 years ago

Hello Yangzyangjin,

What version of coconet did you install? The --coverage argument was used in a previous version, and now it's --bam

Since coconet might not throw an error if you have an incorrect argument name, maybe you can also try your same comment by fixing the flag.

Puumanamana commented 2 years ago

Hi Yuxuan,

Which command did you use?

Cedric

On Jan 3, 2022, at 11:41 AM, Yuxuan Du @.***> wrote:

Hello,

I use the coconut v1.1.0 and meet the same problem that the H5 file can not be found. I downloaded the software through pip.

Best

— Reply to this email directly, view it on GitHub https://github.com/Puumanamana/CoCoNet/issues/3#issuecomment-1004378196, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJMZTCFDDFPU6WPBQI53UA3UUIJYJANCNFSM5JDWES7Q. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you commented.

dyxstat commented 2 years ago

Thanks for your reply. I find that my problem has been solved in the previous issue.

Best, Yuxuan