search for: gene2color

Displaying 1 result from an estimated 1 matches for "gene2color".

2010 Apr 13
0
Coloring leaves in Dendrogram according to gene names
...ot; is the same as the structure of "color" !!! Do you have any idea on what is going wrong ? Many thanks for your help, targetGenes<-length(unique(bm$Target)) #Getting the number of unique target genes my_colors<-rainbow(targetGenes) #Creating a vector of colors for each gene gene2color<-data.frame(gene=unique(bm$Target), color=my_colors) #Creating the data.frame dhc<-as.dendrogram(fit.x) #the dendrogram using the hclust object (fit.x) local({ colLab <<- function(n) { if(is.leaf(n)) { a <- attributes(n) crm <- as.numeric(a$label)...