Skip to content

Commit 4854557

Browse files
committed
Mark intermediate BAMs for deletion in pipeline
1 parent 1a9fd61 commit 4854557

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

SequenceAnalysis/src/org/labkey/sequenceanalysis/pipeline/SequenceAlignmentTask.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -708,6 +708,13 @@ private void alignSet(Readset rs, String basename, Map<ReadData, Pair<File, File
708708

709709
if (output.getBAM() != null)
710710
{
711+
//If we have change the BAM, mark the previous for deletion
712+
if (!bam.equals(output.getBAM()))
713+
{
714+
getHelper().getFileManager().addIntermediateFile(bam);
715+
getHelper().getFileManager().addIntermediateFile(new File(bam.getPath() + ".bai"));
716+
}
717+
711718
bam = output.getBAM();
712719

713720
//can take a long time to execute

jbrowse/resources/web/jbrowse/window/ModifyJsonConfigWindow.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Ext4.define('JBrowse.window.ModifyJsonConfigWindow', {
6363
text: 'Chunk Size Limit',
6464
scope: this,
6565
handler: function (gridBtn) {
66-
this.addAttribute('chunkSizeLimit ', null, 'INT');
66+
this.addAttribute('chunkSizeLimit', null, 'INT');
6767
}
6868
},{
6969
text: 'XY Plot',

0 commit comments

Comments
 (0)