This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Filter Exon Aligned Reads That Are Mapped Against Human Genome.

Hi,

I am wondering if it is possible via samtools/bamtools to extract all the paired-end mapped reads (against the human hg19 genome) that fall in exon regions. I have a BED file that defines all these regions. I already know that it's possible to calculate this (coverageBed -abam reads.bam -b exons.bed > exons.bed.coverage), but I have no clue how to extract the reads from the .bam file). I tried using the samtools/bamtools manual but couldn't figure it out.

Anyone who can help me?

Thanks

exons genome mapping hg19 bowtie2

1 answer

duplicate of Samtools and Region List

The online manual is two versions behind.

Ah well, thanks for the help both of you ;)

Log in to answer this question.