-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Labels
bugSomething isn't workingSomething isn't working
Description
I'm getting the following error with a megahit assembly:
File "/cluster/gjb_lab/jabbott/miniconda3/envs/metacoag/MetaCoAG/src/metacoag_main.py", line 269, in <module>
abundance_file=abundance_file)
File "/cluster/gjb_lab/jabbott/miniconda3/envs/metacoag/MetaCoAG/src/metacoag_utils/feature_utils.py", line 237, in get_cov_len_megahit
n_samples = len(coverages[0])
KeyError: 0
Looking at the code, coverages is a dict however in my case it has no entry with a key of '0', hence it falls over. If my interpretation is correct, then if there was a key of '0' it would contain the coverage of contig 0. Changing feature_utils.py line 237 to:
n_samples=len(coverages)
allows it to proceed, although I'm not convinced the returned value is actually what was intended.
Does this sound like the correct approach?
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working