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

ValueError: not enough values to unpack (expected 2, got 1) #98

Open
neelam19051 opened this issue Feb 15, 2023 · 0 comments
Open

ValueError: not enough values to unpack (expected 2, got 1) #98

neelam19051 opened this issue Feb 15, 2023 · 0 comments

Comments

@neelam19051
Copy link

Hi i am using Clinker and it gives following error-

clinker P_aeruginosa_AR_0110.gbk P_aeruginosa_AR_0111.gbk P_aeruginosa_AR_455.gbk P_aeruginosa_ATCC_15692.gbk -r 4_dataforcli.txt -o out_4 -i 70 -p 4_plot.html
[15:35:03] INFO - Starting clinker
[15:35:03] ERROR - Failed to read range, please check it's in the right format
Traceback (most recent call last):
File "/home/bvs/anaconda3/envs/clinker/lib/python3.11/site-packages/clinker/main.py", line 46, in parse_range
scaffold, coordinates = string.split(":")
^^^^^^^^^^^^^^^^^^^^^
ValueError: not enough values to unpack (expected 2, got 1)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/home/bvs/anaconda3/envs/clinker/lib/python3.11/site-packages/clinker/main.py", line 59, in parse_ranges
scaffold, start, end = parse_range(string)
^^^^^^^^^^^^^^^^^^^
File "/home/bvs/anaconda3/envs/clinker/lib/python3.11/site-packages/clinker/main.py", line 49, in parse_range
raise ValueError("Expected format scaffold:start-stop (e.g. scaf_1:100-3000)") from e
ValueError: Expected format scaffold:start-stop (e.g. scaf_1:100-3000)
Traceback (most recent call last):
File "/home/bvs/anaconda3/envs/clinker/lib/python3.11/site-packages/clinker/main.py", line 46, in parse_range
scaffold, coordinates = string.split(":")
^^^^^^^^^^^^^^^^^^^^^
ValueError: not enough values to unpack (expected 2, got 1)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/home/bvs/anaconda3/envs/clinker/bin/clinker", line 10, in
sys.exit(main())
^^^^^^
File "/home/bvs/anaconda3/envs/clinker/lib/python3.11/site-packages/clinker/main.py", line 330, in main
clinker(
File "/home/bvs/anaconda3/envs/clinker/lib/python3.11/site-packages/clinker/main.py", line 120, in clinker
ranges = parse_ranges(ranges)
^^^^^^^^^^^^^^^^^^^^
File "/home/bvs/anaconda3/envs/clinker/lib/python3.11/site-packages/clinker/main.py", line 59, in parse_ranges
scaffold, start, end = parse_range(string)
^^^^^^^^^^^^^^^^^^^
File "/home/bvs/anaconda3/envs/clinker/lib/python3.11/site-packages/clinker/main.py", line 49, in parse_range
raise ValueError("Expected format scaffold:start-stop (e.g. scaf_1:100-3000)") from e
ValueError: Expected format scaffold:start-stop (e.g. scaf_1:100-3000)

And data 4_dataforcli.txt look like-

Chr1:215234-216385
Chr1:3817094-3818245
chr1:1837109-1838260
Chr1:471545-472696

If anyone know anything please let me know.

Thank you!

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