You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: SequenceAnalysis/src/org/labkey/sequenceanalysis/SequenceAnalysisManager.java
+32-2Lines changed: 32 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -287,7 +287,7 @@ public Collection<Integer> deleteOutputFiles(List<Integer> outputFileIds, User u
287
287
for (SequenceOutputFileso : files)
288
288
{
289
289
ExpDatad = so.getExpData();
290
-
if (d != null && d.getFile() != null && d.getFile().exists())
290
+
if (d != null && d.getFile() != null)
291
291
{
292
292
// account for possibility that another sequence output is using this file. this would probably be from an error, like a pipeline resume/double import, but even in this case we shouldnt delete it
293
293
// also check based on filepath
@@ -309,7 +309,9 @@ public Collection<Integer> deleteOutputFiles(List<Integer> outputFileIds, User u
309
309
}
310
310
elseif (doDelete)
311
311
{
312
-
d.getFile().delete();
312
+
if (d.getFile().exists())
313
+
d.getFile().delete();
314
+
313
315
expDataDeleted.add(d.getRowId());
314
316
}
315
317
}
@@ -346,6 +348,34 @@ else if (doDelete)
346
348
//also look for orphan quality metrics:
347
349
if (!expDataDeleted.isEmpty())
348
350
{
351
+
// If the BAM was deleted by the analysis was not, rather than discard all the metrics, set dataId to NULL and keep them attached to the analysis:
0 commit comments