Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I encountered an error using the script coverage_table_convert.py #20

Open
rdenise opened this issue Feb 7, 2023 · 1 comment
Open

Comments

@rdenise
Copy link

rdenise commented Feb 7, 2023

Description

I encountered an error using the script coverage_table_convert.py with the following command line:

coverage_table_convert.py -i comparison_binning/genomad/databases/jgi_matrix/contigs_split/jgi.ZSM103.jgi -o comparison_binning/genomad/databases/jgi_matrix/contigs_split/jgi.ZSM103.vRhyme.jgi

The error message is:

Traceback (most recent call last):
File "miniconda3/envs/vrhyme/bin/coverage_table_convert.py", line 43, in <module>
convert(args.i[0], args.o[0])
File "miniconda3/envs/vrhyme/bin/coverage_table_convert.py", line 26, in convert
sd = float(line[n+1])**0.5
IndexError: list index out of range

Steps to Reproduce

  1. Run the command line provided above

Actual Behaviour

An IndexError is raised, indicating that the list line does not have the expected number of elements.

Additional Information

  • Software version: vRhyme v1.1.0 (installed by conda)
  • OS: Ubuntu 22.04.1 LTS

jgi.ZSM103.jgi.zip

@KrisKieft
Copy link
Member

Hi,

Thank you for attaching the file. It looks like the JGI coverage table you have is missing the variance column, which ends in "-var". This should be standard column in jgi_summarize_bam_contig_depths --outputDepth. vRhyme assumes the input JGI coverage file has 5 total column.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants