formatAnnotation4aheatmap: Prepare annotation data frame so that aheatmap can show it

Description Usage Arguments Details Value

View source: R/aheatmap.R

Description

aheatmap requires the annotation data frame to have rownames identical to colnames of the heatmap matrix; otherwise, nothing is drawn

Usage

1
formatAnnotation4aheatmap(dat, sampleNames, minUV = 12)

Arguments

dat

annotation data frame, one row per sample

sampleNames

the colnames of the matrix in heatmap

minUV

minimum unique value to not be a factor

Details

the main goal for this function is to (1) add rownames (2) convert categorical variables to factor so that aheatmap can draw it; rownames can be passed to set rownames; of no rownames, aheatmap will not draw the column bar the conversion from categorical to factor is achieved using formatVec() as the engine.

Value

a formated data frame


nickytong/GenAnalysis documentation built on July 20, 2019, 8:57 a.m.