Sometimes there may be too many small bam files from single cluster to merge, and the command will fail because of OS limits on the number of input files (color_bam function in phase.py).
A proposed workaround: concatenate all bam files manually, by converting them into sam with samtools view. Then convert the resulting concatenate back to bam and sort it. Not too elegant, but should work for any number of files.
Sometimes there may be too many small bam files from single cluster to merge, and the command will fail because of OS limits on the number of input files (
color_bam
function inphase.py
).A proposed workaround: concatenate all bam files manually, by converting them into sam with
samtools view
. Then convert the resulting concatenate back to bam and sort it. Not too elegant, but should work for any number of files.