Poonam Mahapatra2492 days ago
I want to extract all the reads mapped at chr5: 200-6000.
samtools index your.bamsamtools view your.bam "chr5:200-6000" > output.bam
That would output all reads in chr5 between 200-6000 bp.
samtools index your.bam
samtools view your.bam "chr5:200-6000" > output.bam
That would output all reads in chr5 between 200-6000 bp.