Skip to content

Commit 9f4255c

Browse files
committed
Ensure bismark ends with sorted BAM
1 parent e0fa755 commit 9f4255c

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

primeseq/src/org/labkey/primeseq/pipeline/BismarkWrapper.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,9 @@ public AlignmentOutput performAlignment(Readset rs, List<File> inputFastqs1, @Nu
242242
}
243243

244244
output.addIntermediateFile(bam);
245+
246+
dedupBam = new SamSorter(getPipelineCtx().getLogger()).execute(dedupBam, null, SAMFileHeader.SortOrder.coordinate);
247+
245248
bam = dedupBam;
246249
}
247250
catch (IOException e)

0 commit comments

Comments
 (0)