Methylation-Expression correlation of any genes in TCGA samples
Source:R/TCGA_methylation_expression_correlation.R
TCGA_methylation_expression_correlation.Rd
Plots the correlation between methylation and expression values of a gene in TCGA samples.
Usage
TCGA_methylation_expression_correlation(
tumor = "all",
gene = NULL,
nt_up = 1000,
nt_down = 200,
min_probe_number = 3,
include_normal_tissues = FALSE,
values_only = FALSE
)
Arguments
- tumor
character
defining the TCGA tumor type. Can be one of "SKCM", "LUAD", "LUSC", "COAD", "ESCA", "BRCA", "HNSC", or "all" (default).- gene
character
selected gene.- nt_up
numeric(1)
indicating the number of nucleotides upstream the TSS to define the promoter region (1000 by default)- nt_down
numeric(1)
indicating the number of nucleotides downstream the TSS to define the promoter region (200 by default)- min_probe_number
numeric(1)
indicating the minimum number of probes (with methylation values) within the selected region to calculate its mean methylation level. Default is 3.- include_normal_tissues
logical(1)
. IfTRUE
, the function will include normal peritumoral tissues in addition to tumoral samples. Default isFALSE
.- values_only
logical(1)
. IfTRUE
, the function will return the methylation and expression values in TCGA samples instead of the heatmap. Default isFALSE
.
Value
A scatter plot representing for each TCGA sample, gene expression
and mean methylation values of probe(s) located in its promoter region
(defined as 1000 nucleotides upstream TSS and 200 nucleotides downstream
TSS by default). If values_only = TRUE
, methylation and expression values
are returned in a tibble instead.