Skip to content

Commit

Permalink
Fix BWA-Mem2 inheritance
Browse files Browse the repository at this point in the history
  • Loading branch information
bbimber committed Nov 27, 2024
1 parent a79c0ec commit 9c0f8c2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,12 @@ public BWAMem2Wrapper(@Nullable Logger logger)
super(logger);
}

public static class BWAMem2AlignmentStep extends BWAAlignmentStep<BWAMem2Wrapper>
public static class BWAMem2AlignmentStep extends BWAMemAlignmentStep
{
public BWAMem2AlignmentStep(AlignmentStepProvider<?> provider, PipelineContext ctx)
{
super(provider, ctx, new BWAMem2Wrapper(ctx.getLogger()));
}

@Override
public boolean doAddReadGroups()
{
return false;
}
}

public static class Provider extends AbstractAlignmentStepProvider<AlignmentStep>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,14 @@ public BWAMemWrapper(@Nullable Logger logger)

public static class BWAMemAlignmentStep extends BWAAlignmentStep<BWAMemWrapper>
{
public BWAMemAlignmentStep(AlignmentStepProvider<?> provider, PipelineContext ctx, BWAMemWrapper wrapper)
{
super(provider, ctx, wrapper);
}

public BWAMemAlignmentStep(AlignmentStepProvider<?> provider, PipelineContext ctx)
{
super(provider, ctx, new BWAMemWrapper(ctx.getLogger()));
this(provider, ctx, new BWAMemWrapper(ctx.getLogger()));
}

@Override
Expand Down

0 comments on commit 9c0f8c2

Please sign in to comment.