-
Notifications
You must be signed in to change notification settings - Fork 8
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
IndexError: list index out of range #41
Comments
The error is caused by the lack of coverage at a given locus. An example case is when there are only 2 support reads for a given locus and each has a different repeat size. And if the |
Hi, I have been having the same issue. I tried changing
Traceback (most recent call last):
File "/usr/local/bin/straglr.py", line 101, in <module>
main()
File "/usr/local/bin/straglr.py", line 93, in main
variants = tre_finder.genotype(args.loci)
File "/usr/local/lib/python3.10/site-packages/src/tre.py", line 1426, in genotype
return self.collect_alleles(loci)
File "/usr/local/lib/python3.10/site-packages/src/tre.py", line 1402, in collect_alleles
tre_variants = self.get_alleles(loci)
File "/usr/local/lib/python3.10/site-packages/src/tre.py", line 1252, in get_alleles
self.update_refs(variants, genome_fasta)
File "/usr/local/lib/python3.10/site-packages/src/tre.py", line 1271, in update_refs
refs = self.extract_refs_trf(trf_input)
File "/usr/local/lib/python3.10/site-packages/src/tre.py", line 607, in extract_refs_trf
data_motif = cols[3]
IndexError: list index out of range |
This is a different problem. Looks like there is something wrong when the script parsed the results from the TRF run. |
I am running STRaglr 1.5.0 (the current release) and get the following error on multiple CRAMs:
Any suggestions as to what might cause this?
The text was updated successfully, but these errors were encountered: