Skip to content

enrichWP mac memory issue #762

Open
Open
@graphanalytics

Description

@graphanalytics
> library(clusterProfiler)
> data(geneList, package="DOSE")
> gene <- names(geneList)[abs(geneList) > 2]
> enrichWP(gene, organism = "Homo sapiens")
Error: vector memory limit of 64.0 Gb reached, see mem.maxVSize()

The above works perfectly in a linux machine.
Its the enrichWP that is having this issue, the enrichKEGG works without any issue in the same machine, with the same gene list.

Sometime enrichWP, for the same above command, gives errors like below;

Error in simplifyPieces(pieces, n, fill == "left") : 
  'names' attribute [4537016448] must be the same length as the vector [3]

Below is the sessioninfo;

> sessionInfo()

R version 4.4.3 (2025-02-28)
Platform: aarch64-apple-darwin20
Running under: macOS Ventura 13.7.4

Matrix products: default
BLAS: /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/lib/libRblas.0.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/lib/libRlapack.dylib; LAPACK version 3.12.0

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

time zone: America/New_York
tzcode source: internal

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

other attached packages:
[1] clusterProfiler_4.14.6

loaded via a namespace (and not attached):
[1] tidyselect_1.2.1 dplyr_1.1.4 farver_2.1.2
[4] blob_1.2.4 R.utils_2.13.0 Biostrings_2.74.1
[7] lazyeval_0.2.2 fastmap_1.2.0 digest_0.6.37
[10] lifecycle_1.0.4 KEGGREST_1.46.0 tidytree_0.4.6
[13] RSQLite_2.3.9 magrittr_2.0.3 compiler_4.4.3
[16] rlang_1.1.5 tools_4.4.3 igraph_2.1.4
[19] data.table_1.17.0 ggtangle_0.0.6 bit_4.6.0
[22] gson_0.1.0 plyr_1.8.9 RColorBrewer_1.1-3
[25] aplot_0.2.5 BiocParallel_1.40.0 withr_3.0.2
[28] purrr_1.0.4 BiocGenerics_0.52.0 R.oo_1.27.0
[31] grid_4.4.3 stats4_4.4.3 GOSemSim_2.32.0
[34] enrichplot_1.26.6 colorspace_2.1-1 GO.db_3.20.0
[37] ggplot2_3.5.1 scales_1.3.0 cli_3.6.4
[40] crayon_1.5.3 treeio_1.30.0 generics_0.1.3
[43] ggtree_3.14.0 httr_1.4.7 reshape2_1.4.4
[46] DBI_1.2.3 qvalue_2.38.0 ape_5.8-1
[49] cachem_1.1.0 DOSE_4.0.0 stringr_1.5.1
[52] zlibbioc_1.52.0 splines_4.4.3 parallel_4.4.3
[55] ggplotify_0.1.2 AnnotationDbi_1.68.0 XVector_0.46.0
[58] yulab.utils_0.2.0 vctrs_0.6.5 Matrix_1.7-3
[61] jsonlite_1.9.1 gridGraphics_0.5-1 IRanges_2.40.1
[64] patchwork_1.3.0 S4Vectors_0.44.0 bit64_4.6.0-1
[67] ggrepel_0.9.6 tidyr_1.3.1 glue_1.8.0
[70] codetools_0.2-20 cowplot_1.1.3 stringi_1.8.4
[73] gtable_0.3.6 GenomeInfoDb_1.42.3 UCSC.utils_1.2.0
[76] munsell_0.5.1 tibble_3.2.1 pillar_1.10.1
[79] fgsea_1.32.2 GenomeInfoDbData_1.2.13 R6_2.6.1
[82] lattice_0.22-6 Biobase_2.66.0 R.methodsS3_1.8.2
[85] png_0.1-8 memoise_2.0.1 ggfun_0.1.8
[88] Rcpp_1.0.14 fastmatch_1.1-6 nlme_3.1-167
[91] fs_1.6.5 pkgconfig_2.0.3


Below is the sessioninfo from my perfectly running enrichWP linux run;

> sessionInfo()

R version 4.4.3 (2025-02-28)
Platform: x86_64-pc-linux-gnu
Running under: Rocky Linux 8.7 (Green Obsidian)

Matrix products: default
BLAS/LAPACK: /usr/local/intel/2022.1.2.146/mkl/2022.0.2/lib/intel64/libmkl_rt.so.2; LAPACK version 3.9.0

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

time zone: America/New_York
tzcode source: system (glibc)

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

other attached packages:
[1] clusterProfiler_4.14.6

loaded via a namespace (and not attached):
[1] tidyselect_1.2.1 dplyr_1.1.4 farver_2.1.2
[4] blob_1.2.4 R.utils_2.13.0 Biostrings_2.74.1
[7] lazyeval_0.2.2 fastmap_1.2.0 digest_0.6.37
[10] lifecycle_1.0.4 KEGGREST_1.46.0 tidytree_0.4.6
[13] RSQLite_2.3.9 magrittr_2.0.3 compiler_4.4.3
[16] rlang_1.1.5 tools_4.4.3 igraph_2.0.3
[19] data.table_1.17.0 ggtangle_0.0.6 bit_4.5.0.1
[22] gson_0.1.0 plyr_1.8.9 RColorBrewer_1.1-3
[25] aplot_0.2.5 BiocParallel_1.40.0 withr_3.0.2
[28] purrr_1.0.4 BiocGenerics_0.52.0 R.oo_1.27.0
[31] grid_4.4.3 stats4_4.4.3 GOSemSim_2.32.0
[34] enrichplot_1.26.6 colorspace_2.1-1 GO.db_3.20.0
[37] ggplot2_3.5.1 scales_1.3.0 cli_3.6.4
[40] crayon_1.5.3 treeio_1.30.0 generics_0.1.3
[43] ggtree_3.14.0 httr_1.4.7 reshape2_1.4.4
[46] DBI_1.2.3 qvalue_2.38.0 ape_5.8-1
[49] cachem_1.1.0 DOSE_4.0.0 stringr_1.5.1
[52] zlibbioc_1.52.0 splines_4.4.3 parallel_4.4.3
[55] ggplotify_0.1.2 AnnotationDbi_1.68.0 XVector_0.46.0
[58] yulab.utils_0.2.0 vctrs_0.6.5 Matrix_1.7-1
[61] jsonlite_1.9.1 gridGraphics_0.5-1 IRanges_2.40.1
[64] patchwork_1.3.0 S4Vectors_0.44.0 bit64_4.6.0-1
[67] ggrepel_0.9.6 tidyr_1.3.1 glue_1.8.0
[70] codetools_0.2-20 cowplot_1.1.3 stringi_1.8.4
[73] gtable_0.3.6 GenomeInfoDb_1.42.3 UCSC.utils_1.2.0
[76] munsell_0.5.1 tibble_3.2.1 pillar_1.10.1
[79] fgsea_1.32.2 GenomeInfoDbData_1.2.13 R6_2.6.1
[82] lattice_0.22-6 Biobase_2.66.0 R.methodsS3_1.8.2
[85] png_0.1-8 memoise_2.0.1 ggfun_0.1.8
[88] Rcpp_1.0.14 fastmatch_1.1-6 nlme_3.1-166
[91] fs_1.6.5 pkgconfig_2.0.3


enrichWP worked perfectly in my mac until a couple of days ago.
I tried restarting R, restarting the machine, increasing the memory, but in vain.

Any thoughts/comments would be much appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions