Hi all! I have a little problem: I have 1 bam file (44gb ca) ant it contain the reads from 11 different sample. I have 2 txt file with sample name and a lot tab delimited number.
How can I split this unique BAM file into 11 different bam files?
Is it correct to use the following code? samtools view -bhR readids_for_sample_A.txt File.bam > File_A.bam