Skip to content
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

Ignore inconsistent soft-clips #90

Merged
merged 1 commit into from
Mar 24, 2021
Merged

Conversation

hdashnow
Copy link
Collaborator

When determining the bounds for a locus, ignore soft-clips that are inconsistent with the center mass.
Ignore left soft-clips that are too far to the right, and right soft-clips that are too far to the left of the center mass.
"Too far" is half the median fragment size.

Possible addition: re-calculate the center mass and far left and right bounds after removing those soft clips?

var b = cl.bounds(max_clip_dist)
check b.left == 223
check b.right == 224
check b.left_most == 100
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should it drop (or flag) the read(s) that don't fit with the event?

Copy link
Collaborator Author

@hdashnow hdashnow Mar 12, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that would be better. Because then we could update the center mass and the start/end of the event accordingly. Ideas on how to code that?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@brentp what are you thinking about this? Do you think it's worth changing the implementation to completely drop those reads rather than just excluding them from the left/right bounds calculation?

@hdashnow hdashnow merged commit bcdaf4a into quinlan-lab:dev Mar 24, 2021
@hdashnow hdashnow deleted the softclips branch March 24, 2021 19:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants