Skip to content

Commit 1c55102

Browse files
committed
Instead of erroring, creating missing indexes
1 parent 329109f commit 1c55102

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

SequenceAnalysis/src/org/labkey/sequenceanalysis/run/util/GenotypeGVCFsWrapper.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,8 @@ public static List<File> copyVcfsLocally(SequenceOutputHandler.JobContext ctx, C
167167
origIdx = new File(f.getPath() + ".tbi");
168168
if (!origIdx.exists())
169169
{
170-
throw new PipelineJobException("expected index doesn't exist: " + origIdx.getPath());
170+
ctx.getLogger().warn("Expected index does not exist, creating: " + origIdx.getPath());
171+
SequenceAnalysisService.get().ensureVcfIndex(f, ctx.getLogger());
171172
}
172173

173174
movedIdx = new File(localWorkDir, destFile.getName() + ".tbi");

0 commit comments

Comments
 (0)