ezScanBam | R Documentation |
Scans a bam file with the option to select only a part of the output.
ezScanBam(
bamFile,
seqname = NULL,
start = NULL,
end = NULL,
strand = "*",
tag = character(0),
what = scanBamWhat(),
isFirstMateRead = NA,
isSecondMateRead = NA,
isUnmappedQuery = FALSE,
isProperPair = NA,
isSecondaryAlignment = NA,
isDuplicate = NA,
countOnly = FALSE
)
bamFile |
a character representing the bam file path. |
seqname |
an optional character vector to keep only the specified sequence names in the returned reads. |
start |
an optional integer vector to limit the start position of the range of returned reads. |
end |
an optional integer vector to limit the start position of the range of returned reads. |
strand |
a character specifying which strand to use (+, - or *). |
tag |
passed further to |
what |
passed further to |
isFirstMateRead |
passed further to |
isSecondMateRead |
passed further to |
isUnmappedQuery |
passed further to |
isProperPair |
passed further to |
countOnly |
a logical specifying whether only counts should be returned or the whole scan of the bam file. |
Returns a list representing a scanned bam file.
Rehrauer, Hubert
Schmid, Peter
scanBam
ScanBamParam
bamFile <- system.file("extdata", "ex1.bam", package="Rsamtools", mustWork=TRUE)
bam = ezScanBam(bamFile)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.