FindCorrelatedRegions: Find contiguous co-edited subregions.

Description Usage Arguments Value Examples

View source: R/util_FindCorrelatedRegions.R

Description

Find contiguous co-edited subregions based on the output file from function MarkCoeditedSites.

Usage

1
2
3
4
5
FindCorrelatedRegions(
  sites_df,
  featureType = c("site", "cpg"),
  minSites_int = 3
)

Arguments

sites_df

An output data frame from function MarkCoeditedSites, with variables site, keep, ind, r_drop. Please see MarkCoeditedSites for details.

featureType

Feature type, Defaults to "site".

minSites_int

An integer indicates the minimum number of sites to be considered a contiguous co-edited region.

Value

A data frame with the following columns:

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
  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"
  )
  
  FindCorrelatedRegions(
    sites_df = exm_sites,
    featureType = "site"
  )
   

rnaEditr documentation built on Nov. 8, 2020, 8:26 p.m.