Last chance! 50% off unlimited learning
Sale ends in
readsOnTarget(alnReads, targetRegion)
scanBam
storing aligned reads.
RangesList
. The chromosome names must
fit to the chromosome names used in the alignment information of the
given reads.
scanBam
library(Rsamtools)
bamFile = system.file("extdata", "SVDetection", "bam", "N01.bam", package="R453Plus1Toolbox")
bam = scanBam(bamFile)
region = RangesList("11"=IRanges(start=118307205, end=118395936))
targetReads = readsOnTarget(bam, region)
sum(targetReads[[1]])
Run the code above in your browser using DataLab