Hi,
I have mapped reads against a reference with bwa and got a big bam file now.
I would like to retrieve a separate bam file for every contig.
I do not mean "I want 1 bam for every chromosome". A chromosome is not a contig since my coverage is 0 in many parts of the genome (aDNA reads).
In this situation e.g. (I hope he doesn't mess up when I post this):
--------------------------------------
--- --- --- ---
---- -----
I would like to get 2 bam files.
How do I do that?