-
Notifications
You must be signed in to change notification settings - Fork 10
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
ValueError: invalid literal for int() with base 10 #11
Comments
I rerun the command again and with the following errors similar to above ones,
|
Hi, Ann,
I guess the file is refer to the genic_snps.tsv file in the MetaPop/07.Cleaned_SNPs dir with the header, right?
if so, then ref_base =segs[3] should be one base 'A', 'T', 'C', 'G', right? in my case, it becomes something else. and even with ATCG, int(segs[3]) will raise an error, int('T') so, what is the file here refer to, and how could this been fixed? thanks, |
Hi Pengfei - let me pass these errors on to Kenji. He's the mastermind behind the new code. We'll get back to you soon! |
That line caused the same error for another user. The problem was that the mapping tool he had used, BBmap, took more information from the deflines of his reads than the sequence ID, and the additional information contained whitespaces. The split to create segs in the mine_reads script is done by issuing a call to samtools, reading the output into python, and splitting the line on whitespace. If there are more whitespaces than expected, then the position of the read in the reference genome is shifted past the 4th position in the split line. We have a new version of the code up already that fixes this problem. The split happens on tabs (samtools output is tab-separated)) instead of separating on any whitespace. |
Hi, Ann,
I got an error when running metapop installed from pip with the following command:
metapop --input_samples ./bamfile --reference ./reference --norm tp-notp-166-metapop_ctfile.txt --threads 60
the installation should be fine since i run the toy dataset and it successfully done.
Following is error info, do you have any suggestions on how to fix it.
Thanks.
Pengfei
#error info
File "/home/PTPE2/Software/miniconda3/envs/metapop/lib/python3.7/site-packages/metapop/metapop_mine_reads.py", line 450, in do_mine_reads
res = access_read_ranges(selections_to_read, threads, output_directory)
File "/home/PTPE2/Software/miniconda3/envs/metapop/lib/python3.7/site-packages/metapop/metapop_mine_reads.py", line 202, in access_read_ranges
res = pool.map(read_one_range, ranges)
File "/home/PTPE2/Software/miniconda3/envs/metapop/lib/python3.7/multiprocessing/pool.py", line 268, in map
return self._map_async(func, iterable, mapstar, chunksize).get()
File "/home/PTPE2/Software/miniconda3/envs/metapop/lib/python3.7/multiprocessing/pool.py", line 657, in get
raise self._value
ValueError: invalid literal for int() with base 10: 'KQGRI2_20_08_k141_904564'
The text was updated successfully, but these errors were encountered: