Skip to content

Commit 5a55965

Browse files
committed
Support maxDEPTH for cellsnp-lite
1 parent 1653f87 commit 5a55965

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

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

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ public VireoHandler()
3636
ToolParameterDescriptor.create("nDonors", "# Donors", "The number of donors to demultiplex", "ldk-integerfield", new JSONObject(){{
3737
put("allowBlank", false);
3838
}}, null),
39+
ToolParameterDescriptor.create("maxDepth", "Max Depth", "At a position, read maximally INT reads per input file, to avoid excessive memory usage", "ldk-integerfield", new JSONObject(){{
40+
put("minValue", 0);
41+
}}, null),
3942
ToolParameterDescriptor.create("contigs", "Allowable Contigs", "A comma-separated list of contig names to use", "textfield", new JSONObject(){{
4043

4144
}}, "1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20")
@@ -72,7 +75,7 @@ public SequenceOutputProcessor getProcessor()
7275
return new Processor();
7376
}
7477

75-
public class Processor implements SequenceOutputProcessor
78+
public static class Processor implements SequenceOutputProcessor
7679
{
7780
@Override
7881
public void init(JobContext ctx, List<SequenceOutputFile> inputFiles, List<RecordedAction> actions, List<SequenceOutputFile> outputsToCreate) throws UnsupportedOperationException, PipelineJobException
@@ -178,6 +181,13 @@ public void processFilesRemote(List<SequenceOutputFile> inputFiles, JobContext c
178181
cellsnp.add("--minCOUNT");
179182
cellsnp.add("100");
180183

184+
String maxDepth = StringUtils.trimToNull(ctx.getParams().optString("maxDepth"));
185+
if (maxDepth != null)
186+
{
187+
cellsnp.add("--maxDEPTH");
188+
cellsnp.add(maxDepth);
189+
}
190+
181191
cellsnp.add("--gzip");
182192

183193
ReferenceGenome genome = ctx.getSequenceSupport().getCachedGenome(inputFiles.get(0).getLibrary_id());

0 commit comments

Comments
 (0)