Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Heatmaps with multiple metadata annotations #26

Open
AMA111 opened this issue May 9, 2019 · 2 comments
Open

Heatmaps with multiple metadata annotations #26

AMA111 opened this issue May 9, 2019 · 2 comments

Comments

@AMA111
Copy link

AMA111 commented May 9, 2019

Dear Developer,

I would like to ask if there is a a way of plotting multiple annotations (Cluster info, cell type, other ) from the metadata to the top of the heat map after doing DE analysis .. Like this one:
image

Thank you in advance!

Best,
Abdelrahman

@edroaldo
Copy link
Owner

edroaldo commented May 10, 2019 via email

@AMA111
Copy link
Author

AMA111 commented May 15, 2019

Hey,
It didn't work. I think still needs many optimization and robust testing.

plotSignaturesHeatmap2 <- function(object, markers, column.ann, + column.ann2, column.color, num.cells=NULL, threshold=2, genes.show=NULL, + low='purple', intermediate='black', + high='yellow', order=NULL, width, height, filename){ + + if(is.null(num.cells)){ + print('here') + cells.keep <- rownames(object@sampTab) + print(table(object@sampTab[[column.ann]])) + }else{ + #cells.use <- object@sampTab %>% group_by_(column.ann) %>% + sample_n(size = num.cells, replace = TRUE) + cells.use <- split(object@sampTab, object@sampTab[[column.ann]]) + cells.use <- lapply(cells.use, function(x){ + if(nrow(x) < num.cells){ + cells.use.x <- x[sample(rownames(x), size = nrow(x)),] + }else{ + cells.use.xx <- x[sample(rownames(x), size = num.cells),] + } + }) + cells.use.tmp <- do.call(rbind, cells.use) + cells.keep <- as.vector(cells.use.tmp$sample_id) + } + + #data <- object@ndata[,cells.use] + matrix <- center_with_threshold(object@ndata[,cells.keep], threshold) + + paletteLength <- 100 + #myColor <- colorRampPalette(c("purple","black","yellow"))(paletteLength) + myColor <- colorRampPalette(c(low, intermediate, high))(paletteLength) + myBreaks <- c(seq(min(matrix), 0, length.out=ceiling(paletteLength/2) + + 1), + seq(max(matrix)/paletteLength, max(matrix), + length.out=floor(paletteLength/2))) + + + library(data.table) + markers2 <- as.data.frame(markers) + #markers2 <- as.data.frame(markers) + #markers2 <- as.data.table(markers2)[, .SD[which.max(fc.column)], by=gene] + #markers2 <- as.data.frame(markers2) + #markers2 <- as.data.frame(markers) + #markers2 <- markers2[!duplicated(markers2$gene),] #need to make sure + there is no duplicated element... Error: unexpected symbol in: " #markers2 <- markers2[!duplicated(markers2$gene),] #need to make sure there is" > sampTab <- object@sampTab Error: object 'object' not found > sampTab <- sampTab[cells.keep,] Error: object 'sampTab' not found > > if(column.ann == 'population'){ + markers2 <- markers2[order(as.numeric(markers2$population)),] + rownames(markers2) <- as.vector(markers2$gene) + sampTab <- sampTab[order(as.numeric(sampTab$population)),] + }else if(!is.null(order)){ + markers2 <- markers2[order(factor(markers2$population, levels=order)),] + sampTab <- sampTab[order(factor(sampTab[[column.ann]], levels=order)),] + }else{ + markers2 <- markers2[order(as.character(markers2$population)),] + rownames(markers2) <- as.vector(markers2$gene) + sampTab <- sampTab[order(as.character(sampTab[[column.ann]])),] + } Error: object 'column.ann' not found > > #clusters <- as.vector(object@sampTab$population) > #clusters <- as.vector(sampTab[[column.ann]]) > #names(clusters) <- rownames(sampTab) > #clusters <- clusters[order(clusters)] > ann_col <- sampTab[, c(column.ann, + column.ann2)]#data.frame(population=as.vector(clusters), stringsAsFactors = Error: object 'sampTab' not found > FALSE) Error: unexpected ')' in " FALSE)" > #rownames(ann_col) <- names(clusters) > > ann_row <- data.frame(signature=as.vector(markers2$population), + stringsAsFactors = FALSE) Error in as.vector(markers2$population) : object 'markers2' not found > rownames(ann_row) <- as.vector(markers2$gene) Error in as.vector(markers2$gene) : object 'markers2' not found > if(!is.null(order)){ + ann_col$population <- factor(ann_col$population, levels=order) + ann_row$signature <- factor(ann_row$signature, levels=order) + } Error in factor(ann_col$population, levels = order) : object 'ann_col' not found > > #colors <- cRampClust(cluster.vector, 8) > #names(colors) <- cluster.vector > colors <- unique(sampTab[[column.color]]) Error in unique(sampTab[[column.color]]) : object 'sampTab' not found > names(colors) <- unique(as.vector(sampTab[[column.ann]])) Error in as.vector(sampTab[[column.ann]]) : object 'sampTab' not found > > color_lists <- list(population=colors, signature=colors) > > #replicate_row <- as.vector(unlist(lapply(split(ann_row, > ann_row$signature), nrow))) Error: unexpected ')' in "ann_row$signature)" > #colors_row <- rep(colors, times=replicate_row) > #replicate_col <- as.vector(unlist(lapply(split(ann_col, > ann_col$population), nrow))) Error: unexpected ')' in "ann_col$population)" > #colors_col <- rep(colors, times=replicate_col) > index <- getIndexes(ann_col, ann_row, order.columns = + unique(ann_col$population), order.rows = unique(ann_row$signature)) Show Traceback Rerun with Debug Error in nrow(ann_col) : object 'ann_col' not found > > if(is.null(genes.show)){ + genes.show <- markers2 %>% group_by(population) %>% top_n(5, fc) + genes.show <- as.vector(genes.show$gene) + selected <- as.vector(markers2$gene) + selected[!(selected %in% genes.show)] <- "" + }else{ + selected <- as.vector(markers2$gene) + selected[!(selected %in% genes.show)] <- "" + } Error: object 'genes.show' not found > > pheatmap(matrix[rownames(ann_row),rownames(ann_col)], cluster_rows=FALSE, + cluster_cols=FALSE, color = myColor, breaks=myBreaks, fontsize=15, + #gaps_row = index$rowsep, + gaps_col = index$colsep, annotation_col = ann_col, + annotation_row = ann_row, annotation_colors = color_lists, + labels_row = selected, + labels_col = rep("", ncol(matrix)), width=width, height=height, + filename=filename) Error in pheatmap(matrix[rownames(ann_row), rownames(ann_col)], cluster_rows = FALSE, : object 'selected' not found > > > gc(verbose = FALSE) used (Mb) gc trigger (Mb) max used (Mb) Ncells 4058624 216.8 6353278 339.4 6353278 339.4 Vcells 1415607002 10800.3 3111833001 23741.5 2168651371 16545.5 > > } Error: unexpected '}' in " }" > plotSignaturesHeatmap2 <- function(object, markers, column.ann, + column.ann2, column.color, num.cells=NULL, threshold=2, genes.show=NULL, + low='purple', intermediate='black', + high='yellow', order=NULL, width, height, filename){ + + if(is.null(num.cells)){ + print('here') + cells.keep <- rownames(object@sampTab) + print(table(object@sampTab[[column.ann]])) + }else{ + #cells.use <- object@sampTab %>% group_by_(column.ann) %>% + sample_n(size = num.cells, replace = TRUE) + cells.use <- split(object@sampTab, object@sampTab[[column.ann]]) + cells.use <- lapply(cells.use, function(x){ + if(nrow(x) < num.cells){ + cells.use.x <- x[sample(rownames(x), size = nrow(x)),] + }else{ + cells.use.xx <- x[sample(rownames(x), size = num.cells),] + } + }) + cells.use.tmp <- do.call(rbind, cells.use) + cells.keep <- as.vector(cells.use.tmp$sample_id) + } + + #data <- object@ndata[,cells.use] + matrix <- center_with_threshold(object@ndata[,cells.keep], threshold) + + paletteLength <- 100 + #myColor <- colorRampPalette(c("purple","black","yellow"))(paletteLength) + myColor <- colorRampPalette(c(low, intermediate, high))(paletteLength) + myBreaks <- c(seq(min(matrix), 0, length.out=ceiling(paletteLength/2) + + 1), + seq(max(matrix)/paletteLength, max(matrix), + length.out=floor(paletteLength/2))) + + + library(data.table) + markers2 <- as.data.frame(markers) + #markers2 <- as.data.frame(markers) + #markers2 <- as.data.table(markers2)[, .SD[which.max(fc.column)], by=gene] + #markers2 <- as.data.frame(markers2) + #markers2 <- as.data.frame(markers) + #markers2 <- markers2[!duplicated(markers2$gene),] #need to make sure + there is no duplicated element... Error: unexpected symbol in: " #markers2 <- markers2[!duplicated(markers2$gene),] #need to make sure there is" > sampTab <- object@sampTab Error: object 'object' not found > sampTab <- sampTab[cells.keep,] Error: object 'sampTab' not found > > if(column.ann == 'population'){ + markers2 <- markers2[order(as.numeric(markers2$population)),] + rownames(markers2) <- as.vector(markers2$gene) + sampTab <- sampTab[order(as.numeric(sampTab$population)),] + }else if(!is.null(order)){ + markers2 <- markers2[order(factor(markers2$population, levels=order)),] + sampTab <- sampTab[order(factor(sampTab[[column.ann]], levels=order)),] + }else{ + markers2 <- markers2[order(as.character(markers2$population)),] + rownames(markers2) <- as.vector(markers2$gene) + sampTab <- sampTab[order(as.character(sampTab[[column.ann]])),] + } Error: object 'column.ann' not found > > #clusters <- as.vector(object@sampTab$population) > #clusters <- as.vector(sampTab[[column.ann]]) > #names(clusters) <- rownames(sampTab) > #clusters <- clusters[order(clusters)] > ann_col <- sampTab[, c(column.ann, + column.ann2)]#data.frame(population=as.vector(clusters), stringsAsFactors = Error: object 'sampTab' not found > FALSE) Error: unexpected ')' in " FALSE)" > #rownames(ann_col) <- names(clusters) > > ann_row <- data.frame(signature=as.vector(markers2$population), + stringsAsFactors = FALSE) Error in as.vector(markers2$population) : object 'markers2' not found > rownames(ann_row) <- as.vector(markers2$gene) Error in as.vector(markers2$gene) : object 'markers2' not found > if(!is.null(order)){ + ann_col$population <- factor(ann_col$population, levels=order) + ann_row$signature <- factor(ann_row$signature, levels=order) + } Error in factor(ann_col$population, levels = order) : object 'ann_col' not found > > #colors <- cRampClust(cluster.vector, 8) > #names(colors) <- cluster.vector > colors <- unique(sampTab[[column.color]]) Error in unique(sampTab[[column.color]]) : object 'sampTab' not found > names(colors) <- unique(as.vector(sampTab[[column.ann]])) Error in as.vector(sampTab[[column.ann]]) : object 'sampTab' not found > > color_lists <- list(population=colors, signature=colors) > > #replicate_row <- as.vector(unlist(lapply(split(ann_row, > ann_row$signature), nrow))) Error: unexpected ')' in "ann_row$signature)" > #colors_row <- rep(colors, times=replicate_row) > #replicate_col <- as.vector(unlist(lapply(split(ann_col, > ann_col$population), nrow))) Error: unexpected ')' in "ann_col$population)" > #colors_col <- rep(colors, times=replicate_col) > index <- getIndexes(ann_col, ann_row, order.columns = + unique(ann_col$population), order.rows = unique(ann_row$signature)) Show Traceback Rerun with Debug Error in nrow(ann_col) : object 'ann_col' not found > > if(is.null(genes.show)){ + genes.show <- markers2 %>% group_by(population) %>% top_n(5, fc) + genes.show <- as.vector(genes.show$gene) + selected <- as.vector(markers2$gene) + selected[!(selected %in% genes.show)] <- "" + }else{ + selected <- as.vector(markers2$gene) + selected[!(selected %in% genes.show)] <- "" + } Error: object 'genes.show' not found > > pheatmap(matrix[rownames(ann_row),rownames(ann_col)], cluster_rows=FALSE, + cluster_cols=FALSE, color = myColor, breaks=myBreaks, fontsize=15, + #gaps_row = index$rowsep, + gaps_col = index$colsep, annotation_col = ann_col, + annotation_row = ann_row, annotation_colors = color_lists, + labels_row = selected, + labels_col = rep("", ncol(matrix)), width=width, height=height, + filename=filename) Error in pheatmap(matrix[rownames(ann_row), rownames(ann_col)], cluster_rows = FALSE, : object 'selected' not found > > > gc(verbose = FALSE) used (Mb) gc trigger (Mb) max used (Mb) Ncells 4058627 216.8 6353278 339.4 6353278 339.4 Vcells 1415607006 10800.3 3111833001 23741.5 2168651371 16545.5 > > } Error: unexpected '}' in "}" > plotSignaturesHeatmap2 <- function(object, markers, column.ann, + column.ann2, column.color, num.cells=NULL, threshold=2, genes.show=NULL, + low='purple', intermediate='black', + high='yellow', order=NULL, width, height, filename) + { + + if(is.null(num.cells)){ + print('here') + cells.keep <- rownames(object@sampTab) + print(table(object@sampTab[[column.ann]])) + }else{ + #cells.use <- object@sampTab %>% group_by_(column.ann) %>% + sample_n(size = num.cells, replace = TRUE) + cells.use <- split(object@sampTab, object@sampTab[[column.ann]]) + cells.use <- lapply(cells.use, function(x){ + if(nrow(x) < num.cells){ + cells.use.x <- x[sample(rownames(x), size = nrow(x)),] + }else{ + cells.use.xx <- x[sample(rownames(x), size = num.cells),] + } + }) + cells.use.tmp <- do.call(rbind, cells.use) + cells.keep <- as.vector(cells.use.tmp$sample_id) + } + + #data <- object@ndata[,cells.use] + matrix <- center_with_threshold(object@ndata[,cells.keep], threshold) + + paletteLength <- 100 + #myColor <- colorRampPalette(c("purple","black","yellow"))(paletteLength) + myColor <- colorRampPalette(c(low, intermediate, high))(paletteLength) + myBreaks <- c(seq(min(matrix), 0, length.out=ceiling(paletteLength/2) + + 1), + seq(max(matrix)/paletteLength, max(matrix), + length.out=floor(paletteLength/2))) + + + library(data.table) + markers2 <- as.data.frame(markers) + #markers2 <- as.data.frame(markers) + #markers2 <- as.data.table(markers2)[, .SD[which.max(fc.column)], by=gene] + #markers2 <- as.data.frame(markers2) + #markers2 <- as.data.frame(markers) + #markers2 <- markers2[!duplicated(markers2$gene),] #need to make sure + there is no duplicated element... Error: unexpected symbol in: " #markers2 <- markers2[!duplicated(markers2$gene),] #need to make sure there is" > sampTab <- object@sampTab Error: object 'object' not found > sampTab <- sampTab[cells.keep,] Error: object 'sampTab' not found > > if(column.ann == 'population'){ + markers2 <- markers2[order(as.numeric(markers2$population)),] + rownames(markers2) <- as.vector(markers2$gene) + sampTab <- sampTab[order(as.numeric(sampTab$population)),] + }else if(!is.null(order)){ + markers2 <- markers2[order(factor(markers2$population, levels=order)),] + sampTab <- sampTab[order(factor(sampTab[[column.ann]], levels=order)),] + }else{ + markers2 <- markers2[order(as.character(markers2$population)),] + rownames(markers2) <- as.vector(markers2$gene) + sampTab <- sampTab[order(as.character(sampTab[[column.ann]])),] + } Error: object 'column.ann' not found > > #clusters <- as.vector(object@sampTab$population) > #clusters <- as.vector(sampTab[[column.ann]]) > #names(clusters) <- rownames(sampTab) > #clusters <- clusters[order(clusters)] > ann_col <- sampTab[, c(column.ann, + column.ann2)]#data.frame(population=as.vector(clusters), stringsAsFactors = Error: object 'sampTab' not found > FALSE) Error: unexpected ')' in " FALSE)" > #rownames(ann_col) <- names(clusters) > > ann_row <- data.frame(signature=as.vector(markers2$population), + stringsAsFactors = FALSE) Error in as.vector(markers2$population) : object 'markers2' not found > rownames(ann_row) <- as.vector(markers2$gene) Error in as.vector(markers2$gene) : object 'markers2' not found > if(!is.null(order)){ + ann_col$population <- factor(ann_col$population, levels=order) + ann_row$signature <- factor(ann_row$signature, levels=order) + } Error in factor(ann_col$population, levels = order) : object 'ann_col' not found > > #colors <- cRampClust(cluster.vector, 8) > #names(colors) <- cluster.vector > colors <- unique(sampTab[[column.color]]) Error in unique(sampTab[[column.color]]) : object 'sampTab' not found > names(colors) <- unique(as.vector(sampTab[[column.ann]])) Error in as.vector(sampTab[[column.ann]]) : object 'sampTab' not found > > color_lists <- list(population=colors, signature=colors) > > #replicate_row <- as.vector(unlist(lapply(split(ann_row, > ann_row$signature), nrow))) Error: unexpected ')' in "ann_row$signature)" > #colors_row <- rep(colors, times=replicate_row) > #replicate_col <- as.vector(unlist(lapply(split(ann_col, > ann_col$population), nrow))) Error: unexpected ')' in "ann_col$population)" > #colors_col <- rep(colors, times=replicate_col) > index <- getIndexes(ann_col, ann_row, order.columns = + unique(ann_col$population), order.rows = unique(ann_row$signature)) Show Traceback Rerun with Debug Error in nrow(ann_col) : object 'ann_col' not found > > if(is.null(genes.show)){ + genes.show <- markers2 %>% group_by(population) %>% top_n(5, fc) + genes.show <- as.vector(genes.show$gene) + selected <- as.vector(markers2$gene) + selected[!(selected %in% genes.show)] <- "" + }else{ + selected <- as.vector(markers2$gene) + selected[!(selected %in% genes.show)] <- "" + } Error: object 'genes.show' not found > > pheatmap(matrix[rownames(ann_row),rownames(ann_col)], cluster_rows=FALSE, + cluster_cols=FALSE, color = myColor, breaks=myBreaks, fontsize=15, + #gaps_row = index$rowsep, + gaps_col = index$colsep, annotation_col = ann_col, + annotation_row = ann_row, annotation_colors = color_lists, + labels_row = selected, + labels_col = rep("", ncol(matrix)), width=width, height=height, + filename=filename) Error in pheatmap(matrix[rownames(ann_row), rownames(ann_col)], cluster_rows = FALSE, : object 'selected' not found > > > gc(verbose = FALSE) used (Mb) gc trigger (Mb) max used (Mb) Ncells 4058627 216.8 6353278 339.4 6353278 339.4 Vcells 1415607006 10800.3 3111833001 23741.5 2168651371 16545.5 > > } Error: unexpected '}' in "}" > plotSignaturesHeatmap2 <- function(object, markers, column.ann, + column.ann2, column.color, num.cells=NULL, threshold=2, genes.show=NULL, + low='purple', intermediate='black', + high='yellow', order=NULL, width, height, filename){ + + if(is.null(num.cells)){ + print('here') + cells.keep <- rownames(object@sampTab) + print(table(object@sampTab[[column.ann]])) + }else{ + #cells.use <- object@sampTab %>% group_by_(column.ann) %>% + sample_n(size = num.cells, replace = TRUE) + cells.use <- split(object@sampTab, object@sampTab[[column.ann]]) + cells.use <- lapply(cells.use, function(x){ + if(nrow(x) < num.cells){ + cells.use.x <- x[sample(rownames(x), size = nrow(x)),] + }else{ + cells.use.xx <- x[sample(rownames(x), size = num.cells),] + } + }) + cells.use.tmp <- do.call(rbind, cells.use) + cells.keep <- as.vector(cells.use.tmp$sample_id) + } + + #data <- object@ndata[,cells.use] + matrix <- center_with_threshold(object@ndata[,cells.keep], threshold) + + paletteLength <- 100 + #myColor <- colorRampPalette(c("purple","black","yellow"))(paletteLength) + myColor <- colorRampPalette(c(low, intermediate, high))(paletteLength) + myBreaks <- c(seq(min(matrix), 0, length.out=ceiling(paletteLength/2) + + 1), + seq(max(matrix)/paletteLength, max(matrix), + length.out=floor(paletteLength/2))) + + + library(data.table) + markers2 <- as.data.frame(markers) + #markers2 <- as.data.frame(markers) + #markers2 <- as.data.table(markers2)[, .SD[which.max(fc.column)], by=gene] + #markers2 <- as.data.frame(markers2) + #markers2 <- as.data.frame(markers) + #markers2 <- markers2[!duplicated(markers2$gene),] #need to make sure + there is no duplicated element... Error: unexpected symbol in: " #markers2 <- markers2[!duplicated(markers2$gene),] #need to make sure there is" > sampTab <- object@sampTab Error: object 'object' not found > sampTab <- sampTab[cells.keep,] Error: object 'sampTab' not found > > if(column.ann == 'population'){ + markers2 <- markers2[order(as.numeric(markers2$population)),] + rownames(markers2) <- as.vector(markers2$gene) + sampTab <- sampTab[order(as.numeric(sampTab$population)),] + }else if(!is.null(order)){ + markers2 <- markers2[order(factor(markers2$population, levels=order)),] + sampTab <- sampTab[order(factor(sampTab[[column.ann]], levels=order)),] + }else{ + markers2 <- markers2[order(as.character(markers2$population)),] + rownames(markers2) <- as.vector(markers2$gene) + sampTab <- sampTab[order(as.character(sampTab[[column.ann]])),] + } Error: object 'column.ann' not found > > #clusters <- as.vector(object@sampTab$population) > #clusters <- as.vector(sampTab[[column.ann]]) > #names(clusters) <- rownames(sampTab) > #clusters <- clusters[order(clusters)] > ann_col <- sampTab[, c(column.ann, + column.ann2)]#data.frame(population=as.vector(clusters), stringsAsFactors = Error: object 'sampTab' not found > FALSE) Error: unexpected ')' in " FALSE)" > #rownames(ann_col) <- names(clusters) > > ann_row <- data.frame(signature=as.vector(markers2$population), + stringsAsFactors = FALSE) Error in as.vector(markers2$population) : object 'markers2' not found > rownames(ann_row) <- as.vector(markers2$gene) Error in as.vector(markers2$gene) : object 'markers2' not found > if(!is.null(order)){ + ann_col$population <- factor(ann_col$population, levels=order) + ann_row$signature <- factor(ann_row$signature, levels=order) + } Error in factor(ann_col$population, levels = order) : object 'ann_col' not found > > #colors <- cRampClust(cluster.vector, 8) > #names(colors) <- cluster.vector > colors <- unique(sampTab[[column.color]]) Error in unique(sampTab[[column.color]]) : object 'sampTab' not found > names(colors) <- unique(as.vector(sampTab[[column.ann]])) Error in as.vector(sampTab[[column.ann]]) : object 'sampTab' not found > > color_lists <- list(population=colors, signature=colors) > > #replicate_row <- as.vector(unlist(lapply(split(ann_row, > ann_row$signature), nrow))) Error: unexpected ')' in "ann_row$signature)" > #colors_row <- rep(colors, times=replicate_row) > #replicate_col <- as.vector(unlist(lapply(split(ann_col, > ann_col$population), nrow))) Error: unexpected ')' in "ann_col$population)" > #colors_col <- rep(colors, times=replicate_col) > index <- getIndexes(ann_col, ann_row, order.columns = + unique(ann_col$population), order.rows = unique(ann_row$signature)) Show Traceback Rerun with Debug Error in nrow(ann_col) : object 'ann_col' not found > > if(is.null(genes.show)){ + genes.show <- markers2 %>% group_by(population) %>% top_n(5, fc) + genes.show <- as.vector(genes.show$gene) + selected <- as.vector(markers2$gene) + selected[!(selected %in% genes.show)] <- "" + }else{ + selected <- as.vector(markers2$gene) + selected[!(selected %in% genes.show)] <- "" + } Error: object 'genes.show' not found > > pheatmap(matrix[rownames(ann_row),rownames(ann_col)], cluster_rows=FALSE, + cluster_cols=FALSE, color = myColor, breaks=myBreaks, fontsize=15, + #gaps_row = index$rowsep, + gaps_col = index$colsep, annotation_col = ann_col, + annotation_row = ann_row, annotation_colors = color_lists, + labels_row = selected, + labels_col = rep("", ncol(matrix)), width=width, height=height, + filename=filename) Error in pheatmap(matrix[rownames(ann_row), rownames(ann_col)], cluster_rows = FALSE, : object 'selected' not found > > > gc(verbose = FALSE) used (Mb) gc trigger (Mb) max used (Mb) Ncells 4058627 216.8 6353278 339.4 6353278 339.4 Vcells 1415607006 10800.3 3111833001 23741.5 2168651371 16545.5 > > } Error: unexpected '}' in "}"
--
 
| >

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants