Hi All,
I'm surprised I can't find anything on this topic, but I would like to take a BAM file of, say 100million reads, and split it into multiple files containing 1million reads each. Is there an easy way of doing that? (I thought BamTools, samtools, GATK, Picard, but none of them seem to be able to do this - these tools can only split based on RG, chromosomes, etc. - I wan't to do it based on number of reads).
Thanks very much in advance.
I'm surprised I can't find anything on this topic, but I would like to take a BAM file of, say 100million reads, and split it into multiple files containing 1million reads each. Is there an easy way of doing that? (I thought BamTools, samtools, GATK, Picard, but none of them seem to be able to do this - these tools can only split based on RG, chromosomes, etc. - I wan't to do it based on number of reads).
Thanks very much in advance.
Comment