Skip to content

Commit 210d626

Browse files
committed
Bugfix to split VCF jobs
1 parent 6590d61 commit 210d626

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,17 +95,17 @@ public void performAdditionalMergeTasks(SequenceOutputHandler.JobContext ctx, Pi
9595
{
9696
job.getLogger().info("Merging additional track VCFs");
9797
File inputVCF = ((SequenceJob)getPipelineCtx().getJob()).getInputFiles().get(0);
98-
List<File> firstJobOutputs = findProducedVcfs(inputVCF, new File(ctx.getWorkingDirectory(), orderedJobDirs.get(0)));
98+
List<File> firstJobOutputs = findProducedVcfs(inputVCF, new File(ctx.getSourceDirectory(), orderedJobDirs.get(0)));
9999
job.getLogger().info("total VCFs found in job dir: " + firstJobOutputs.size());
100100
if (firstJobOutputs.isEmpty())
101101
{
102-
throw new PipelineJobException("No VCFs found in folder: " + new File(ctx.getWorkingDirectory(), orderedJobDirs.get(0)));
102+
throw new PipelineJobException("No VCFs found in folder: " + new File(ctx.getSourceDirectory(), orderedJobDirs.get(0)));
103103
}
104104

105105
for (File fn : firstJobOutputs)
106106
{
107107
List<File> toConcat = orderedJobDirs.stream().map(jobDir -> {
108-
File f = new File(new File(getPipelineCtx().getWorkingDirectory(), jobDir), fn.getName());
108+
File f = new File(new File(getPipelineCtx().getSourceDirectory(), jobDir), fn.getName());
109109
if (!f.exists())
110110
{
111111
throw new IllegalStateException("Missing file: " + f.getPath());

0 commit comments

Comments
 (0)