-
Notifications
You must be signed in to change notification settings - Fork 273
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
[Feature request] option to ignore soft-clipped parts in get_aligned_pairs() #1292
Comments
I've added PR #1293 to cover this need, and expanded the tests to cover this new code path. |
I don't believe there is a good way to do this at the moment, other than by looking at the CIGAR strings by hand as you suggest. Thank you for your PR @DrYak but I would like to consider a more general approach instead: an option (e.g. So @LaraFuhrmann would ignore the tuples that say CSOFT_CLIP. And the facility may be useful for other use cases. |
@jmarshall that's indeed a more elegant solution covering more uses case. I had at some point though about such an approach but went for the above PR to keep the changeset small. I'll loko into your suggestion, but I fear more tests will need to be written 😅 |
I had a bit of time this evening after work, and wrote another quick PR.
Now available in PR #1294 |
Hi, @jmarshall! Did you had time to check if my proposal of |
Hi @jmarshall! |
Dear developers,
thanks a lot for this great package, we are using it extensively for our scripts.
We are wondering if it would be possible to add the option to ignore or "clip-out" the soft-clipped parts of the reads in the function
get_aligned_pairs
?Or is there an easy other way to do that without checking the cigar strings?
Thanks a lot,
Lara
The text was updated successfully, but these errors were encountered: