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

Error while running vSNP 3.20 "step1" with nanopore data #7

Open
duceppemo opened this issue May 8, 2024 · 3 comments
Open

Error while running vSNP 3.20 "step1" with nanopore data #7

duceppemo opened this issue May 8, 2024 · 3 comments

Comments

@duceppemo
Copy link
Contributor

Command used:
vsnp3_step1.py \ -r1 "$r1" \ --spoligo \ --nanopore

Error message:
Traceback (most recent call last): File "/home/bioinfo/miniconda3/envs/vsnp3.20/bin/vsnp3_step1.py", line 273, in <module> vsnp.run() File "/home/bioinfo/miniconda3/envs/vsnp3.20/bin/vsnp3_step1.py", line 158, in run if alignment.zero_coverage.ave_coverage < 40 or alignment.DUPLICATION_RATIO > .80 or float(fastq_stats.R1.passQ20) < 50.0: ValueError: could not convert string to float: '11,015'
Looks like it's caused by the use of a comma (",") as thousands separator. It might be link to the host system language preferences if you don't get that error on your dev / production machine.

@duceppemo
Copy link
Contributor Author

Or it could be the decimal separator too. French keyboards used the comma and decimal separator. I definitely don't have 11,015X coverage, so it would make more sense that it's the decimal separator.

@stuber
Copy link
Contributor

stuber commented May 8, 2024

I've seen something similar. Try this and let's see if it fixes it.

Before running the script run export LC_ALL=C? Will look something like this.

export LC_ALL=C

vsnp3_step1.py -r1 *_R1*fastq.gz -r *_R2*fastq.gz

@stuber
Copy link
Contributor

stuber commented May 8, 2024

Also, I see you're using the --nanopore option. With this option bcftools is used. bcftools has not been working from conda lately. If you have issues with it let me know and I'll send what I've used to fix it.

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