|
3 | 3 | import htsjdk.samtools.util.Interval; |
4 | 4 | import org.labkey.api.pipeline.PipelineJobException; |
5 | 5 | import org.labkey.api.sequenceanalysis.pipeline.AbstractVariantProcessingStepProvider; |
| 6 | +import org.labkey.api.sequenceanalysis.pipeline.CommandLineParam; |
6 | 7 | import org.labkey.api.sequenceanalysis.pipeline.PipelineContext; |
7 | 8 | import org.labkey.api.sequenceanalysis.pipeline.PipelineStepProvider; |
8 | 9 | import org.labkey.api.sequenceanalysis.pipeline.ReferenceGenome; |
@@ -41,7 +42,8 @@ public Provider() |
41 | 42 | { |
42 | 43 | super("SelectSamples", "Select Specific Samples", "GATK SelectVariants", "A VCF will be generated containing only the samples specified below.", Arrays.asList( |
43 | 44 | ToolParameterDescriptor.create(SAMPLE_INCLUDE, "Select Sample(s) Include", "Only variants of the selected type(s) will be included", "sequenceanalysis-trimmingtextarea", null, null), |
44 | | - ToolParameterDescriptor.create(SAMPLE_EXCLUDE, "Select Samples(s) To Exclude", "Variants of the selected type(s) will be excluded", "sequenceanalysis-trimmingtextarea", null, null) |
| 45 | + ToolParameterDescriptor.create(SAMPLE_EXCLUDE, "Select Samples(s) To Exclude", "Variants of the selected type(s) will be excluded", "sequenceanalysis-trimmingtextarea", null, null), |
| 46 | + ToolParameterDescriptor.createCommandLineParam(CommandLineParam.createSwitch("--allow-nonoverlapping-command-line-samples"), "allowNnonoverlappingSamples", "Allow non-overlapping Samples", "Normally the job will fail is samples are selected that do not exist in the VCF. If checked, this will be allowed.", "checkbox", null, null) |
45 | 47 | ), PageFlowUtil.set("/sequenceanalysis/field/TrimmingTextArea.js"), "https://software.broadinstitute.org/gatk/"); |
46 | 48 | } |
47 | 49 |
|
@@ -72,6 +74,8 @@ public Output processVariants(File inputVCF, File outputDirectory, ReferenceGeno |
72 | 74 | }); |
73 | 75 | } |
74 | 76 |
|
| 77 | + options.addAll(getClientCommandArgs()); |
| 78 | + |
75 | 79 | File outputVcf = new File(outputDirectory, SequenceTaskHelper.getUnzippedBaseName(inputVCF) + ".selectSamples.vcf.gz"); |
76 | 80 | getWrapper().execute(genome.getWorkingFastaFile(), inputVCF, outputVcf, options); |
77 | 81 | if (!outputVcf.exists()) |
|
0 commit comments