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

Ragtag Merge IndexError for -f AGP file #177

Open
nickgladman opened this issue Feb 7, 2024 · 0 comments
Open

Ragtag Merge IndexError for -f AGP file #177

nickgladman opened this issue Feb 7, 2024 · 0 comments

Comments

@nickgladman
Copy link

nickgladman commented Feb 7, 2024

Hello,

First off: we've had great results with the software so thanks so much for developing and maintaining it! I'm running v2.1.0 right now.

I am working on merging multiple assemblies and trying the AGP file list--csv file with [agp_filename,weight]. And no matter how I structure the file I'm getting the following error:

Traceback (most recent call last):
  File "/home/nicholas.gladman/software/.conda/envs/ragtag/bin/ragtag_merge.py", line 430, in <module>
    main()
  File "/home/nicholas.gladman/software/.conda/envs/ragtag/bin/ragtag_merge.py", line 354, in main
    weight_list.append(float(fields[1]))
IndexError: list index out of range

Here is the script:

ragtag.py merge \
-o file_output \
--gap-func 'min' \
-f agp_file_1.txt \
-l 10000 \
primary_hifiasm_asm.fasta

Here are some of the ways I've structured the AGP file list (agp_file_1.txt) just to see if I'm not entering the float values correctly:

filename1.agp,1
filename2.agp,1
filename3.agp,1
filename1.agp,4
filename2.agp,1
filename3.agp,1
filename1.agp,1.0
filename2.agp,1.0
filename3.agp,1.0
filename1.agp,0.40
filename2.agp,0.30
filename3.agp,0.30
filename1.agp,0.50
filename2.agp,0.25
filename3.agp,0.25

Thanks for your help!

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