hemberg-lab / SC3

A tool for the unsupervised clustering of cells from single cell RNA-Seq experiments
http://bioconductor.org/packages/SC3
GNU General Public License v3.0
118 stars 55 forks source link

Plot column names #79

Open simone-rizzetto opened 5 years ago

simone-rizzetto commented 5 years ago

Hi, thanks for the amazing software! I'm wondering if you could add an option to plot cell names. Such as, in PlotMethods.R, change sc3_plot_markers.SingleCellExperiment <- function(object, k, auroc, p.val, show_pdata) { to sc3_plot_markers.SingleCellExperiment <- function(object, k, auroc, p.val, show_pdata, show_colnames=FALSE) {

and

do.call(pheatmap::pheatmap, c(list(dataset[markers$feature_symbol, , drop = FALSE], show_colnames = show_colnames, cluster_rows = FALSE, cluster_cols = hc, cutree_cols = k, annotation_row = row.ann, annotation_names_row = FALSE, gaps_row = which(diff(markers[, 1]) != 0), cellheight = 10), list(annotation_col = ann)[add_ann_col]))

wikiselev commented 5 years ago

Hi, thanks for the suggestion, could you please create a pull request for this?