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

Assembly-based realignment filter #6143

Merged
merged 1 commit into from
Sep 12, 2019
Merged

Conversation

davidbenjamin
Copy link
Contributor

Closes #6030.

@takutosato This a complete rewrite of the realignment filter, so I would review FilterAlignmentArtifacts and its engine from scratch, not from the diff.

There's still a bit of tuning to be done, but it's already far superior to the old version and I want to be using the release jar as much as possible for MC3.

Copy link
Contributor

@takutosato takutosato left a comment

Choose a reason for hiding this comment

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

Looks great!

final List<OverlapDetector<BwaMemAlignment>> overlapDetectors = new ArrayList<>();
for (final List<BwaMemAlignment> unitigAlignments : allUnitigAlignments) {
final List<SimpleInterval> intervals = unitigAlignments.stream().map(RealignmentEngine::convertToInterval).collect(Collectors.toList());
final OverlapDetector<BwaMemAlignment> overlapDetector = new OverlapDetector<BwaMemAlignment>(-maxReasonableFragmentLength/2, -maxReasonableFragmentLength/2);
Copy link
Contributor

Choose a reason for hiding this comment

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

Intellij: new OverlapDetector<BwaMemAlignment> -> new OverlapDetector<>

@davidbenjamin davidbenjamin force-pushed the db_assembly_realignment branch from 12bec08 to 3b1c64a Compare September 12, 2019 01:19
@davidbenjamin davidbenjamin merged commit ff1b7ac into master Sep 12, 2019
@davidbenjamin davidbenjamin deleted the db_assembly_realignment branch September 12, 2019 04:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MultiVariantWalkerGroupedOnStart doesn't handle reads correctly
2 participants