Error in using MicrobiomeAnalystR to initiate mbSet object

I’m using the R package of MicrobiomeAnalystR 2.0.
I’ve also used 1.0 version without any errors.
But now the 2.0 version reports errors even at the initiation stage. I used the official sample data file " Mammalian Gut".
The mbSet object is always “1”.
As following:

mbSet<-Init.mbSetObj()
[1] “Init MicrobiomeAnalyst!”
Warning message:
In Cairo::CairoFonts(“Arial:style=Regular”, “Arial:style=Bold”, :
CairoFonts() has no effect on Windows. Please use par(family=“…”) to specify the desired font - see ?par.
mbSet<-SetModuleType(mbSet, “mdp”)
Warning message:
In mbSetObj$module.type ← nm : Coercing LHS to a list
mbSet<-Read16SAbundData(mbSet, “gordian_otu.txt”,“text”,“SILVA”,“F”,“false”)
Error in mbSetObj$module.type : $ operator is invalid for atomic vectors
mbSet<-ReadSampleTable(mbSet, “gordian_sampl.txt”)
Error in mbSetObj$module.type : $ operator is invalid for atomic vectors

I can not further do anything.

R version 4.2.3 (2023-03-15 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 22621)

Matrix products: default

locale:
[1] LC_COLLATE=English_Hong Kong SAR.utf8 LC_CTYPE=English_Hong Kong SAR.utf8
[3] LC_MONETARY=English_Hong Kong SAR.utf8 LC_NUMERIC=C
[5] LC_TIME=English_Hong Kong SAR.utf8

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

other attached packages:
[1] ggplot2_3.4.1 Cairo_1.6-0 MicrobiomeAnalystR_2.0 phyloseq_1.42.0

loaded via a namespace (and not attached):
[1] plyr_1.8.8 igraph_1.4.1 splines_4.2.3
[4] RApiSerialize_0.1.2 BiocParallel_1.32.6 usethis_2.1.6
[7] GenomeInfoDb_1.34.9 digest_0.6.31 foreach_1.5.2
[10] htmltools_0.5.5 viridis_0.6.2 fansi_1.0.4
[13] ggfortify_0.4.16 magrittr_2.0.3 memoise_2.0.1
[16] cluster_2.1.4 limma_3.54.2 remotes_2.4.2
[19] Biostrings_2.66.0 annotate_1.76.0 RcppParallel_5.1.7
[22] matrixStats_0.63.0 metagenomeSeq_1.40.0 prettyunits_1.1.1
[25] colorspace_2.1-0 blob_1.2.4 dplyr_1.1.0
[28] callr_3.7.3 crayon_1.5.2 RCurl_1.98-1.12
[31] jsonlite_1.8.4 genefilter_1.80.3 stringfish_0.15.7
[34] survival_3.5-3 iterators_1.0.14 ape_5.7-1
[37] glue_1.6.2 gtable_0.3.3 ppcor_1.1
[40] zlibbioc_1.44.0 XVector_0.38.0 metacoder_0.3.6
[43] DelayedArray_0.23.2 pkgbuild_1.4.0 Rhdf5lib_1.20.0
[46] shape_1.4.6 BiocGenerics_0.44.0 scales_1.2.1
[49] pheatmap_1.0.12 Tax4Fun_0.3.1 DBI_1.1.3
[52] edgeR_3.40.2 miniUI_0.1.1.1 Rcpp_1.0.10
[55] viridisLite_0.4.1 xtable_1.8-4 taxa_0.4.2
[58] bit_4.0.5 stats4_4.2.3 glmnet_4.1-7
[61] profvis_0.3.7 htmlwidgets_1.6.2 httr_1.4.5
[64] gplots_3.1.3 RColorBrewer_1.1-3 ellipsis_0.3.2
[67] reshape_0.8.9 urlchecker_1.0.1 pkgconfig_2.0.3
[70] XML_3.99-0.14 locfit_1.5-9.7 utf8_1.2.3
[73] tidyselect_1.2.0 rlang_1.1.0 reshape2_1.4.4
[76] later_1.3.0 AnnotationDbi_1.60.2 munsell_0.5.0
[79] tools_4.2.3 cachem_1.0.7 cli_3.6.0
[82] generics_0.1.3 RSQLite_2.3.0 ade4_1.7-22
[85] devtools_2.4.5 biomformat_1.26.0 stringr_1.5.0
[88] fastmap_1.1.1 processx_3.8.0 bit64_4.0.5
[91] fs_1.6.1 caTools_1.18.2 randomForest_4.7-1.1
[94] purrr_1.0.1 KEGGREST_1.38.0 nlme_3.1-162
[97] mime_0.12 compiler_4.2.3 rstudioapi_0.14
[100] curl_5.0.0 png_0.1-8 tibble_3.2.0
[103] geneplotter_1.76.0 stringi_1.7.12 ps_1.7.3
[106] desc_1.4.2 lattice_0.20-45 Matrix_1.5-3
[109] vegan_2.6-4 permute_0.9-7 multtest_2.54.0
[112] vctrs_0.6.0 pillar_1.9.0 lifecycle_1.0.3
[115] rhdf5filters_1.10.1 data.table_1.14.8 bitops_1.0-7
[118] httpuv_1.6.9 GenomicRanges_1.50.2 R6_2.5.1
[121] qs_0.25.5 promises_1.2.0.1 KernSmooth_2.23-20
[124] gridExtra_2.3 IRanges_2.32.0 sessioninfo_1.2.2
[127] codetools_0.2-19 MASS_7.3-58.2 gtools_3.9.4
[130] pkgload_1.3.2 Wrench_1.16.0 rhdf5_2.42.1
[133] SummarizedExperiment_1.28.0 DESeq2_1.38.3 rprojroot_2.0.3
[136] withr_2.5.0 S4Vectors_0.36.2 GenomeInfoDbData_1.2.9
[139] mgcv_1.8-42 parallel_4.2.3 grid_4.2.3
[142] tidyr_1.3.0 MatrixGenerics_1.10.0 Biobase_2.58.0
[145] shiny_1.7.4

I have a similar problem:

mbSet ← Init.mbSetObj()
[1] “Init MicrobiomeAnalyst!”
mbSet ← SetModuleType(mbSet, ‘mdp’)
Warning message:
In mbSetObj$module.type ← nm : Coercing LHS to a list
mbSet ← ReadSampleTable(mbSet, ‘simplified_new_1_1.csv’)
Error in mbSetObj$module.type : $ operator is invalid for atomic vectors

I am running R 4.3.0
Packages:

sessionInfo()
R version 4.3.0 (2023-04-21)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Pop!_OS 22.04 LTS

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

locale:
[1] LC_CTYPE=en_CA.UTF-8 LC_NUMERIC=C LC_TIME=en_CA.UTF-8
[4] LC_COLLATE=en_CA.UTF-8 LC_MONETARY=en_CA.UTF-8 LC_MESSAGES=en_CA.UTF-8
[7] LC_PAPER=en_CA.UTF-8 LC_NAME=C LC_ADDRESS=C
[10] LC_TELEPHONE=C LC_MEASUREMENT=en_CA.UTF-8 LC_IDENTIFICATION=C

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

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

other attached packages:
[1] data.table_1.14.8 ggplot2_3.4.2 Cairo_1.6-0 MicrobiomeAnalystR_2.0
[5] phyloseq_1.44.0

loaded via a namespace (and not attached):
[1] Wrench_1.18.0 DBI_1.1.3 bitops_1.0-7
[4] gridExtra_2.3 permute_0.9-7 metacoder_0.3.6
[7] rlang_1.1.1 magrittr_2.0.3 ade4_1.7-22
[10] matrixStats_0.63.0 compiler_4.3.0 RSQLite_2.3.1
[13] mgcv_1.8-42 reshape2_1.4.4 png_0.1-8
[16] vctrs_0.6.2 stringr_1.5.0 pkgconfig_2.0.3
[19] shape_1.4.6 crayon_1.5.2 fastmap_1.1.1
[22] XVector_0.40.0 caTools_1.18.2 utf8_1.2.3
[25] ggfortify_0.4.16 purrr_1.0.1 bit_4.0.5
[28] glmnet_4.1-7 randomForest_4.7-1.1 zlibbioc_1.46.0
[31] cachem_1.0.8 GenomeInfoDb_1.36.0 jsonlite_1.8.4
[34] biomformat_1.28.0 blob_1.2.4 reshape_0.8.9
[37] rhdf5filters_1.12.1 DelayedArray_0.26.3 Rhdf5lib_1.22.0
[40] BiocParallel_1.34.2 cluster_2.1.4 parallel_4.3.0
[43] R6_2.5.1 stringi_1.7.12 RColorBrewer_1.1-3
[46] limma_3.56.1 genefilter_1.82.1 GenomicRanges_1.52.0
[49] Rcpp_1.0.10 SummarizedExperiment_1.30.1 iterators_1.0.14
[52] taxa_0.4.2 IRanges_2.34.0 Matrix_1.5-4.1
[55] splines_4.3.0 igraph_1.4.3 tidyselect_1.2.0
[58] viridis_0.6.3 rstudioapi_0.14 vegan_2.6-4
[61] gplots_3.1.3 codetools_0.2-19 lattice_0.21-8
[64] tibble_3.2.1 plyr_1.8.8 withr_2.5.0
[67] Biobase_2.60.0 KEGGREST_1.40.0 survival_3.5-5
[70] Biostrings_2.68.1 pillar_1.9.0 MatrixGenerics_1.12.0
[73] KernSmooth_2.23-21 foreach_1.5.2 stats4_4.3.0
[76] generics_0.1.3 RCurl_1.98-1.12 S4Vectors_0.38.1
[79] munsell_0.5.0 scales_1.2.1 gtools_3.9.4
[82] xtable_1.8-4 glue_1.6.2 ppcor_1.1
[85] pheatmap_1.0.12 tools_4.3.0 annotate_1.78.0
[88] locfit_1.5-9.7 XML_3.99-0.14 rhdf5_2.44.0
[91] grid_4.3.0 tidyr_1.3.0 ape_5.7-1
[94] AnnotationDbi_1.62.1 edgeR_3.42.2 colorspace_2.1-0
[97] nlme_3.1-162 GenomeInfoDbData_1.2.10 Tax4Fun_0.3.1
[100] cli_3.6.1 metagenomeSeq_1.42.0 fansi_1.0.4
[103] viridisLite_0.4.2 S4Arrays_1.0.4 dplyr_1.1.2
[106] gtable_0.3.3 DESeq2_1.40.1 digest_0.6.31
[109] BiocGenerics_0.46.0 multtest_2.56.0 memoise_2.0.1
[112] lifecycle_1.0.3 httr_1.4.6 bit64_4.0.5
[115] MASS_7.3-60

I have this error message when loading the Microbiomeanalyst package

library(MicrobiomeAnalystR)
Loading required package: phyloseq
There were 32 warnings (use warnings() to see them)
warnings()
Warning messages:
1: replacing previous import ‘MASS::area’ by ‘genefilter::area’ when loading ‘MicrobiomeAnalystR’
2: replacing previous import ‘ape::ring’ by ‘igraph::ring’ when loading ‘MicrobiomeAnalystR’
3: replacing previous import ‘ape::edges’ by ‘igraph::edges’ when loading ‘MicrobiomeAnalystR’
4: replacing previous import ‘ape::mst’ by ‘igraph::mst’ when loading ‘MicrobiomeAnalystR’
5: replacing previous import ‘ape::degree’ by ‘igraph::degree’ when loading ‘MicrobiomeAnalystR’
6: replacing previous import ‘ape::complement’ by ‘metacoder::complement’ when loading ‘MicrobiomeAnalystR’
7: replacing previous import ‘igraph::hierarchy’ by ‘metacoder::hierarchy’ when loading ‘MicrobiomeAnalystR’
8: replacing previous import ‘ggplot2::map_data’ by ‘metacoder::map_data’ when loading ‘MicrobiomeAnalystR’
9: replacing previous import ‘edgeR::calcNormFactors’ by ‘metagenomeSeq::calcNormFactors’ when loading ‘MicrobiomeAnalystR’
10: replacing previous import ‘metacoder::filter_taxa’ by ‘phyloseq::filter_taxa’ when loading ‘MicrobiomeAnalystR’
11: replacing previous import ‘ggplot2::margin’ by ‘randomForest::margin’ when loading ‘MicrobiomeAnalystR’
12: replacing previous import ‘gridExtra::combine’ by ‘randomForest::combine’ when loading ‘MicrobiomeAnalystR’
13: replacing previous import ‘data.table::melt’ by ‘reshape::melt’ when loading ‘MicrobiomeAnalystR’
14: replacing previous import ‘metacoder::is_root’ by ‘taxa::is_root’ when loading ‘MicrobiomeAnalystR’
15: replacing previous import ‘metacoder::is_stem’ by ‘taxa::is_stem’ when loading ‘MicrobiomeAnalystR’
16: replacing previous import ‘igraph::as_data_frame’ by ‘taxa::as_data_frame’ when loading ‘MicrobiomeAnalystR’
17: replacing previous import ‘metacoder::n_subtaxa’ by ‘taxa::n_subtaxa’ when loading ‘MicrobiomeAnalystR’
18: replacing previous import ‘metacoder::is_internode’ by ‘taxa::is_internode’ when loading ‘MicrobiomeAnalystR’
19: replacing previous import ‘metacoder::taxon’ by ‘taxa::taxon’ when loading ‘MicrobiomeAnalystR’
20: replacing previous import ‘metacoder::internodes’ by ‘taxa::internodes’ when loading ‘MicrobiomeAnalystR’
21: replacing previous import ‘metacoder::taxon_id’ by ‘taxa::taxon_id’ when loading ‘MicrobiomeAnalystR’
22: replacing previous import ‘metacoder::subtaxa’ by ‘taxa::subtaxa’ when loading ‘MicrobiomeAnalystR’
23: replacing previous import ‘metacoder::n_supertaxa’ by ‘taxa::n_supertaxa’ when loading ‘MicrobiomeAnalystR’
24: replacing previous import ‘metacoder::taxon_rank’ by ‘taxa::taxon_rank’ when loading ‘MicrobiomeAnalystR’
25: replacing previous import ‘metacoder::stems’ by ‘taxa::stems’ when loading ‘MicrobiomeAnalystR’
26: replacing previous import ‘metacoder::leaves’ by ‘taxa::leaves’ when loading ‘MicrobiomeAnalystR’
27: replacing previous import ‘metacoder::n_leaves’ by ‘taxa::n_leaves’ when loading ‘MicrobiomeAnalystR’
28: replacing previous import ‘metacoder::roots’ by ‘taxa::roots’ when loading ‘MicrobiomeAnalystR’
29: replacing previous import ‘metacoder::taxonomy’ by ‘taxa::taxonomy’ when loading ‘MicrobiomeAnalystR’
30: replacing previous import ‘metacoder::supertaxa’ by ‘taxa::supertaxa’ when loading ‘MicrobiomeAnalystR’
31: replacing previous import ‘metacoder::is_leaf’ by ‘taxa::is_leaf’ when loading ‘MicrobiomeAnalystR’
32: replacing previous import ‘igraph::diversity’ by ‘vegan::diversity’ when loading ‘MicrobiomeAnalystR’

I also had problems installing the MicrobiomeAnalyst package. I had to download Cairo, qiime, biom, and Tax4Fun packages directly from CRAN and installed them manually.

I tried changing the name of the variable “mbSet” to just “mb” and it seemed to have worked. Should the variable name be a problem?

How could this be possible?! I’ve tried and it worked. It must be a bug.

Hi all,
We have fixed this issue. You can re-install MicrobiomeAnalystR and it should work. Please let know in case you have more questions.
Hope this helps!

This topic was automatically closed after 8 days. New replies are no longer allowed.