importBam: Reading data from a BAM file

Description Usage Arguments Value Author(s) See Also Examples

View source: R/importBam.R

Description

Read a track object from a BAM file

Usage

1
importBam(file, file2, ranges=GRanges(), pairs=FALSE)

Arguments

file

The path to the BAM file to read.

file2

The path to the second BAM file to read.

ranges

An object of GRanges to indicate the range to be imported

pairs

logical object to indicate the BAM is paired or not. See readGAlignments

Value

a track object

Author(s)

Jianhong Ou

See Also

See Also as importScore, track, viewTracks

Examples

1
2
3
bamfile <- system.file("extdata", "ex1.bam", package="Rsamtools",
                       mustWork=TRUE)
dat <- importBam(file=bamfile, ranges=GRanges("seq1", IRanges(1, 50), strand="+"))

trackViewer documentation built on May 31, 2017, 3:23 p.m.

Search within the trackViewer package
Search all R packages, documentation and source code