Description Usage Arguments Value Examples
View source: R/util_SitesToRegion.R
Output contiguous co-edited subregions found by
FindCorrelatedRegions
function and filtered by
GetMinPairwiseCor
function.
1 2 3 4 5 6 7 | SitesToRegion(
sitesSubregion_df,
sitesAreOrdered = TRUE,
keepminPairwiseCor_df,
returnAllSites = FALSE,
verbose = TRUE
)
|
sitesSubregion_df |
An output data frame from function
|
sitesAreOrdered |
Are the sites in |
keepminPairwiseCor_df |
An output data frame from function
|
returnAllSites |
When no contiguous co-edited regions are found in
a input genomic region, |
verbose |
Should messages and warnings be displayed? Defaults to TRUE. |
A GRanges object with seqnames
, ranges
and
strand
of the contiguous co-edited regions.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | data(t_rnaedit_df)
ordered_cols <- OrderSitesByLocation(
sites_char = colnames(t_rnaedit_df),
output = "vector"
)
exm_data <- t_rnaedit_df[, ordered_cols]
exm_sites <- MarkCoeditedSites(
rnaEditCluster_mat = exm_data,
method = "spearman"
)
exm_regions <- FindCorrelatedRegions(
sites_df = exm_sites,
featureType = "site"
)
exm_sites <- split(
x = exm_regions$site,
f = exm_regions$subregion
)
exm_cor <- GetMinPairwiseCor(
rnaEditCluster_mat = exm_data,
minPairCorr = 0.1,
probes_ls = exm_sites,
method = "spearman"
)
SitesToRegion(
sitesSubregion_df = exm_regions,
keepminPairwiseCor_df = exm_cor$keepminPairwiseCor_df
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.