Read a track object from a BAM file
importBam(file, file2, ranges=GRanges(), pairs=FALSE)
The path to the BAM file to read.
The path to the second BAM file to read.
An object of GRanges to indicate
the range to be imported
logical object to indicate the BAM is paired or not. See
a track object
See Also as importScore, track, viewTracks
bamfile <- system.file("extdata", "ex1.bam", package="Rsamtools",
dat <- importBam(file=bamfile, ranges=GRanges("seq1", IRanges(1, 50), strand="+"))
Questions? Problems? Suggestions? Tweet to @rdrrHQian@mutexlabs.com.
Please suggest features or report bugs with the GitHub issue tracker.
All documentation is copyright its authors; we didn't write any of that.