Skip to content

Commit

Permalink
Bugfix to GatherVcfsCloud
Browse files Browse the repository at this point in the history
  • Loading branch information
bbimber committed Feb 23, 2025
1 parent 474d362 commit 02e696e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import org.apache.logging.log4j.Logger;
import org.labkey.api.pipeline.PipelineJobException;
import org.labkey.api.sequenceanalysis.SequenceAnalysisService;
import org.labkey.api.sequenceanalysis.run.AbstractGatk4Wrapper;
import org.labkey.api.writer.PrintWriters;

Expand Down Expand Up @@ -40,5 +41,14 @@ public void gatherVcfs(File output, List<File> inputVcfs) throws PipelineJobExce
execute(args);

argFile.delete();

try
{
SequenceAnalysisService.get().ensureVcfIndex(output, getLogger());
}
catch (IOException e)
{
throw new PipelineJobException(e);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ public static File combineVcfs(List<File> files, ReferenceGenome genome, File ou
File idx = new File(outputGzip.getPath() + ".tbi");
if (!idx.exists())
{
throw new PipelineJobException("Unable to find output: " + idx.getPath());
throw new PipelineJobException("Unable to find index: " + idx.getPath());
}

if (showTotals)
Expand Down

0 comments on commit 02e696e

Please sign in to comment.