Skip to content

Commit 9811a79

Browse files
committed
Print nimble alignment stats to the job log
1 parent 3fe5c0f commit 9811a79

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

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

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,28 @@ private File doAlignment(JobContext ctx, int genomeId, File refJson, File refFas
317317
throw new PipelineJobException("Expected to find file: " + resultsTsv.getPath());
318318
}
319319

320+
File log = new File(resultsTsv.getParentFile(), "nimbleDebug.txt");
321+
if (!log.exists())
322+
{
323+
throw new PipelineJobException("Expected to find file: " + log.getPath());
324+
}
325+
326+
ctx.getLogger().info("Nimble alignment stats:");
327+
try (BufferedReader reader = Readers.getReader(log))
328+
{
329+
String line;
330+
while ((line = reader.readLine()) != null)
331+
{
332+
ctx.getLogger().info(line);
333+
}
334+
}
335+
catch (IOException e)
336+
{
337+
throw new PipelineJobException(e);
338+
}
339+
340+
log.delete();
341+
320342
return resultsTsv;
321343
}
322344

0 commit comments

Comments
 (0)