-
Notifications
You must be signed in to change notification settings - Fork 140
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
Error in plotPDF() #2150
Comments
Hi @sokratiag! Thanks for using ArchR! Lately, it has been very challenging for me to keep up with maintenance of this package and all of my other |
I also encountered the same error. Have you solved this error? |
Hi, I downgraded some packages and it works now - I think the issue was with ggplot2, I downgraded to version 3.4.2. I also used: options("Seurat.object.assay.version" = "v3"). R version 4.2.3 (2023-03-15) Matrix products: default locale: attached base packages: other attached packages: loaded via a namespace (and not attached): |
Hi,
I am getting an error when trying to use plotPDF() function (sessioninfo below):
Plotting Ggplot!
Error in g$grobs[[legend]]: no such index at level 2
Traceback:
. ArcRProj = proj_multiome, addDOC = FALSE, width = 10,
. height = 10)
. pdf(filename, width = width, height = height, useDingbats = useDingbats)
. for (i in seq_along(plotList)) {
. if (inherits(plotList[[i]], "gg")) {
. if (inherits(plotList[[i]], "patchwork")) {
. if (getArchRVerbose())
. message("Plotting Patchwork!")
. print(plotList[[i]])
. }
. else {
. if (getArchRVerbose())
. message("Plotting Ggplot!")
. if (!is.null(attr(plotList[[i]], "ratioYX"))) {
. .fixPlotSize(plotList[[i]], plotWidth = width,
. plotHeight = height, height = attr(plotList[[i]],
. "ratioYX"), newPage = FALSE)
. }
. else {
. .fixPlotSize(plotList[[i]], plotWidth = width,
. plotHeight = height, newPage = FALSE)
. }
. }
. if (i != length(plotList)) {
. grid::grid.newpage()
. }
. }
. else if (inherits(plotList[[i]], "gtable")) {
. if (getArchRVerbose())
. message("Plotting Gtable!")
. print(grid::grid.draw(plotList[[i]]))
. if (i != length(plotList)) {
. grid::grid.newpage()
. }
. }
. else if (inherits(plotList[[i]], "HeatmapList") | inherits(plotList[[i]],
. "Heatmap")) {
. if (getArchRVerbose())
. message("Plotting ComplexHeatmap!")
. padding <- 15
. draw(plotList[[i]], padding = unit(c(padding, padding,
. padding, padding), "mm"), heatmap_legend_side = "bot",
. annotation_legend_side = "bot")
. }
. else {
. if (getArchRVerbose())
. message("Plotting Other")
. print(plotList[[i]])
. }
. }
. dev.off()
. }, error = function(x) {
. if (getArchRVerbose())
. message(x)
. })
. signalCondition(cond)
. defaultHandler(cond)
. }, muffleMessage = function() NULL)
R version 4.3.3 (2024-02-29)
Platform: x86_64-conda-linux-gnu (64-bit)
Running under: CentOS Linux 7 (Core)
Matrix products: default
BLAS/LAPACK: /mnt/mr01-home01/b28763sg/anaconda3/envs/r_mul/lib/libopenblasp-r0.3.26.so; LAPACK version 3.12.0
locale:
[1] LC_CTYPE=en_GB.UTF-8 LC_NUMERIC=C
[3] LC_TIME=en_GB.UTF-8 LC_COLLATE=en_GB.UTF-8
[5] LC_MONETARY=en_GB.UTF-8 LC_MESSAGES=en_GB.UTF-8
[7] LC_PAPER=en_GB.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_GB.UTF-8 LC_IDENTIFICATION=C
time zone: Europe/London
tzcode source: system (glibc)
attached base packages:
[1] stats4 grid stats graphics grDevices utils datasets
[8] methods base
other attached packages:
[1] remotes_2.5.0 scDblFinder_1.16.0
[3] viridis_0.6.5 viridisLite_0.4.2
[5] SingleR_2.4.1 scran_1.30.2
[7] scater_1.30.1 scuttle_1.12.0
[9] scales_1.3.0 KernSmooth_2.23-22
[11] igraph_2.0.3 ggrepel_0.9.5
[13] ggforce_0.4.2 ggbeeswarm_0.7.2
[15] enrichR_3.2 DropletUtils_1.22.0
[17] SingleCellExperiment_1.24.0 cowplot_1.1.3
[19] bluster_1.12.0 AnnotationHub_3.10.0
[21] BiocFileCache_2.10.2 dbplyr_2.5.0
[23] SeuratObject_5.0.1 Seurat_4.3.0
[25] hdf5r_1.3.10 HDF5Array_1.30.1
[27] DelayedArray_0.28.0 SparseArray_1.2.4
[29] S4Arrays_1.2.1 abind_1.4-5
[31] lubridate_1.9.3 forcats_1.0.0
[33] dplyr_1.1.4 purrr_1.0.2
[35] readr_2.1.5 tidyr_1.3.1
[37] tibble_3.2.1 tidyverse_2.0.0
[39] rhdf5_2.46.1 SummarizedExperiment_1.32.0
[41] Biobase_2.62.0 MatrixGenerics_1.14.0
[43] Rcpp_1.0.12 Matrix_1.6-5
[45] GenomicRanges_1.54.1 GenomeInfoDb_1.38.8
[47] IRanges_2.36.0 S4Vectors_0.40.2
[49] BiocGenerics_0.48.1 matrixStats_1.3.0
[51] data.table_1.15.4 stringr_1.5.1
[53] plyr_1.8.9 magrittr_2.0.3
[55] ggplot2_3.4.2 gtable_0.3.4
[57] gtools_3.9.5 gridExtra_2.3
[59] ArchR_1.0.2
loaded via a namespace (and not attached):
[1] spatstat.sparse_3.0-3 bitops_1.0-7
[3] httr_1.4.7 RColorBrewer_1.1-3
[5] repr_1.1.7 tools_4.3.3
[7] sctransform_0.4.1 utf8_1.2.4
[9] R6_2.5.1 lazyeval_0.2.2
[11] uwot_0.2.1 rhdf5filters_1.14.1
[13] withr_3.0.0 sp_2.1-3
[15] progressr_0.14.0 cli_3.6.2
[17] Cairo_1.6-2 spatstat.explore_3.2-7
[19] labeling_0.4.3 spatstat.data_3.0-4
[21] ggridges_0.5.6 pbapply_1.7-2
[23] Rsamtools_2.18.0 pbdZMQ_0.3-11
[25] R.utils_2.12.3 parallelly_1.37.1
[27] WriteXLS_6.5.0 BSgenome_1.70.2
[29] limma_3.58.1 RSQLite_2.3.6
[31] BiocIO_1.12.0 generics_0.1.3
[33] ica_1.0-3 spatstat.random_3.2-3
[35] fansi_1.0.6 R.methodsS3_1.8.2
[37] lifecycle_1.0.4 yaml_2.3.8
[39] edgeR_4.0.16 Rtsne_0.17
[41] blob_1.2.4 promises_1.3.0
[43] dqrng_0.3.2 crayon_1.5.2
[45] miniUI_0.1.1.1 lattice_0.22-6
[47] beachmat_2.18.0 KEGGREST_1.42.0
[49] metapod_1.10.1 pillar_1.9.0
[51] rjson_0.2.21 xgboost_1.7.7.1
[53] future.apply_1.11.2 codetools_0.2-20
[55] leiden_0.4.3.1 glue_1.7.0
[57] vctrs_0.6.5 png_0.1-8
[59] spam_2.10-0 cachem_1.0.8
[61] mime_0.12 survival_3.5-8
[63] statmod_1.5.0 interactiveDisplayBase_1.40.0
[65] fitdistrplus_1.1-11 ROCR_1.0-11
[67] nlme_3.1-164 bit64_4.0.5
[69] filelock_1.0.3 RcppAnnoy_0.0.22
[71] irlba_2.3.5.1 vipor_0.4.7
[73] colorspace_2.1-0 DBI_1.2.2
[75] tidyselect_1.2.1 bit_4.0.5
[77] compiler_4.3.3 curl_5.2.1
[79] BiocNeighbors_1.20.2 BSgenome.Mmusculus.UCSC.mm10_1.4.3
[81] plotly_4.10.4 rtracklayer_1.62.0
[83] lmtest_0.9-40 rappdirs_0.3.3
[85] digest_0.6.35 goftest_1.2-3
[87] spatstat.utils_3.0-4 XVector_0.42.0
[89] htmltools_0.5.8.1 pkgconfig_2.0.3
[91] base64enc_0.1-3 sparseMatrixStats_1.14.0
[93] fastmap_1.1.1 rlang_1.1.3
[95] htmlwidgets_1.6.4 shiny_1.8.1.1
[97] DelayedMatrixStats_1.24.0 farver_2.1.1
[99] zoo_1.8-12 jsonlite_1.8.8
[101] BiocParallel_1.36.0 R.oo_1.26.0
[103] BiocSingular_1.18.0 RCurl_1.98-1.14
[105] GenomeInfoDbData_1.2.11 dotCall64_1.1-1
[107] patchwork_1.2.0 Rhdf5lib_1.24.2
[109] IRkernel_1.3.2 munsell_0.5.1
[111] reticulate_1.36.0 stringi_1.8.3
[113] zlibbioc_1.48.2 MASS_7.3-60.0.1
[115] parallel_4.3.3 listenv_0.9.1
[117] deldir_2.0-4 Biostrings_2.70.3
[119] IRdisplay_1.1 splines_4.3.3
[121] tensor_1.5 hms_1.1.3
[123] locfit_1.5-9.9 uuid_1.2-0
[125] spatstat.geom_3.2-9 reshape2_1.4.4
[127] ScaledMatrix_1.10.0 XML_3.99-0.16.1
[129] BiocVersion_3.18.1 evaluate_0.23
[131] BiocManager_1.30.22 tzdb_0.4.0
[133] tweenr_2.0.3 httpuv_1.6.15
[135] RANN_2.6.1 polyclip_1.10-6
[137] future_1.33.2 scattermore_1.2
[139] rsvd_1.0.5 xtable_1.8-4
[141] restfulr_0.0.15 later_1.3.2
[143] GenomicAlignments_1.38.2 memoise_2.0.1
[145] beeswarm_0.4.0 AnnotationDbi_1.64.1
[147] cluster_2.1.6 timechange_0.3.0
[149] globals_0.16.3
I would appreciate your help.
Thanks!
The text was updated successfully, but these errors were encountered: