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

Progress logger can count templates with no primary alignment #9

Merged
merged 5 commits into from
Mar 25, 2022

Conversation

pamelarussell
Copy link
Contributor

No description provided.

@pamelarussell pamelarussell requested review from nh13 and tfenne March 24, 2022 20:15
Copy link
Member

@nh13 nh13 left a comment

Choose a reason for hiding this comment

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

I'd question why we have a template with primary alignment, that seems like an issue with the input data.

@@ -56,7 +56,7 @@ class SvPileup
val tracker = new BreakpointTracker()

Bams.templateIterator(source)
.tapEach(t => progress.record(t.r1.getOrElse(t.r2.get)))
.tapEach(_ => progress.record())
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
.tapEach(_ => progress.record())
.tapEach(t => progress.record(t.allReads.head))

@pamelarussell pamelarussell requested a review from nh13 March 24, 2022 21:16
@pamelarussell
Copy link
Contributor Author

I'd question why we have a template with primary alignment, that seems like an issue with the input data.

This can happen if you filter a bam file on some criteria and lose the primary alignment of a template.

@pamelarussell pamelarussell merged commit aba57a4 into main Mar 25, 2022
@pamelarussell pamelarussell deleted the bugfix/record-template-no-primary branch March 25, 2022 22:10
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