calcMetagene | R Documentation |
Two modes are provided for metagene matrix calculation. If regionGR
is
specified, metagene will be calculated for the regions given in regionGR
. Otherwise,
txdb
must be specified. If txList
is specified, metagene will be calculated in
the CDS start and end regions for the transcripts specified. If txList
is not
specified, the highest-expressed transcripts will be selected and metagene matrix will be
calculated in the CDS start and end regions. Also, the 5'-end position will be kept for the
reads.
calcMetagene( bam, regionGR = NULL, txdb = NULL, txList = NULL, readLen = NULL, fiveEndOnly = TRUE, relFreq = TRUE, nTx = 2000, cdsStartUpstream = 50, cdsStartDownstream = 50, cdsEndUpstream = 50, cdsEndDownstream = 50 )
bam |
A |
regionGR |
A |
txdb |
A |
txList |
A character vector of transcript IDs. Note that the transcript IDs set here
should also be found in the |
readLen |
A vector of read lengths to use (positive). If |
fiveEndOnly |
A logical variable indicating if only keeping the 5'-ends of reads. This option can be used to increase the resolution of Ribo-seq reads. (Default: TRUE). |
relFreq |
A logical variable indicating if transcript wise relative frequency (
normalized by the total read counts in each metagene region) should be returned instead of
raw read counts. Note that if |
nTx |
A numeric variable of the number of transcripts to keep when |
cdsStartUpstream |
A numeric variable indicating the width to use for the upstream
region of CDS start site (not including CDS start site) if |
cdsStartDownstream |
A numeric variable indicating the width to use for the downstream
region of CDS start site (including CDS start site) if |
cdsEndUpstream |
A numeric variable indicating the width to use for the upstream
region of CDS end site (including CDS end site) if |
cdsEndDownstream |
A numeric variable indicating the width to use for the downstream
region of CDS end site (not including CDS end site) if |
A list
containing three elements. The first element is metagne, either one
matrix
if regionGR
is set or a list of two matrices
in CDS start and
end regions (with names of start and end). Each row is a transcript, each column is a
position, and a value represents read counts or relative frequency for a transcript at a
position. The second element is the GRanges
for the metagene, either one range if
regionGR
is set or a list of two ranges representing the CDS start and end regions.
This list also contains information of the transcripts selected and flanking sequence
lengths for CDS start and end. The third element is an internal variable indicating if
regionGR
is specified or not (1 means regionGR
is set and 2 means not set).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.