Skip to content

Commit e8e7858

Browse files
committed
Add more pipeline logging
1 parent f95a013 commit e8e7858

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

SequenceAnalysis/api-src/org/labkey/api/sequenceanalysis/pipeline/VariantProcessingStep.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ default void validateScatter(ScatterGatherMethod method, PipelineJob job) throws
7070

7171
default void performAdditionalMergeTasks(SequenceOutputHandler.JobContext ctx, PipelineJob job, TaskFileManager manager, ReferenceGenome genome, List<File> orderedScatterOutputs, List<String> orderedJobDirs) throws PipelineJobException
7272
{
73-
73+
ctx.getLogger().debug("No additional merge tasks are implemented for: " + getClass().getName());
7474
}
7575

7676
default boolean doSortAfterMerge()

SequenceAnalysis/src/org/labkey/sequenceanalysis/run/variant/SplitVcfBySamplesStep.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,12 @@ public void performAdditionalMergeTasks(SequenceOutputHandler.JobContext ctx, Pi
9696
job.getLogger().info("Merging additional track VCFs");
9797
File inputVCF = ((SequenceJob)getPipelineCtx().getJob()).getInputFiles().get(0);
9898
List<File> firstJobOutputs = findProducedVcfs(inputVCF, new File(ctx.getWorkingDirectory(), orderedJobDirs.get(0)));
99+
job.getLogger().info("total VCFs found in job dir: " + firstJobOutputs.size());
100+
if (firstJobOutputs.isEmpty())
101+
{
102+
throw new PipelineJobException("No VCFs found in folder: " + new File(ctx.getWorkingDirectory(), orderedJobDirs.get(0)));
103+
}
104+
99105
for (File fn : firstJobOutputs)
100106
{
101107
List<File> toConcat = orderedJobDirs.stream().map(jobDir -> {

0 commit comments

Comments
 (0)