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

[bug] group.colors in DoHeatmap not change in legend. #5783

Closed
xizhihui opened this issue Mar 25, 2022 · 4 comments
Closed

[bug] group.colors in DoHeatmap not change in legend. #5783

xizhihui opened this issue Mar 25, 2022 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@xizhihui
Copy link

Hi, I wanna change the group colors to custom colors in DoHeatmap, but colors did not change in the legend.

library(Seurat)
library(patchwork)
DoHeatmap(pbmc_small) + DoHeatmap(pbmc_small, group.colors=c("0" = "yellow", "1" = "yellow", "2" = "yellow"))
sessionInfo()

R version 4.0.5 (2021-03-31)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 16.04.7 LTS

Matrix products: default
BLAS:   /opt/R/4.0.5/lib/R/lib/libRblas.so
LAPACK: /opt/R/4.0.5/lib/R/lib/libRlapack.so

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C
 [3] LC_TIME=zh_CN.UTF-8        LC_COLLATE=en_US.UTF-8
 [5] LC_MONETARY=zh_CN.UTF-8    LC_MESSAGES=en_US.UTF-8
 [7] LC_PAPER=zh_CN.UTF-8       LC_NAME=C
 [9] LC_ADDRESS=C               LC_TELEPHONE=C
[11] LC_MEASUREMENT=zh_CN.UTF-8 LC_IDENTIFICATION=C

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

other attached packages:
[1] patchwork_1.1.1    SeuratObject_4.0.4 Seurat_4.1.0

loaded via a namespace (and not attached):
  [1] nlme_3.1-152          matrixStats_0.61.0    spatstat.sparse_2.1-0
  [4] RcppAnnoy_0.0.19      RColorBrewer_1.1-2    httr_1.4.2
  [7] sctransform_0.3.3     tools_4.0.5           utf8_1.2.2
 [10] R6_2.5.1              irlba_2.3.5           rpart_4.1-15
 [13] KernSmooth_2.23-18    uwot_0.1.11           mgcv_1.8-34
 [16] DBI_1.1.2             lazyeval_0.2.2        colorspace_2.0-2
 [19] tidyselect_1.1.1      gridExtra_2.3         compiler_4.0.5
 [22] cli_3.1.1             plotly_4.10.0         labeling_0.4.2
 [25] scales_1.1.1          lmtest_0.9-39         spatstat.data_2.1-2
 [28] ggridges_0.5.3        pbapply_1.5-0         goftest_1.2-3
 [31] stringr_1.4.0         digest_0.6.29         spatstat.utils_2.3-0
 [34] pkgconfig_2.0.3       htmltools_0.5.2       parallelly_1.30.0
 [37] fastmap_1.1.0         htmlwidgets_1.5.4     rlang_1.0.1
 [40] shiny_1.7.1           farver_2.1.0          generics_0.1.2
 [43] zoo_1.8-9             jsonlite_1.7.3        ica_1.0-2
 [46] dplyr_1.0.8           magrittr_2.0.2        Matrix_1.4-0
 [49] Rcpp_1.0.8            munsell_0.5.0         fansi_1.0.2
 [52] abind_1.4-5           reticulate_1.24       lifecycle_1.0.1
 [55] stringi_1.7.6         MASS_7.3-53.1         Rtsne_0.15
 [58] plyr_1.8.6            grid_4.0.5            parallel_4.0.5
 [61] listenv_0.8.0         promises_1.2.0.1      ggrepel_0.9.1
 [64] crayon_1.4.2          miniUI_0.1.1.1        deldir_1.0-6
 [67] lattice_0.20-41       cowplot_1.1.1         splines_4.0.5
 [70] tensor_1.5            pillar_1.7.0          igraph_1.2.11
 [73] spatstat.geom_2.3-1   future.apply_1.8.1    reshape2_1.4.4
 [76] codetools_0.2-18      leiden_0.3.9          glue_1.6.1
 [79] data.table_1.14.2     png_0.1-7             vctrs_0.3.8
 [82] httpuv_1.6.5          gtable_0.3.0          RANN_2.6.1
 [85] purrr_0.3.4           spatstat.core_2.3-2   polyclip_1.10-0
 [88] tidyr_1.2.0           scattermore_0.7       future_1.23.0
 [91] assertthat_0.2.1      ggplot2_3.3.5         mime_0.12
 [94] xtable_1.8-4          later_1.3.0           survival_3.2-10
 [97] viridisLite_0.4.0     tibble_3.1.6          cluster_2.1.1
[100] globals_0.14.0        fitdistrplus_1.1-6    ellipsis_0.3.2
[103] ROCR_1.0-11
@xizhihui xizhihui added the bug Something isn't working label Mar 25, 2022
@yuhanH
Copy link
Collaborator

yuhanH commented Mar 25, 2022

Thanks for posting this bug. We will fix it soon.

@yuhanH yuhanH self-assigned this Mar 25, 2022
@timoast timoast closed this as completed May 20, 2022
@QueenieBear
Copy link

same question😭

@yuhanH
Copy link
Collaborator

yuhanH commented Jul 5, 2022

hi @QueenieBear
This bug is fixed in the latest develop branch.

@QueenieBear
Copy link

QueenieBear commented Jul 5, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants