Skip to content

Commit 04882ed

Browse files
committed
Fix bug in the order of gzip and deletion for SRA download
1 parent d882097 commit 04882ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

SequenceAnalysis/src/org/labkey/sequenceanalysis/run/RestoreSraDataHandler.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,8 +279,8 @@ public Pair<File, File> downloadSra(String dataset, File outDir) throws Pipeline
279279
{
280280
throw new PipelineJobException("Missing file: " + file1.getPath());
281281
}
282-
files.remove(file1);
283282
file1 = doGzip(file1);
283+
files.remove(file1);
284284

285285
File file2 = new File(outDir, dataset + "_2.fastq");
286286
if (!file2.exists())
@@ -289,8 +289,8 @@ public Pair<File, File> downloadSra(String dataset, File outDir) throws Pipeline
289289
}
290290
else
291291
{
292-
files.remove(file2);
293292
file2 = doGzip(file2);
293+
files.remove(file2);
294294
}
295295

296296
if (!files.isEmpty())

0 commit comments

Comments
 (0)