Skip to content

Commit cb75aa0

Browse files
committed
Delete downloaded SRA files once done
1 parent 615638b commit cb75aa0

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

SequenceAnalysis/api-src/org/labkey/api/sequenceanalysis/run/AbstractCommandWrapper.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,6 @@ public ProcessBuilder getProcessBuilder(List<String> params)
110110

111111
if (!_environment.isEmpty())
112112
{
113-
for (String var : _environment.keySet())
114-
{
115-
getLogger().debug("adding to env: " + var + " = " + _environment.get(var));
116-
}
117-
118113
pb.environment().putAll(_environment);
119114
}
120115

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ public void processFilesRemote(List<Readset> readsets, JobContext ctx) throws Un
203203
{
204204
ctx.getLogger().info("Copying file to: " + expectedFile1.getPath());
205205
Files.copy(files.first.toPath(), expectedFile1.toPath());
206+
ctx.getFileManager().addIntermediateFile(files.first);
206207
if (expectedFile2 != null)
207208
{
208209
if (files.second == null)
@@ -212,6 +213,7 @@ public void processFilesRemote(List<Readset> readsets, JobContext ctx) throws Un
212213

213214
ctx.getLogger().info("Copying file to: " + expectedFile2.getPath());
214215
Files.copy(files.second.toPath(), expectedFile2.toPath());
216+
ctx.getFileManager().addIntermediateFile(files.second);
215217
}
216218
}
217219
catch (IOException e)

0 commit comments

Comments
 (0)