MD-Anderson-Bioinformatics / NGCHM-R

An R package for creating Next-Generation Clustered Heat Maps (NG-CHM)
http://bioinformatics.mdanderson.org/main/NG-CHM-V2:Overview
7 stars 3 forks source link

How to hide the bar #37

Closed lh12565 closed 1 month ago

lh12565 commented 1 year ago

Hi, I create a ngchm file to view my heatmap. I want a certain bar to be hidden by default, and then appear after the user checks it (such as "type" as below). How to achieve it? Thanks!

hm <- chmNew('tcga-brca', TCGA.BRCA.ExpressionData)
covariateBar1 <- chmNewCovariate('TP53 Mutation',TCGA.BRCA.TP53MutationData)
hm <- chmAddCovariateBar(hm, 'column', covariateBar1)
covariateBar2 <- chmNewCovariate('type',type)
hm <- chmAddCovariateBar(hm, 'column', covariateBar2)
chmExportToFile(hm,'tcga-brca-covariates.ngchm')
bmbroom commented 1 year ago

Add display="hidden" to the end of the second chmAddCovariateBar function call.

marohrdanz commented 1 month ago

Closing after discussion.