Closed Zepeng-Mu closed 1 year ago
Hi @Zepeng-Mu! Thanks for using ArchR! Please make sure that your post belongs in the Issues section. Only bugs and error reports belong in the Issues section. Usage questions and feature requests should be posted in the Discussions section, not in Issues.
Before we help you, you must respond to the following questions unless your original post already contained this information:
1. If you've encountered an error, have you already searched previous Issues to make sure that this hasn't already been solved?
2. Can you recapitulate your error using the tutorial code and dataset? If so, provide a reproducible example.
3. Did you post your log file? If not, add it now.
4. Remove any screenshots that contain text and instead copy and paste the text using markdown's codeblock syntax (three consecutive backticks). You can do this by editing your original post.
can you downgrade ggplot2 and retry
devtools::install_version("ggplot2", version = "3.3.6", repos = "http://cran.us.r-project.org")
Hi, unloading ggplot2 does not seem to have an effect. I thought plotEnrichHeatmap
uses ComplexHeatmap?
Yes that is true.
I'm not able to recapitulate this error with the tutorial data:
> heatmapEM <- plotEnrichHeatmap(enrichMotifs, n = 7, transpose = TRUE)
ArchR logging to : ArchRLogs/ArchR-plotEnrichHeatmap-2f9ea33e65cfaa-Date-2022-12-21_Time-09-49-41.log
If there is an issue, please report to github with logFile!
Adding Annotations..
Preparing Main Heatmap..
'magick' package is suggested to install to give better rasterization.
Set `ht_opt$message = FALSE` to turn off this message.
> ComplexHeatmap::draw(heatmapEM, heatmap_legend_side = "bot", annotation_legend_side = "bot")
It seems you are using RStudio IDE. `anno_mark()` needs to work with the physical size of the graphics device. It only
generates correct plot in the figure panel, while in the zoomed plot (by clicking the icon 'Zoom') or in the exported plot (by
clicking the icon 'Export'), the connection to heatmap rows/columns might be wrong. You can directly use e.g. pdf() to save
the plot into a file.
Use `ht_opt$message = FALSE` to turn off this message.
transpose = FALSE
> heatmapEM <- plotEnrichHeatmap(enrichMotifs, n = 7, transpose = FALSE)
ArchR logging to : ArchRLogs/ArchR-plotEnrichHeatmap-2f9ea33f44227c-Date-2022-12-21_Time-09-49-57.log
If there is an issue, please report to github with logFile!
Preparing Main Heatmap..
'magick' package is suggested to install to give better rasterization.
Set `ht_opt$message = FALSE` to turn off this message.
> ComplexHeatmap::draw(heatmapEM, heatmap_legend_side = "bot", annotation_legend_side = "bot")
It seems you are using RStudio IDE. `anno_mark()` needs to work with the physical size of the graphics device. It only
generates correct plot in the figure panel, while in the zoomed plot (by clicking the icon 'Zoom') or in the exported plot (by
clicking the icon 'Export'), the connection to heatmap rows/columns might be wrong. You can directly use e.g. pdf() to save
the plot into a file.
Use `ht_opt$message = FALSE` to turn off this message.
Must be some package incompatibility issue. It looks like you are on a more recent version of ComplexHeatmap and also probably a more recent version of Bioconductor. The most recent Bioconductor release (3.16
)has been causing problems with ArchR
Incase it is helpful, here is my sessionInfo()
> session_info()
─ Session info ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
hash: clutch bag, baby bottle, Tokyo tower
setting value
version R version 4.1.1 (2021-08-10)
os Rocky Linux 8.5 (Green Obsidian)
system x86_64, linux-gnu
ui RStudio
language (EN)
collate en_US.UTF-8
ctype en_US.UTF-8
tz America/Los_Angeles
date 2022-12-21
rstudio 2021.09.2+382 Ghost Orchid (server)
pandoc 2.14.0.3 @ /usr/lib/rstudio-server/bin/pandoc/ (via rmarkdown)
─ Packages ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
! package * version date (UTC) lib source
P abind 1.4-5 2016-07-21 [?] CRAN (R 4.1.1)
P annotate 1.72.0 2021-10-26 [?] Bioconductor
P AnnotationDbi 1.56.2 2021-11-09 [?] Bioconductor
P ArchR * 1.0.3 2022-12-17 [?] Github (GreenleafLab/ArchR@b243653)
assertthat 0.2.1 2019-03-21 [1] CRAN (R 4.1.1)
beeswarm 0.4.0 2021-06-01 [1] CRAN (R 4.1.1)
P Biobase * 2.54.0 2021-10-26 [?] Bioconductor
P BiocGenerics * 0.40.0 2021-10-26 [?] Bioconductor
P BiocIO 1.4.0 2021-10-26 [?] Bioconductor
P BiocManager 1.30.16 2021-06-15 [?] CRAN (R 4.1.1)
P BiocParallel 1.28.2 2021-11-25 [?] Bioconductor
P Biostrings * 2.62.0 2021-10-26 [?] Bioconductor
P bit 4.0.4 2020-08-04 [?] CRAN (R 4.1.1)
P bit64 4.0.5 2020-08-30 [?] CRAN (R 4.1.1)
P bitops 1.0-7 2021-04-24 [?] CRAN (R 4.1.1)
P blob 1.2.2 2021-07-23 [?] CRAN (R 4.1.1)
P bookdown 0.30 2022-11-09 [?] CRAN (R 4.1.1)
P boot 1.3-28 2021-05-03 [?] CRAN (R 4.1.1)
P BSgenome * 1.62.0 2021-10-26 [?] Bioconductor
P BSgenome.Hsapiens.UCSC.hg19 * 1.4.3 2021-12-05 [?] Bioconductor
P bslib 0.3.1 2021-10-06 [?] CRAN (R 4.1.1)
P cachem 1.0.6 2021-08-19 [?] CRAN (R 4.1.1)
P Cairo 1.5-12.2 2020-07-07 [?] CRAN (R 4.1.1)
P callr 3.7.0 2021-04-20 [?] CRAN (R 4.1.1)
P caTools 1.18.2 2021-03-28 [?] CRAN (R 4.1.1)
P chromVAR * 1.16.0 2021-10-26 [?] Bioconductor
P chromVARmotifs * 0.2.0 2021-12-08 [?] Github (GreenleafLab/chromVARmotifs@38bed55)
P circlize * 0.4.13 2021-06-09 [?] CRAN (R 4.1.1)
P cli 3.4.1 2022-09-23 [?] CRAN (R 4.1.1)
P clue 0.3-60 2021-10-11 [?] CRAN (R 4.1.1)
P cluster 2.1.2 2021-04-17 [?] CRAN (R 4.1.1)
P CNEr 1.30.0 2021-10-26 [?] Bioconductor
P codetools 0.2-18 2020-11-04 [?] CRAN (R 4.1.1)
P colorspace 2.0-2 2021-06-24 [?] CRAN (R 4.1.1)
P ComplexHeatmap * 2.10.0 2021-10-26 [?] Bioconductor
P cowplot 1.1.1 2020-12-30 [?] CRAN (R 4.1.1)
P crayon 1.4.2 2021-10-29 [?] CRAN (R 4.1.1)
P curl 4.3.2 2021-06-23 [?] CRAN (R 4.1.1)
P data.table * 1.14.2 2021-09-27 [?] CRAN (R 4.1.1)
P DBI 1.1.1 2021-01-15 [?] CRAN (R 4.1.1)
P DelayedArray 0.20.0 2021-10-26 [?] Bioconductor
P deldir 1.0-6 2021-10-23 [?] CRAN (R 4.1.1)
P desc 1.4.0 2021-09-28 [?] CRAN (R 4.1.1)
P devtools * 2.4.3 2021-11-30 [?] CRAN (R 4.1.1)
P diffobj 0.3.5 2021-10-05 [?] CRAN (R 4.1.1)
P digest 0.6.29 2021-12-01 [?] CRAN (R 4.1.1)
P DirichletMultinomial 1.36.0 2021-10-26 [?] Bioconductor
P doParallel 1.0.16 2020-10-16 [?] CRAN (R 4.1.1)
dplyr 1.0.10 2022-09-01 [1] CRAN (R 4.1.1)
P DT 0.20 2021-11-15 [?] CRAN (R 4.1.1)
P ellipsis 0.3.2 2021-04-29 [?] CRAN (R 4.1.1)
P evaluate 0.18 2022-11-07 [?] CRAN (R 4.1.1)
P fansi 0.5.0 2021-05-25 [?] CRAN (R 4.1.1)
P fastmap 1.1.0 2021-01-25 [?] CRAN (R 4.1.1)
P fitdistrplus 1.1-6 2021-09-28 [?] CRAN (R 4.1.1)
P foreach 1.5.1 2020-10-15 [?] CRAN (R 4.1.1)
P fs 1.5.0 2020-07-31 [?] CRAN (R 4.1.1)
future 1.29.0 2022-11-06 [1] CRAN (R 4.1.1)
P future.apply 1.8.1 2021-08-10 [?] CRAN (R 4.1.1)
P generics 0.1.1 2021-10-25 [?] CRAN (R 4.1.1)
P GenomeInfoDb * 1.30.0 2021-10-26 [?] Bioconductor
P GenomeInfoDbData 1.2.7 2021-12-04 [?] Bioconductor
P GenomicAlignments 1.30.0 2021-10-26 [?] Bioconductor
P GenomicRanges * 1.46.1 2021-11-18 [?] Bioconductor
P GetoptLong 1.0.5 2020-12-15 [?] CRAN (R 4.1.1)
ggbeeswarm 0.6.0 2017-08-07 [1] CRAN (R 4.1.1)
P ggplot2 * 3.3.5 2021-06-25 [?] CRAN (R 4.1.1)
ggrastr 1.0.1 2021-12-08 [1] CRAN (R 4.1.1)
P ggrepel 0.9.1 2021-01-15 [?] CRAN (R 4.1.1)
P ggridges 0.5.3 2021-01-08 [?] CRAN (R 4.1.1)
P GlobalOptions 0.1.2 2020-06-10 [?] CRAN (R 4.1.1)
globals 0.16.2 2022-11-21 [1] CRAN (R 4.1.1)
P glue 1.5.1 2021-11-30 [?] CRAN (R 4.1.1)
P GO.db 3.14.0 2021-12-04 [?] Bioconductor
P goftest 1.2-3 2021-10-07 [?] CRAN (R 4.1.1)
P gridExtra * 2.3 2017-09-09 [?] CRAN (R 4.1.1)
P gtable * 0.3.0 2019-03-25 [?] CRAN (R 4.1.1)
P gtools * 3.9.2 2021-06-06 [?] CRAN (R 4.1.1)
P harmony * 0.1.1 2022-11-14 [?] CRAN (R 4.1.1)
P hms 1.1.1 2021-09-26 [?] CRAN (R 4.1.1)
P htmltools 0.5.2 2021-08-25 [?] CRAN (R 4.1.1)
P htmlwidgets 1.5.4 2021-09-08 [?] CRAN (R 4.1.1)
P httpuv 1.6.3 2021-09-09 [?] CRAN (R 4.1.1)
P httr 1.4.2 2020-07-20 [?] CRAN (R 4.1.1)
P ica 1.0-2 2018-05-24 [?] CRAN (R 4.1.1)
P igraph 1.3.5 2022-09-22 [?] CRAN (R 4.1.1)
P IRanges * 2.28.0 2021-10-26 [?] Bioconductor
P irlba 2.3.3 2019-02-05 [?] CRAN (R 4.1.1)
P iterators 1.0.13 2020-10-15 [?] CRAN (R 4.1.1)
P jquerylib 0.1.4 2021-04-26 [?] CRAN (R 4.1.1)
P jsonlite 1.7.2 2020-12-09 [?] CRAN (R 4.1.1)
P KEGGREST 1.34.0 2021-10-26 [?] Bioconductor
P KernSmooth 2.23-20 2021-05-03 [?] CRAN (R 4.1.1)
P knitr 1.41 2022-11-18 [?] CRAN (R 4.1.1)
P later 1.3.0 2021-08-18 [?] CRAN (R 4.1.1)
P lattice 0.20-45 2021-09-22 [?] CRAN (R 4.1.1)
P lazyeval 0.2.2 2019-03-15 [?] CRAN (R 4.1.1)
P leiden 0.3.9 2021-07-27 [?] CRAN (R 4.1.1)
leidenbase 0.1.12 2022-09-29 [1] CRAN (R 4.1.1)
lifecycle 1.0.3 2022-10-07 [1] CRAN (R 4.1.1)
P listenv 0.8.0 2019-12-05 [?] CRAN (R 4.1.1)
lme4 1.1-31 2022-11-01 [1] CRAN (R 4.1.1)
P lmtest 0.9-39 2021-11-07 [?] CRAN (R 4.1.1)
P magrittr * 2.0.1 2020-11-17 [?] CRAN (R 4.1.1)
P MASS 7.3-54 2021-05-03 [?] CRAN (R 4.1.1)
P Matrix * 1.5-3 2022-11-11 [?] CRAN (R 4.1.1)
P MatrixGenerics * 1.6.0 2021-10-26 [?] Bioconductor
P matrixStats * 0.61.0 2021-09-17 [?] CRAN (R 4.1.1)
P memoise 2.0.1 2021-11-26 [?] CRAN (R 4.1.1)
P mgcv 1.8-38 2021-10-06 [?] CRAN (R 4.1.1)
P mime 0.12 2021-09-28 [?] CRAN (R 4.1.1)
P miniUI 0.1.1.1 2018-05-18 [?] CRAN (R 4.1.1)
minqa 1.2.5 2022-10-19 [1] CRAN (R 4.1.1)
monocle3 * 1.3.1 2022-12-13 [1] Github (cole-trapnell-lab/monocle3@b545460)
P motifmatchr * 1.16.0 2021-10-26 [?] Bioconductor
P munsell 0.5.0 2018-06-12 [?] CRAN (R 4.1.1)
P nabor * 0.5.0 2018-07-11 [?] CRAN (R 4.1.1)
P nlme 3.1-153 2021-09-07 [?] CRAN (R 4.1.1)
nloptr 2.0.3 2022-05-26 [1] CRAN (R 4.1.1)
parallelly 1.32.1 2022-07-21 [1] CRAN (R 4.1.1)
P patchwork 1.1.1 2020-12-17 [?] CRAN (R 4.1.1)
P pbapply 1.5-0 2021-09-16 [?] CRAN (R 4.1.1)
P pheatmap 1.0.12 2019-01-04 [?] CRAN (R 4.1.1)
P pillar 1.6.4 2021-10-18 [?] CRAN (R 4.1.1)
P pkgbuild 1.2.1 2021-11-30 [?] CRAN (R 4.1.1)
P pkgconfig 2.0.3 2019-09-22 [?] CRAN (R 4.1.1)
P pkgload 1.2.4 2021-11-30 [?] CRAN (R 4.1.1)
P plotly 4.10.0 2021-10-09 [?] CRAN (R 4.1.1)
P plyr * 1.8.6 2020-03-03 [?] CRAN (R 4.1.1)
P png 0.1-7 2013-12-03 [?] CRAN (R 4.1.1)
P polyclip 1.10-0 2019-03-14 [?] CRAN (R 4.1.1)
P poweRlaw 0.70.6 2020-04-25 [?] CRAN (R 4.1.1)
P pracma 2.3.3 2021-01-23 [?] CRAN (R 4.1.1)
P presto 1.0.0 2021-12-08 [?] Github (immunogenomics/presto@052085d)
P prettyunits 1.1.1 2020-01-24 [?] CRAN (R 4.1.1)
P processx 3.5.2 2021-04-30 [?] CRAN (R 4.1.1)
P progressr 0.11.0 2022-09-02 [?] CRAN (R 4.1.1)
P promises 1.2.0.1 2021-02-11 [?] CRAN (R 4.1.1)
proxy 0.4-27 2022-06-09 [1] CRAN (R 4.1.1)
P ps 1.6.0 2021-02-28 [?] CRAN (R 4.1.1)
P purrr 0.3.4 2020-04-17 [?] CRAN (R 4.1.1)
P R.methodsS3 1.8.1 2020-08-26 [?] CRAN (R 4.1.1)
P R.oo 1.24.0 2020-08-26 [?] CRAN (R 4.1.1)
P R.utils 2.11.0 2021-09-26 [?] CRAN (R 4.1.1)
P R6 2.5.1 2021-08-19 [?] CRAN (R 4.1.1)
P RANN 2.6.1 2019-01-08 [?] CRAN (R 4.1.1)
P RColorBrewer 1.1-2 2014-12-07 [?] CRAN (R 4.1.1)
P Rcpp * 1.0.7 2021-07-07 [?] CRAN (R 4.1.1)
P RcppAnnoy 0.0.19 2021-07-30 [?] CRAN (R 4.1.1)
P RcppArmadillo * 0.10.7.3.0 2021-11-05 [?] CRAN (R 4.1.1)
P RcppHNSW 0.3.0 2020-09-06 [?] CRAN (R 4.1.1)
P RCurl 1.98-1.5 2021-09-17 [?] CRAN (R 4.1.1)
P readr 2.1.0 2021-11-11 [?] CRAN (R 4.1.1)
P remotes 2.4.2 2021-11-30 [?] CRAN (R 4.1.1)
renv 0.16.0 2022-09-29 [1] CRAN (R 4.1.1)
P reshape2 1.4.4 2020-04-09 [?] CRAN (R 4.1.1)
P restfulr 0.0.13 2017-08-06 [?] CRAN (R 4.1.1)
P reticulate 1.22 2021-09-17 [?] CRAN (R 4.1.1)
P rhandsontable 0.3.8 2021-05-27 [?] CRAN (R 4.1.1)
P rhdf5 * 2.38.0 2021-10-26 [?] Bioconductor
P rhdf5filters 1.6.0 2021-10-26 [?] Bioconductor
P Rhdf5lib 1.16.0 2021-10-26 [?] Bioconductor
P rjson 0.2.21 2022-01-09 [?] CRAN (R 4.1.1)
rlang 1.0.6 2022-09-24 [1] CRAN (R 4.1.1)
P rmarkdown 2.18 2022-11-09 [?] CRAN (R 4.1.1)
P ROCR 1.0-11 2020-05-02 [?] CRAN (R 4.1.1)
P rpart 4.1-15 2019-04-12 [?] CRAN (R 4.1.1)
P rprojroot 2.0.2 2020-11-15 [?] CRAN (R 4.1.1)
P Rsamtools * 2.10.0 2021-10-26 [?] Bioconductor
P RSpectra 0.16-0 2019-12-01 [?] CRAN (R 4.1.1)
P RSQLite 2.2.8 2021-08-21 [?] CRAN (R 4.1.1)
P rstudioapi 0.13 2020-11-12 [?] CRAN (R 4.1.1)
P rtracklayer * 1.54.0 2021-10-26 [?] Bioconductor
P Rtsne 0.15 2018-11-10 [?] CRAN (R 4.1.1)
P S4Vectors * 0.32.3 2021-11-21 [?] Bioconductor
P sass 0.4.0 2021-05-12 [?] CRAN (R 4.1.1)
P scales 1.1.1 2020-05-11 [?] CRAN (R 4.1.1)
P scattermore 0.7 2020-11-24 [?] CRAN (R 4.1.1)
P sctransform 0.3.2 2020-12-16 [?] CRAN (R 4.1.1)
P seqLogo 1.60.0 2021-10-26 [?] Bioconductor
P sessioninfo 1.2.1 2021-11-02 [?] CRAN (R 4.1.1)
P Seurat * 4.0.5 2021-10-17 [?] CRAN (R 4.1.1)
P SeuratObject * 4.1.3 2022-11-07 [?] CRAN (R 4.1.1)
P shape 1.4.6 2021-05-19 [?] CRAN (R 4.1.1)
P shiny 1.7.1 2021-10-02 [?] CRAN (R 4.1.1)
P SingleCellExperiment * 1.16.0 2021-10-26 [?] Bioconductor
P sp 1.5-1 2022-11-07 [?] CRAN (R 4.1.1)
P sparseMatrixStats * 1.6.0 2021-10-26 [?] Bioconductor
P spatstat.core 2.3-1 2021-11-02 [?] CRAN (R 4.1.1)
P spatstat.data 2.1-0 2021-03-21 [?] CRAN (R 4.1.1)
P spatstat.geom 2.3-0 2021-10-09 [?] CRAN (R 4.1.1)
P spatstat.sparse 2.0-0 2021-03-16 [?] CRAN (R 4.1.1)
P spatstat.utils 2.2-0 2021-06-14 [?] CRAN (R 4.1.1)
P stringi 1.7.6 2021-11-29 [?] CRAN (R 4.1.1)
P stringr * 1.4.0 2019-02-10 [?] CRAN (R 4.1.1)
P SummarizedExperiment * 1.24.0 2021-10-26 [?] Bioconductor
P survival 3.2-13 2021-08-24 [?] CRAN (R 4.1.1)
P tensor 1.5 2012-05-05 [?] CRAN (R 4.1.1)
terra 1.6-47 2022-12-02 [1] CRAN (R 4.1.1)
P testthat * 3.1.1 2021-12-03 [?] CRAN (R 4.1.1)
P TFBSTools 1.32.0 2021-10-26 [?] Bioconductor
P TFMPvalue 0.0.8 2018-05-16 [?] CRAN (R 4.1.1)
P tibble 3.1.6 2021-11-07 [?] CRAN (R 4.1.1)
P tidyr 1.1.4 2021-09-27 [?] CRAN (R 4.1.1)
P tidyselect 1.1.1 2021-04-30 [?] CRAN (R 4.1.1)
P tzdb 0.2.0 2021-10-27 [?] CRAN (R 4.1.1)
P usethis * 2.1.3 2021-10-27 [?] CRAN (R 4.1.1)
P utf8 1.2.2 2021-07-24 [?] CRAN (R 4.1.1)
P uwot * 0.1.10 2020-12-15 [?] CRAN (R 4.1.1)
vctrs 0.5.1 2022-11-16 [1] CRAN (R 4.1.1)
vipor 0.4.5 2017-03-22 [1] CRAN (R 4.1.1)
P viridisLite 0.4.0 2021-04-13 [?] CRAN (R 4.1.1)
P withr 2.4.3 2021-11-30 [?] CRAN (R 4.1.1)
P xfun 0.35 2022-11-16 [?] CRAN (R 4.1.1)
P XML 3.99-0.8 2021-09-17 [?] CRAN (R 4.1.1)
P xtable 1.8-4 2019-04-21 [?] CRAN (R 4.1.1)
P XVector * 0.34.0 2021-10-26 [?] Bioconductor
P yaml 2.2.1 2020-02-01 [?] CRAN (R 4.1.1)
P zlibbioc 1.40.0 2021-10-26 [?] Bioconductor
P zoo 1.8-9 2021-03-09 [?] CRAN (R 4.1.1)
[1] /corces/home/rcorces/ArchR/tutorial_221130/renv/library/R-4.1/x86_64-pc-linux-gnu
[2] /corces/home/rcorces/ArchR/tutorial_221130/renv/sandbox/R-4.1/x86_64-pc-linux-gnu/3713ef1a
P ── Loaded and on-disk path mismatch.
closing as I cannot recapitulate this but please feel free to post again here if you have any update from your end. One other thing to try to look into this more would be to provide a PDF of the plot and open it in Adobe Illustrator to see if it is indeed a mask/additional layer on the plot or if it is something else.
Thanks. In fact the reason is the black border around heatmap cells that is covering everything. Setting rastr = F
makes things better, I guess I can also increase raster quality in ComplexHeatmap.
Hello,
I'm using the
dev
branch of ArchR, and found thatplotEnrichHeatmap
generates a black heatmap whentranspose = F
.If you look at the bottom one really hard, you kind of see the heatmap beneath the very black mask above it. I do not recall having this issue before with previous versions of ArchR.
Here is the session info: