View source: R/AllCoeditedRegions.R
AllCoeditedRegions | R Documentation |
A wrapper function to extract contiguous co-edited genomic regions from input genomic regions.
AllCoeditedRegions( regions_gr, rnaEditMatrix, output = c("GRanges", "dataframe"), rDropThresh_num = 0.4, minPairCorr = 0.1, minSites = 3, method = c("spearman", "pearson"), returnAllSites = FALSE, progressBar = "time", verbose = TRUE )
regions_gr |
A GRanges object of input genomic regions. |
rnaEditMatrix |
A matrix (or data frame) of RNA editing level values on
individual sites, with row names as site IDs in the form of
"chrAA:XXXXXXXX", and column names as sample IDs. Please make sure to
follow the format of example dataset ( |
output |
Type of output data. Defaults to |
rDropThresh_num |
Threshold for minimum correlation between RNA editing levels of one site and the mean RNA editing levels of the rest of the sites. Please set a number between 0 and 1. Defaults to 0.4. |
minPairCorr |
Threshold for minimum pairwise correlation of sites within a selected cluster. To use this filter, set a number between -1 and 1 (defaults to 0.1). To select all clusters (i.e. no filter), please set this argument to -1. |
minSites |
Minimum number of sites to be considered as a region. Only
regions with more than |
method |
Method for computing correlation. Defaults to
|
returnAllSites |
When no contiguous co-edited regions are found in
an input genomic region, |
progressBar |
Name of the progress bar to use. There are currently five
types of progress bars: |
verbose |
Should messages and warnings be displayed? Defaults to FALSE,
but is set to TRUE when called from within |
When output
is set as "GRanges"
, a GRanges object with
seqnames
, ranges
and strand
of the contiguous
co-edited regions will be returned. When output
is set as
"dataframe"
, a data frame with following columns will be returned:
site
: site ID.
chr
: chromosome number.
pos
: genomic position number.
r_drop
: the correlation between RNA editing levels of
one site and the mean RNA editing levels of the rest of the sites.
keep
: indicator for co-edited sites, the sites with
keep = 1
belong to the contiguous and co-edited region.
keep_contiguous
: contiguous co-edited region number.
regionMinPairwiseCor
: the pairwise correlation of a
subregion.
keep_regionMinPairwiseCor
: indicator for contiguous
co-edited subregions, the regions with keepminPairwiseCor = 1
passed the minimum correlation and will be returned as a contiguous
co-edited subregion.
TransformToGR
, AllCloseByRegions
,
CreateEditingTable
, SummarizeAllRegions
,
TestAssociations
, AnnotateResults
data(rnaedit_df) genes_gr <- TransformToGR( genes_char = c("PHACTR4", "CCR5", "METTL7A"), type = "symbol", genome = "hg19" ) AllCoeditedRegions( regions_gr = genes_gr, rnaEditMatrix = rnaedit_df, output = "GRanges", method = "spearman" )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.