immunarch icon indicating copy to clipboard operation
immunarch copied to clipboard

calculating Morisita index isn't working

Open AnnaVyborova opened this issue 4 years ago • 1 comments
trafficstars

Hi! I am facing an issue while trying to calculate repertoire overlap, Morisita index in particular. Not sure whether this is truly a typo/a bug and not myself doing something wrong.

Here it is, using the example repseq dataset from immunarch:

immunarch::repOverlap(immdata$data, 'morisita', 'nuc', .verbose = T) |==
| 1%Error in tbl_dt(.x) : could not find function "tbl_dt"

sessionInfo() R version 3.5.3 (2019-03-11) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows >= 8 x64 (build 9200)

Matrix products: default

locale: [1] LC_COLLATE=English_United Kingdom.1252 LC_CTYPE=English_United Kingdom.1252 LC_MONETARY=English_United Kingdom.1252 [4] LC_NUMERIC=C LC_TIME=English_United Kingdom.1252

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

other attached packages: [1] dtplyr_1.1.0 dplyr_1.0.7 tibble_3.1.3

loaded via a namespace (and not attached): [1] modeltools_0.2-22 tidyselect_1.1.1 purrr_0.3.2 kernlab_0.9-27 reshape2_1.4.3 lattice_0.20-38
[7] colorspace_1.4-1 vctrs_0.3.8 generics_0.0.2 htmltools_0.5.1.1 stats4_3.5.3 yaml_2.2.0
[13] utf8_1.1.4 rlang_0.4.11 later_1.2.0 pillar_1.6.1 glue_1.4.2 DBI_1.0.0
[19] prabclus_2.2-7 treemap_2.4-2 RColorBrewer_1.1-2 fpc_2.1-11.1 factoextra_1.0.5 lifecycle_1.0.0
[25] plyr_1.8.4 robustbase_0.93-4 stringr_1.4.0 munsell_0.5.0 gtable_0.3.0 mvtnorm_1.0-10
[31] fastmap_1.1.0 httpuv_1.6.1 flexmix_2.3-15 class_7.3-15 fansi_0.4.0 DEoptimR_1.0-8
[37] trimcluster_0.1-2.1 Rcpp_1.0.1 xtable_1.8-3 readr_1.3.1 promises_1.2.0.1 scales_1.0.0
[43] diptest_0.75-7 mime_0.6 digest_0.6.27 ggplot2_3.1.0 hms_0.4.2 stringi_1.4.3
[49] shiny_1.6.0 ggrepel_0.8.0 grid_3.5.3 tools_3.5.3 magrittr_1.5 lazyeval_0.2.2
[55] cluster_2.0.7-1 crayon_1.3.4 pkgconfig_2.0.2 gridBase_0.4-7 MASS_7.3-51.1 ellipsis_0.3.2
[61] data.table_1.14.0 assertthat_0.2.1 rstudioapi_0.10 immunarch_0.3.0 R6_2.4.0 mclust_5.4.3
[67] igraph_1.2.4 nnet_7.3-12 compiler_3.5.3

Can it be a typo somewhere in the function? Or am I missing a package?

Thank you for help!

AnnaVyborova avatar Jul 26 '21 15:07 AnnaVyborova

Hi @AnnaVyborova, you need to upgrade to a newer immunarch release to solve it :) most recommended is, generally, the latest (or even the developer version).

fabio-t avatar Aug 03 '21 14:08 fabio-t