jokergoo / ComplexHeatmap

Make Complex Heatmaps
https://jokergoo.github.io/ComplexHeatmap-reference/book/
Other
1.29k stars 225 forks source link

Cannot find concatenated vertically function #965

Open zhuhenan opened 2 years ago

zhuhenan commented 2 years ago

I tried to concatenate two heatmaps vertically, but I received this error. I have attached my session info.

ht_list = ht1 %v% ht2 %v% ht3 Error in UseMethod("get.vertex.attribute") : no applicable method for 'get.vertex.attribute' applied to an object of class "c('Heatmap', 'AdditiveUnit')"

sessionInfo() R version 4.2.1 (2022-06-23) Platform: x86_64-pc-linux-gnu (64-bit) Running under: Ubuntu 20.04.4 LTS

Matrix products: default BLAS: /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.9.0 LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.9.0

locale: [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C 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 LC_PAPER=en_US.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C

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

other attached packages: [1] devtools_2.4.4 usethis_2.1.6 metafor_3.4-0 metadat_1.2-0
[5] Matrix_1.4-1 meta_5.5-0 forestplot_2.0.1 checkmate_2.1.0
[9] magrittr_2.0.3 cowplot_1.1.1 gridExtra_2.3 network_1.17.2
[13] circlize_0.4.15 ComplexHeatmap_2.13.1 ggbiplot_0.55 plyr_1.8.7
[17] ggforce_0.3.3 mixOmics_6.20.0 lattice_0.20-45 MASS_7.3-58.1
[21] WGCNA_1.71 fastcluster_1.2.3 dynamicTreeCut_1.63-1 ggrepel_0.9.1
[25] scales_1.2.0 dplyr_1.0.9 psych_2.2.5 survtype_1.12.0
[29] clustvarsel_2.3.4 mclust_5.4.10 survminer_0.4.9 ggpubr_0.4.0
[33] ggplot2_3.3.6 survival_3.3-1 pheatmap_1.0.12 SummarizedExperiment_1.26.1 [37] Biobase_2.56.0 GenomicRanges_1.48.0 GenomeInfoDb_1.32.2 IRanges_2.30.0
[41] S4Vectors_0.34.0 BiocGenerics_0.42.0 MatrixGenerics_1.8.1 matrixStats_0.62.0
[45] rstudioapi_0.13 readxl_1.4.0 tidyr_1.2.0 reshape2_1.4.4
[49] openxlsx_4.2.5 readr_2.1.2 biomaRt_2.52.0 edgeR_3.38.4
[53] limma_3.52.2 data.table_1.14.2 stringr_1.4.0

loaded via a namespace (and not attached): [1] rappdirs_0.3.3 coda_0.19-4 ragg_1.2.2 bit64_4.0.5 knitr_1.39
[6] DelayedArray_0.22.0 rpart_4.1.16 inline_0.3.19 KEGGREST_1.36.3 RCurl_1.98-1.7
[11] doParallel_1.0.17 generics_0.1.3 preprocessCore_1.54.0 callr_3.7.1 RSQLite_2.2.14
[16] bit_4.0.4 tzdb_0.3.0 xml2_1.3.3 httpuv_1.6.5 assertthat_0.2.1
[21] xfun_0.31 hms_1.1.1 promises_1.2.0.1 DEoptimR_1.0-11 fansi_1.0.3
[26] progress_1.2.2 dbplyr_2.2.1 km.ci_0.5-6 igraph_1.3.2 DBI_1.1.3
[31] htmlwidgets_1.5.4 rARPACK_0.11-0 purrr_0.3.4 ellipsis_0.3.2 RSpectra_0.16-1
[36] backports_1.4.1 deldir_1.0-6 vctrs_0.4.1 remotes_2.4.2 Cairo_1.6-0
[41] abind_1.4-5 cachem_1.0.6 withr_2.5.0 robustbase_0.95-0 prettyunits_1.1.1
[46] mnormt_2.1.0 cluster_2.1.3 crayon_1.5.1 ellipse_0.4.3 pkgconfig_2.0.3
[51] labeling_0.4.2 tweenr_1.0.2 pkgload_1.3.0 nlme_3.1-158 nnet_7.3-17
[56] rlang_1.0.4 lifecycle_1.0.1 miniUI_0.1.1.1 filelock_1.0.2 BiocFileCache_2.4.0
[61] mathjaxr_1.6-0 rprojroot_2.0.3 cellranger_1.1.0 polyclip_1.10-0 KMsurv_0.1-5
[66] carData_3.0-5 BMA_3.18.17 boot_1.3-28 zoo_1.8-10 base64enc_0.1-3
[71] GlobalOptions_0.1.2 processx_3.7.0 png_0.1-7 rjson_0.2.21 bitops_1.0-7
[76] Biostrings_2.64.0 blob_1.2.3 shape_1.4.6 jpeg_0.1-9 rstatix_0.7.0
[81] ggsignif_0.6.3 leaps_3.1 memoise_2.0.1 zlibbioc_1.42.0 compiler_4.2.1
[86] RColorBrewer_1.1-3 clue_0.3-61 lme4_1.1-30 rrcov_1.7-0 cli_3.3.0
[91] urlchecker_1.0.1 XVector_0.36.0 ps_1.7.1 htmlTable_2.4.0 Formula_1.2-4
[96] tidyselect_1.1.2 stringi_1.7.6 textshaping_0.3.6 locfit_1.5-9.6 latticeExtra_0.6-30
[101] survMisc_0.5.6 tools_4.2.1 parallel_4.2.1 foreach_1.5.2 foreign_0.8-82
[106] farver_2.1.1 digest_0.6.29 BiocManager_1.30.18 shiny_1.7.1 Rcpp_1.0.9
[111] car_3.1-0 broom_1.0.0 later_1.3.0 httr_1.4.3 AnnotationDbi_1.58.0
[116] colorspace_2.0-3 XML_3.99-0.10 fs_1.5.2 splines_4.2.1 sessioninfo_1.2.2
[121] systemfonts_1.0.4 xtable_1.8-4 nloptr_2.0.3 corpcor_1.6.10 R6_2.5.1
[126] profvis_0.3.7 Hmisc_4.7-0 pillar_1.8.0 htmltools_0.5.2 mime_0.12
[131] glue_1.6.2 fastmap_1.1.0 minqa_1.2.4 BiocParallel_1.30.3 codetools_0.2-18
[136] pkgbuild_1.3.1 pcaPP_2.0-2 mvtnorm_1.1-3 utf8_1.2.2 tibble_3.1.7
[141] curl_4.3.2 zip_2.2.0 GO.db_3.15.0 interp_1.1-3 CompQuadForm_1.4.3
[146] statnet.common_4.6.0 munsell_0.5.0 GetoptLong_1.0.5 GenomeInfoDbData_1.2.8 iterators_1.0.14
[151] impute_1.66.0 gtable_0.3.0

jokergoo commented 2 years ago

I don' know. get.vertex.attribute is from igraph package, but igraph has no function %v%.

Can you provide the output from traceback()?