merges BAM files together samtools sam_merge.py $input1 $output1 $input2 #for $i in $inputs ${i.input} #end for **What it does** This tool uses SAMTools_' merge command to merge any number of BAM files together into one BAM file. .. _SAMTools: http://samtools.sourceforge.net/samtools.shtml