PlotEditingCorrelations: Plotting correlations of RNA editing levels within a region.

Description Usage Arguments Value Examples

View source: R/util_PlotEditingCorrelations.R

Description

Plotting correlations of RNA editing levels within a region.

Usage

1
PlotEditingCorrelations(region_gr, rnaEditMatrix, ...)

Arguments

region_gr

A GRanges object of a region.

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 (data(rnaedit_df)).

...

Dots for additional internal arguments, see corrplot for details.

Value

(Invisibly) returns a reordered correlation matrix.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
  data(rnaedit_df)
  
  genes_gr <- TransformToGR(
    genes_char = c("PHACTR4", "CCR5", "METTL7A"),
    type = "symbol",
    genome = "hg19"
  )
  
  exm_regions <- AllCoeditedRegions(
    regions_gr = genes_gr,
    rnaEditMatrix = rnaedit_df,
    output = "GRanges",
    method = "spearman"
  )
  
  PlotEditingCorrelations(
    region_gr = exm_regions[1],
    rnaEditMatrix = rnaedit_df
  )
   

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