Skip to content

Commit 4e2e131

Browse files
committed
Allow vireo to use reference VCF for cellsnp-lite alone
1 parent 3ee1181 commit 4e2e131

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

singlecell/src/org/labkey/singlecell/pipeline/singlecell/VireoHandler.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
public class VireoHandler extends AbstractParameterizedOutputHandler<SequenceOutputHandler.SequenceOutputProcessor>
4040
{
4141
private static final String REF_VCF = "refVCF";
42+
private static final String SKIP_VCF_FOR_VIREO = "omitRefVcfForVireo";
4243

4344
public VireoHandler()
4445
{
@@ -59,6 +60,10 @@ public VireoHandler()
5960
put("performGenomeFilter", false);
6061
put("doNotIncludeInTemplates", true);
6162
}}, null),
63+
ToolParameterDescriptor.createExpDataParam(SKIP_VCF_FOR_VIREO, "Use Reference VCF for CellSnp-List Only", "If checked, the reference VCF will only be used for cellsnp-lite, not vireo", "checkbox", new JSONObject()
64+
{{
65+
66+
}}, false),
6267
ToolParameterDescriptor.create("storeCellSnpVcf", "Store CellSnp-Lite VCF", "If checked, the cellsnp donor calls VCF will be stored as an output file", "checkbox", null, false)
6368
));
6469
}
@@ -280,8 +285,10 @@ public void processFilesRemote(List<SequenceOutputFile> inputFiles, JobContext c
280285
}
281286

282287
int vcfFile = ctx.getParams().optInt(REF_VCF, -1);
288+
boolean skipVcfFileForVireo = ctx.getParams().optBoolean(SKIP_VCF_FOR_VIREO, false);
289+
283290
File refVcfSubset = null;
284-
if (vcfFile > -1)
291+
if (vcfFile > -1 && !skipVcfFileForVireo)
285292
{
286293
File vcf = ctx.getSequenceSupport().getCachedData(vcfFile);
287294
if (vcf == null || !vcf.exists())

0 commit comments

Comments
 (0)