mv /root_sambamba_sort/ae3b4fcd963d404081393b9cf038d4d5.aligned.duplicates_marked.sorted.bam . && /opt/sambamba_v0.6.4 index -t 31 ae3b4fcd963d404081393b9cf038d4d5.aligned.duplicates_marked.sorted.bam ae3b4fcd963d404081393b9cf038d4d5.aligned.duplicates_marked.sorted.bai
Sambamba Merge is added in place of Picard MarkDuplicates, as merging of separate BAM files was originally done there. Tested with a randomly selected BAM from the pilot set.
Tools in the workflow
Current function
Sort aligned, duplicate marked BAM.
Proposed modification
Use Sambamba Sort+Index for this purpose.
Performance improvement
Picard SortSam time 3h 1m Picard MarkDuplicates time 4h 50m Sambamba Merge+Sort+Index time 1h 12m
Example command lines
Sambamba Merge
Sambamba Sort
Sambamba Index
Sambamba Merge is added in place of Picard MarkDuplicates, as merging of separate BAM files was originally done there. Tested with a randomly selected BAM from the pilot set.