ezReadPairedAlignments | R Documentation |
Reads paired alignments from a bam file.
ezReadPairedAlignments(
bamFile,
seqname = NULL,
start = NULL,
end = NULL,
strand = "*",
tag = c("NH"),
keepUnpaired = "both",
fillGap = "N",
minMapQuality = 0,
keepMultiHits = TRUE
)
.ezMergeLeftRightAlignments(gaLeft, gaRight, fillGap = "N")
bamFile |
a character representing the bam file path. |
seqname |
an optional character vector to keep only the specified sequence names. |
start |
passed further to |
end |
passed further to |
strand |
a character specifying which strand to use (+, - or *). |
tag |
passed further to |
keepUnpaired |
a character indicating which aligned but unpaired reads to keep. Possible options: "none", "first", "second", "both". |
fillGap |
a character to fill into the gaps produced by |
minMapQuality |
passed further to |
keepMultiHits |
passed further to |
gaLeft |
the left gapped alignments. |
gaRight |
the right gapped alignments. |
Returns an object of the class GAlignments.
.ezMergeLeftRightAlignments
: Merges left and right alignments and fills gaps with fillGap
.
Rehrauer, Hubert
Schmid, Peter
ezReadGappedAlignments
bamFile <- system.file("extdata", "ex1.bam", package="Rsamtools", mustWork=TRUE)
ezReadPairedAlignments(bamFile)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.