Skip to content

Commit 873be95

Browse files
committed
Add bcftools fixploidy
1 parent 18431ea commit 873be95

File tree

2 files changed

+8
-14
lines changed

2 files changed

+8
-14
lines changed

SequenceAnalysis/src/org/labkey/sequenceanalysis/SequenceAnalysisModule.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ public static void registerPipelineSteps()
302302
SequencePipelineService.get().registerPipelineStep(new MendelianViolationReportStep.Provider());
303303
SequencePipelineService.get().registerPipelineStep(new SummarizeGenotypeQualityStep.Provider());
304304
SequencePipelineService.get().registerPipelineStep(new BcftoolsFillTagsStep.Provider());
305-
SequencePipelineService.get().registerPipelineStep(new BcftoolsSetGtStep.Provider());
305+
SequencePipelineService.get().registerPipelineStep(new BcftoolsFixploidyStep.Provider());
306306
SequencePipelineService.get().registerPipelineStep(new SVAnnotateStep.Provider());
307307

308308
//handlers

SequenceAnalysis/src/org/labkey/sequenceanalysis/run/analysis/BcftoolsSetGtStep.java renamed to SequenceAnalysis/src/org/labkey/sequenceanalysis/run/analysis/BcftoolsFixploidyStep.java

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,26 +23,26 @@
2323
import java.util.List;
2424
import java.util.stream.Collectors;
2525

26-
public class BcftoolsSetGtStep extends AbstractCommandPipelineStep<BcftoolsRunner> implements VariantProcessingStep
26+
public class BcftoolsFixploidyStep extends AbstractCommandPipelineStep<BcftoolsRunner> implements VariantProcessingStep
2727
{
28-
public BcftoolsSetGtStep(PipelineStepProvider<?> provider, PipelineContext ctx)
28+
public BcftoolsFixploidyStep(PipelineStepProvider<?> provider, PipelineContext ctx)
2929
{
3030
super(provider, ctx, new BcftoolsRunner(ctx.getLogger()));
3131
}
3232

33-
public static class Provider extends AbstractVariantProcessingStepProvider<BcftoolsSetGtStep> implements SupportsScatterGather
33+
public static class Provider extends AbstractVariantProcessingStepProvider<BcftoolsFixploidyStep> implements SupportsScatterGather
3434
{
3535
public Provider()
3636
{
37-
super("BcftoolsSetGtStep", "Bcftools Set GT", "bcftools", "Can be used to convert single dot ('.') genotypes to './.' for compatibility with more tools.", Arrays.asList(
37+
super("BcftoolsFixploidyStep", "Bcftools Fixploidy", "bcftools", "Can be used to convert single dot ('.') genotypes to './.' for compatibility with some tools.", Arrays.asList(
3838

3939
), null, null);
4040
}
4141

4242
@Override
43-
public BcftoolsSetGtStep create(PipelineContext ctx)
43+
public BcftoolsFixploidyStep create(PipelineContext ctx)
4444
{
45-
return new BcftoolsSetGtStep(this, ctx);
45+
return new BcftoolsFixploidyStep(this, ctx);
4646
}
4747
}
4848

@@ -53,7 +53,7 @@ public Output processVariants(File inputVCF, File outputDirectory, ReferenceGeno
5353

5454
List<String> options = new ArrayList<>();
5555
options.add(BcftoolsRunner.getBcfToolsPath().getPath());
56-
options.add("+setGT");
56+
options.add("+fixploidy");
5757

5858
options.add(inputVCF.getPath());
5959

@@ -79,12 +79,6 @@ public Output processVariants(File inputVCF, File outputDirectory, ReferenceGeno
7979

8080
options.add("--");
8181

82-
options.add("-t");
83-
options.add(".");
84-
85-
options.add("-n");
86-
options.add("./.");
87-
8882
BcftoolsRunner wrapper = getWrapper();
8983

9084
String bcfPluginDir = StringUtils.trimToNull(System.getenv("BCFTOOLS_PLUGINS"));

0 commit comments

Comments
 (0)