highlight_TF: Highlight certain transcription factors in a plotly graph.

View source: R/All-functions.R

highlight_TFR Documentation

Highlight certain transcription factors in a plotly graph.

Description

Function to highlight certain transcription factors using different colors in a plotly graph.

Usage

highlight_TF(table, column, specialTF, markerColors)

Arguments

table

Enrichment matrix/data.frame.

column

Column # that stores the TF name in the matrix/df.

specialTF

Named vector containing TF names as they appear in the enrichment matrix/df and nicknames for their color group. Example: specialTF<-c('HIF1A','EPAS1','ARNT','SIN3A') names(specialTF)<-c('HIF','HIF','HIF','SIN3A')

markerColors

Vector specifying the shade for every color group.

Value

List of two objects: A vector to attach to the enrichment matrix/df pointing out the color group of every row. A named vector connecting each color group to the chosen color.


LauraPS1/TFEA.ChIP documentation built on April 21, 2023, 7:29 a.m.