-
Notifications
You must be signed in to change notification settings - Fork 2
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
TypeError triggered by "NoneType" when running kindel consensus
with realignment
#23
Comments
Hi @sivico26, thanks for describing the problem so clearly and reproducibly. I have reproduced with your BAM file and will attempt a fix after the weekend. Thanks |
Thanks for your patience. I've found and fixed the problem identifying overlap between soft-clipped reads spanning 1268-1748 in your debug sample. The longest common subsequence function was failing to identify a valid match, which I've fixed. Your reads appear to support a large deletion of 466 bases. soft clipped consensus from position 1268 (left side of gap):
soft clipped consensus from position 1748 (right side of gap):
Longest common consensensus subsequence: Below are the results from a testing branch for your sequences. Once I've done more testing I will release a new version including the fixes.
Your data is an excellent test case – would you mind if I use it in this repository for testing purposes? Thanks, |
Hi @bede, That sounds fantastic, thank you for looking into this, and continue supporting |
Thank you for kinds words. Kindel was overdue some attention, and I think these fixes warrant a v1 release which I'll release and push to PyPI as soon as reasonably possible. Handling of deletions is improved significantly. You can follow my progress in the v1 branch but I'll reply here when ready. A perfect consensus for the bam you provided is now generated in a single pass:
|
Hi @sivico26 , do you know if the pipeline you're using can accommodate the minimum Python version required by Kindel increasing to 3.8? |
Excellent, thanks |
|
Also, I have added an example using your data to the README to show the plotting functionality. If you would rather I removed it, please let me know. It is a nice example of |
Hi there,
I have issues generating a consensus with realignment for an amplicon marker with Nanopore data.
This is what I am running.
If I deactivate the realignment option, it runs without trouble. However, I am highly interested in the soft-clipped sequences, and being able to rescue them is why I am using
kindel
in the first place. This is how it looks:So there is a big gap in the reference, but it could be filled with the soft-clipped bases. So any idea why this TypeError is being raised, and what is the logic behind is appreciated. If you need any more info, please let me know.
Here is the data: debug.bam.txt (remove the .txt extension before reproducing the error)
The text was updated successfully, but these errors were encountered: