plot_ES: Plots Enrichment Score from the output of GSEA.run.

Description Usage Arguments Value Examples

View source: R/All-functions.R

Description

Function to plot the Enrichment Score of every member of the ChIPseq binding database.

Usage

1
2
plot_ES(GSEA_result, LFC, plot_title = NULL, specialTF = NULL,
  TF_colors = NULL, Accession = NULL, TF = NULL)

Arguments

GSEA_result

Returned by GSEA_run

LFC

Vector with log2(Fold Change) of every gene that has an Entrez ID. Arranged from higher to lower.

plot_title

(Optional) Title for the plot

specialTF

(Optional) Named vector of TF symbols -as written in the enrichment table- to be highlighted in the plot. The name of each element specifies its color group, i.e.: naming elements HIF1A and HIF1B as 'HIF' to represent them with the same color.

TF_colors

(Optional) Colors to highlight TFs chosen in specialTF.

Accession

(Optional) restricts plot to the indicated list dataset IDs.

TF

(Optional) restricts plot to the indicated list transcription factor names.

Value

Plotly object with a scatter plot -Enrichment scores- and a heatmap -log2(fold change) bar-.

Examples

1
2
3
4
5
data('GSEA.result','log2.FC',package = 'TFEA.ChIP')
TF.hightlight<-c('EPAS1')
names(TF.hightlight)<-c('EPAS1')
col<- c('red')
plot_ES(GSEA.result,log2.FC,specialTF = TF.hightlight,TF_colors = col)

TFEA.ChIP documentation built on Nov. 8, 2020, 5:05 p.m.