Description Usage Arguments Value Author(s) Examples
wraper for readGAlignments/readGAlignmentsList to read in bam files.
1 2 3 4 |
bamFile |
character(1). Bam file name. |
which |
A GRanges, RangesList, or any object that can be coerced to a RangesList, or missing object, from which a IRangesList instance will be constructed. See ScanBamParam. |
tag |
A vector of characters indicates the tag names to be read. See ScanBamParam. |
what |
A character vector naming the fields to return. Fields are described on the Rsamtools[scanBam] help page. |
flag |
An integer(2) vector used to filter reads based on their 'flag' entry. This is most easily created with the Rsamtools[scanBamFlag] helper function. |
asMates |
logical(1). Paired ends or not |
... |
parameters used by readGAlignmentsList or readGAlignments |
A GAlignmentsList object when asMats=TRUE, otherwise A GAlignments object.
Jianhong Ou
1 2 3 4 5 | library(BSgenome.Hsapiens.UCSC.hg19)
which <- as(seqinfo(Hsapiens)["chr1"], "GRanges")
bamfile <- system.file("extdata", "GL1.bam",
package="ATACseqQC", mustWork=TRUE)
readBamFile(bamfile, which=which, asMates=TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.