zhanghao-njmu / SCP

An end-to-end Single-Cell Pipeline designed to facilitate comprehensive analysis and exploration of single-cell data.
https://zhanghao-njmu.github.io/SCP/
GNU General Public License v3.0
357 stars 81 forks source link

Heatmap - selective row labeling even when show_row_names set to FALSE #248

Closed bapoorva closed 1 month ago

bapoorva commented 2 months ago

Hi,

Great package. I had a question about the GroupHeatmap function.

The function generates a heatmap with only some rows labelled when show_row_names =F and when I set it to show_row_names=T, it gives me rownames twice. How do i remove the selective labeling on the left ?

sample_heatmap

Thanks

bapoorva commented 1 month ago

Looks like a bug. I was able to hack the code to get what I needed.

basically commented out one line

if (is.null(ha_left)) {
      #ha_left <- ha_mark
    } else {
      ha_left <- c(ha_mark, ha_left)
    }
  }