highlight_TF: Highlight certain transcription factors in a plotly graph.

Description Usage Arguments Value

View source: R/All-functions.R

Description

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

Usage

1
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.


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