ClusterGVis
ClusterGVis copied to clipboard
Got an error when using visCluster after plot_genes_branched_heatmap2 with cds derived from monocle
The package is pretty cool. Thanks to Junjun. But T got an error when plotting heatmap with results from monocle2. Here is the message:
df = plot_genes_branched_heatmap2(cds[c(indGene), ], branch_point = 1, num_clusters = 4, show_rownames = T, branch_labels = c("Mac_C1QA", "Mac_IL1B"), hmcols = htCol,cores = 1, return_heatmap = TRUE) outFile = savePlt('ht_branch.pdf') pdf(outFile, width = 8, height = 6, family = 'ArialMT',onefile = T)
visCluster(object = df,plot.type = "heatmap") Error in
dplyr::arrange(): ℹ In argument:..1 = as.numeric(as.character(cluster)). Caused by error: ! 找不到对象'cluster' Runrlang::last_trace()to see where the error occurred. dev.off() pdf 4 rlang::last_trace() <error/dplyr:::mutate_error> Error indplyr::arrange(): ℹ In argument:..1 = as.numeric(as.character(cluster)). Caused by error: ! 找不到对象'cluster'
Backtrace:
▆
1. ├─ClusterGVis::visCluster(object = df, plot.type = "heatmap")
2. │ └─data.frame(object$wide.res, check.names = FALSE) %>% ...
3. ├─dplyr::arrange(., as.numeric(as.character(cluster)))
4. └─dplyr:::arrange.data.frame(., as.numeric(as.character(cluster)))
5. └─dplyr:::arrange_rows(.data, dots = dots, locale = .locale)
6. ├─dplyr::mutate(data, `:=`("{name}", !!dot), .keep = "none")
7. └─dplyr:::mutate.data.frame(data, `:=`("{name}", !!dot), .keep = "none")
8. └─dplyr:::mutate_cols(.data, dplyr_quosures(...), by)
9. ├─base::withCallingHandlers(...)
10. └─dplyr:::mutate_col(dots[[i]], data, mask, new_columns)
11. └─mask$eval_all_mutate(quo)
12. └─dplyr (local) eval()
Run rlang::last_trace(drop = FALSE) to see 3 hidden frames.
======================================= I need help!