Skip to content

Commit b7bf24b

Browse files
committed
Log STAR version before running
1 parent 8afd03e commit b7bf24b

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

SequenceAnalysis/src/org/labkey/sequenceanalysis/run/alignment/StarWrapper.java

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ public String getAlignmentDescription()
9494
@Override
9595
public AlignmentOutput performAlignment(Readset rs, File inputFastq1, @Nullable File inputFastq2, File outputDirectory, ReferenceGenome referenceGenome, String basename, String readGroupId, @Nullable String platformUnit) throws PipelineJobException
9696
{
97+
getWrapper().logVersionString();
98+
9799
AlignmentOutputImpl output = new AlignmentOutputImpl();
98100
AlignerIndexUtil.copyIndexIfExists(this.getPipelineCtx(), output, getProvider().getName(), referenceGenome);
99101
StarWrapper wrapper = getWrapper();
@@ -478,6 +480,16 @@ public StarAlignmentStep create(PipelineContext context)
478480

479481
protected File getExe(boolean longReads)
480482
{
481-
return SequencePipelineService.get().getExeForPackage("STARPATH", (longReads ? "STARlong" : "STAR"));
483+
return SequencePipelineService.get().getExeForPackage("STARPATH", (longReads ? "STARlong" : "STAR"));
484+
}
485+
486+
public void logVersionString() throws PipelineJobException
487+
{
488+
List<String> args = new ArrayList<>();
489+
args.add(getExe(false).getPath());
490+
args.add("--version");
491+
492+
execute(args);
493+
482494
}
483495
}

0 commit comments

Comments
 (0)