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

Patch error: "Tuple Index out of Range" #152

Open
schmigle opened this issue Feb 6, 2023 · 1 comment
Open

Patch error: "Tuple Index out of Range" #152

schmigle opened this issue Feb 6, 2023 · 1 comment

Comments

@schmigle
Copy link

schmigle commented Feb 6, 2023

I'm trying to correct a long-read assembly with a short-read scaffold; I'm hoping to fill in the short gaps in the scaffold with the matching long-read sections. The RagTag "patch" function, if I understand correctly, is supposed to do exactly this. Running the Conda version in a Conda environment with Python 3.8.2., I use the following command:

ragtag.py patch liberibacter_central_ragtag.fasta liberibacter_central_assembly.fasta

But when I attempt to run it I get the following error:

Traceback (most recent call last):
File "/home/u30/moshesteyn/.conda/envs/py382/bin/ragtag_patch.py", line 518, in <module>
    main()
File "/home/u30/moshesteyn/.conda/envs/py382/bin/ragtag_patch.py", line 497, in main
    match_psg = aln_psg.max_weight_matching()
File "/home/u30/moshesteyn/.conda/envs/py382/lib/python3.8/site-packages/ragtag_utilities/ScaffoldGraph.py", line 824, in max_weight_matching
    for cc in nx.connected_components(G=cover_graph):
File "/home/u30/moshesteyn/.conda/envs/py382/lib/python3.8/site-packages/networkx/classes/backends.py", line 134, in wrapper
    graph = args[0]
IndexError: tuple index out of range

I've tried running with different files as reference or query, including running with a file of unordered contigs as my query. I've also tried running this with the --fill-only option. All yield the same error. Scaffolding works totally fine. Any ideas?

@johnsonj161
Copy link

I am also experiencing this issue.

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