Ragtag Merge IndexError for -f AGP file
nickgladman opened this issue · comments
Nick Gladman commented
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!