improperAlignmentFlags | R Documentation |
These functions are wrappers for scanBamFlag
and
ScanBamParam
in the Rsamtools
package.
improperAlignmentFlags()
properAlignmentFlags()
improperAlignmentParams(
flag = improperAlignmentFlags(),
what = c("flag", "mrnm", "mpos", "mapq", "qname"),
...
)
properAlignmentParams(
flag = properAlignmentFlags(),
what = c("flag", "mrnm", "mpos", "mapq"),
...
)
flag |
A length-two integer vector as provided by |
what |
A character vector (see |
... |
additional arguments to |
See scanBamFlag
for complete details
and improperAlignmentParams
for a wrapper of this
function that generates a ScanBamParam
object using these
flags.
See ScanBamParam
and
bamFlag
in
Rsamtools
for full documentation. See improperAlignmentFlags
for the
default set of flags.
require(Rsamtools)
flags <- scanBamFlag(isDuplicate=FALSE,
isPaired=TRUE,
isUnmappedQuery=FALSE,
hasUnmappedMate=FALSE,
isProperPair=FALSE)
flags2 <- improperAlignmentFlags()
identical(flags, flags2) #TRUE
print(flags)
flags <- scanBamFlag(isDuplicate=FALSE,
isPaired=TRUE,
isUnmappedQuery=FALSE,
hasUnmappedMate=FALSE,
isProperPair=TRUE)
flags2 <- properAlignmentFlags()
identical(flags, flags2) #TRUE
print(flags)
flags <- improperAlignmentFlags()
print(flags)
params <- ScanBamParam(flag = flags, what=c("flag", "mrnm", "mpos", "mapq"))
params2 <- improperAlignmentParams()
print(params2)
identical(params, params2) #TRUE
flags <- properAlignmentFlags()
print(flags)
params <- ScanBamParam(flag = flags, what=c("flag", "mrnm", "mpos", "mapq"))
params2 <- properAlignmentParams()
identical(params, params2) #TRUE
print(params2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.