Skip to content

Commit 38b2b53

Browse files
committed
Bugfix to bbmap
1 parent c4a59ea commit 38b2b53

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,12 @@ public AlignmentOutput performAlignment(Readset rs, List<File> inputFastqs1, @Nu
9494
File refDir = new File(getPipelineCtx().getWorkingDirectory(), "ref");
9595
try
9696
{
97+
if (refDir.exists())
98+
{
99+
getPipelineCtx().getLogger().debug("Deleting existing ref dir: " + refDir);
100+
FileUtils.deleteDirectory(refDir);
101+
}
102+
97103
FileUtils.moveDirectory(localIdx, refDir);
98104
}
99105
catch (IOException e)

0 commit comments

Comments
 (0)