Skip to content

Commit 586950e

Browse files
committed
Add support for nimble alignment output
1 parent f3d6192 commit 586950e

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

singlecell/src/org/labkey/singlecell/run/NimbleAlignmentStep.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ public class NimbleAlignmentStep extends AbstractParameterizedOutputHandler<Sequ
5151
public static final String REF_GENOMES = "refGenomes";
5252
public static final String ALIGN_TEMPLATE = "alignTemplate";
5353
public static final String GROUP_BY_LINEAGE = "groupByLineage";
54+
public static final String ALIGN_OUTPUT = "alignmentOutput";
5455

5556
public NimbleAlignmentStep()
5657
{
@@ -66,6 +67,9 @@ public NimbleAlignmentStep()
6667
}}, null),
6768
ToolParameterDescriptor.create(GROUP_BY_LINEAGE, "Group By Lineage", "If checked, results will be aggregated by lineage", "checkbox", new JSONObject(){{
6869
put("checked", true);
70+
}}, true),
71+
ToolParameterDescriptor.create(ALIGN_OUTPUT, "Create Alignment/Debug Output", "If checked, an alignment-level summary TSV will be created", "checkbox", new JSONObject(){{
72+
put("checked", true);
6973
}}, true)
7074
));
7175
}
@@ -304,6 +308,13 @@ private File doAlignment(JobContext ctx, int genomeId, File refJson, SequenceOut
304308
alignArgs.add("-l");
305309
alignArgs.add("/work/nimbleDebug.txt");
306310

311+
boolean debugOutput = ctx.getParams().optBoolean(ALIGN_OUTPUT, false);
312+
if (debugOutput)
313+
{
314+
alignArgs.add("-a");
315+
alignArgs.add("/work/nimbleAlignment.txt.gz");
316+
}
317+
307318
alignArgs.add("/work/" + localRefJson.getName());
308319
alignArgs.add("/work/" + resultsTsv.getName());
309320
alignArgs.add("/work/" + localBam.getName());

0 commit comments

Comments
 (0)