Skip to content

Commit bb30686

Browse files
committed
Tag subset when running CoNGA
1 parent 9756afd commit bb30686

File tree

1 file changed

+7
-2
lines changed
  • singlecell/src/org/labkey/singlecell/pipeline/singlecell

1 file changed

+7
-2
lines changed

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,19 @@ public Output execute(SequenceOutputHandler.JobContext ctx, List<SeuratObjectWra
7979

8080
for (File dir : outputDirs)
8181
{
82+
String sn = null;
83+
if (dir.getName().startsWith("conga_output_"))
84+
{
85+
sn = dir.getName().replaceAll("conga_output_", "");
86+
}
87+
8288
File expectedFile = new File(dir, "conga_output_results_summary.html");
8389
if (!expectedFile.exists())
8490
{
8591
throw new PipelineJobException("Unable to find HTML file: " + expectedFile.getPath());
8692
}
8793

88-
89-
output.addSequenceOutput(expectedFile, "CoNGA Report: " + inputObjects.get(0).getDatasetName(), "CoNGA Report", inputObjects.get(0).getReadsetId(), ctx.getSequenceSupport().getCachedGenomes().iterator().next().getGenomeId(), null, null);
94+
output.addSequenceOutput(expectedFile, "CoNGA Report: " + inputObjects.get(0).getDatasetName() + (sn == null ? "" : ", subset: " + sn), "CoNGA Report", inputObjects.get(0).getReadsetId(), ctx.getSequenceSupport().getCachedGenomes().iterator().next().getGenomeId(), null, null);
9095
}
9196

9297
//TODO: handle subset reports?

0 commit comments

Comments
 (0)