-
Notifications
You must be signed in to change notification settings - Fork 45
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
intronerate IndexError: list index out of range error #41
Comments
Thanks, I will work on this ASAP. I am trying to build a reproducible example-- do you know what gene is causing the problem? Can you send the whole directory for that gene (including the interleaved.fasta and contigs.fasta) so I can test it including the main HybPiper scripts? Just adding some of the rest of the info you provided via e-mail: |
This should be fixed in the develop branch. The problem was in referencing the wrong part of the GFF file when attempting to sort out overlapping gene annotations. If you download |
Hello,
It happens only with one probe set and only with some samples. I can mail You the affected data, if necessary. I'm running HybSeq cloned from the git. |
Hello -- did you try the development version? There is an updated version of https://github.com/mossmatters/HybPiper/blob/develop/intronerate.py |
Hello, thank You. The development version works well. |
I'm getting an "index out of range error" from intronerate.py for certain combinations of genes and samples when the following line of code is reached:
return [hits[kept_indicies[x]] for x in sorted(non_overlapping_indicies)]#.sort()]
The error doesn't seem to occur with the pre-herbarium-update code.
These are the values of the relevant list variables just before the error is triggered:
kept_indices
: [0, 4, 5]non_overlapping indices
: [0, 4]Therefore, it would seem that the second element (i.e. 4) in
non_overlapping indices
is being used as the index to accesskept_indices
, which means it is trying to access the fith element inkept_indices
when there are actually only three elements present.I don't know why this is happening. For what it's worth,
hits
contains 6 elements at this point.The text was updated successfully, but these errors were encountered: