Extract junction reads from bam

Helen Zhou <zhou.helen-/[email protected]>
Newsgroups gmane.science.biology.informatics.conductor
Message-ID <[email protected]>
Dear Sir/Madam,

I have a bam file with reads from a paired-end RNA-seq experiments, and I would like to extract all reads that span a particular intron/exon junction. For example where part of a read maps to exon ABC starting at chr 1 position 66909348. I do not know where the first part of the read maps; there are multiple possible exons being spliced to exon ABC.

I can extract all reads mapping to and spanning for example 50nt around the junction, saying:
library(GenomicRanges)
loc <-RangesList('1'=IRanges(start=6690298,end=6690398)) 
parameter <- ScanBamParam(which=loc, what=extract, simpleCigar=FALSE, reverseComplement=FALSE)
aln <- readGAlignmentsFromBam("test.bam", param=parameter)

However, this includes all the reads that span across this region because the ends of the read map outside the area indicated in 'loc'. How can I get only the reads where (part of) the read starts mapping at the exact intron/exon location at position 66909348?

Thanks you
H Zhou
	[[alternative HTML version deleted]]

_______________________________________________
Bioconductor mailing list
[email protected]
https://stat.ethz.ch/mailman/listinfo/bioconductor
Search the archives: http://news.gmane.org/gmane.science.biology.informatics.conductor
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.