Learn R Programming

LncPath (version 1.1)

drawAHeatMap: Draw a heatmap for the genes of a pathway

Description

Draw a heatmap for the genes of a certain pathway based on the expression profile user specified.

Usage

drawAHeatMap(Result, Name, PCExpr, Labels)

Arguments

Result

A lncPath object come from the lncPath function.

Name

A string, the name of the pathway to be plot.

PCExpr

A data frame, the expression profile to be plotted.

Labels

A vector of 0 and 1, 0 indicates control and 1 indicates case.

Details

Draw a heatmap of the genes of a pathway based on the expression profile. The rows of heatmap are genes ranked by their weights and the columns of heatmap are samples ordered the same as the expression profile.

References

Subramanian, A., Tamayo, P., Mootha, V.K., Mukherjee, S., Ebert, B.L., Gillette, M.A., Paulovich, A., Pomeroy, S.L., Golub, T.R., Lander, E.S. et al. (2005) Gene set enrichment analysis: a knowledgebased approach for interpreting genome-wide expression profiles. Proc Natl Acad Sci U S A, 102, 15545-15550.

Examples

Run this code
# NOT RUN {
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

Result <- getExampleData("Result")
Profile <- getExampleData("Profile")
Labels <- getExampleData("Labels")
drawAHeatMap(Result, "KEGG_RIBOSOME", Profile, Labels)

# }

Run the code above in your browser using DataLab