Hi all. I am having trouble converting one of the output files in ipyrad to the finerad format. The alleles file for iPyrad v.0.9 is slightly different then previous version when using a reference genome, and I keep running into the following error when using the finerad_input.py script:
Traceback (most recent call last):
File "./fineRADstructure-tools/finerad_input.py", line 183, in
main()
File "./fineRADstructure-tools/finerad_input.py", line 176, in main
pyrad_to_finerad(filename, outfile, minsample)
File "./fineRADstructure-tools/finerad_input.py", line 101, in pyrad_to_finerad
snp += allele[pos]
IndexError: string index out of range
I noticed with a few changes that changing the way that the loci are identified helped a little. In this version, with reference genome, by the end of each loci you have an identifier like |0:Contig name:Position of locus in the contig|, instead of the simpler |0| with denovo assemblies. I think these colons are messing up the script a little bit, so I dropped all this extra info in the identifiers using sed, but the script still doesn't work. Funny thing is that if I subset my alleles file for the first locus only, it works, but when I try to use the script for the complete alleles file, it doesn't. Does anyone know how to address this issue?
Thank you.