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

test data issues: division by zero #11

Open
anke-king opened this issue Jul 16, 2024 · 0 comments
Open

test data issues: division by zero #11

anke-king opened this issue Jul 16, 2024 · 0 comments

Comments

@anke-king
Copy link

I tried running with the test data and got the following issue:
K-mer analysis started...
Traceback (most recent call last):
File "/usr/local/bin/tandemquast", line 145, in
main()
File "/home/ubuntu/miniconda3/envs/flye/lib/python3.9/site-packages/click/core.py", line 1157, in call
return self.main(*args, **kwargs)
File "/home/ubuntu/miniconda3/envs/flye/lib/python3.9/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
File "/home/ubuntu/miniconda3/envs/flye/lib/python3.9/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/ubuntu/miniconda3/envs/flye/lib/python3.9/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
File "/usr/local/bin/tandemquast", line 117, in main
kmer_analysis.do(assemblies, reads_fname, out_dir, no_reuse)
File "/home/ubuntu/TandemTools/scripts/kmer_analysis.py", line 156, in do
f.write("Single clump\t%.2f (%d)\n" % (len(one_clump)*100.0/all_kmers,len(one_clump)))
ZeroDivisionError: float division by zero

my command was:
tandemquast --nano TandemTools/test_data/simulated_reads.fasta TandemTools/test_data/simulated_polished.fa -o TandemTools/test_data/simulated_res -t 16

I also tried to run it without the --only-polish flag and got this error:
Analyzing simulated-polished assembly
Traceback (most recent call last):
File "/usr/local/bin/tandemquast", line 145, in
main()
File "/home/ubuntu/miniconda3/envs/flye/lib/python3.9/site-packages/click/core.py", line 1157, in call
return self.main(*args, **kwargs)
File "/home/ubuntu/miniconda3/envs/flye/lib/python3.9/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
File "/home/ubuntu/miniconda3/envs/flye/lib/python3.9/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/ubuntu/miniconda3/envs/flye/lib/python3.9/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
File "/usr/local/bin/tandemquast", line 89, in main
polishing.do(assemblies, reads_fname, hifi_reads_fname, out_dir, tmp_dir)
File "/home/ubuntu/TandemTools/scripts/polishing.py", line 29, in do
select_kmers.do(assemblies, reads_fname, reads_fname, hifi_reads_fname, out_dir, tmp_dir, no_reuse=True, only_polish=True)
File "/home/ubuntu/TandemTools/scripts/select_kmers.py", line 156, in do
max_occ_in_assembly = max(1, get_fasta_len(assembly_fname) // 100000)
TypeError: unsupported operand type(s) for //: 'NoneType' and 'int'

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

1 participant