MicrobiomeStat icon indicating copy to clipboard operation
MicrobiomeStat copied to clipboard

Could not find function "mStat_convert_phyloseq_to_data_obj"

Open QGaelle opened this issue 4 months ago • 5 comments

Hello,

I am excited to use the MicrobioStat package in order to test for differences in alpha diversity accross timepoints. I have been working with phyloseq object so far and I would like to convert my Phyloseq object to a MicrobiomeStat data object.

I have been following the installation guide but somehow I keep getting the following error: Error in mStat_convert_phyloseq_to_data_obj(peerj32.phy) : could not find function "mStat_convert_phyloseq_to_data_obj"

I am working on Mac and I am using R version 4.3.1 (2023-06-16)

Here is the script I used:

#Install MicroBiomStat install.packages("MicrobiomeStat") #For complete set of functionalities install.packages("devtools") devtools::install_github("cafferychen777/MicrobiomeStat")

#List of packages to install packages_to_install <- c( "rlang", ....) # I have copied the list of packages as indicated in the installation guide #Installing packages install.packages(packages_to_install)

#Required package library(microbiome) library(MicrobiomeStat)

#Load the dataset data(peerj32) peerj32.phy <- peerj32$phyloseq

data.obj <- mStat_convert_phyloseq_to_data_obj(peerj32.phy) Error in mStat_convert_phyloseq_to_data_obj(peerj32.phy) : could not find function "mStat_convert_phyloseq_to_data_obj"

I am very sorry for the trivial question and for struggling on the very first step of using MicrobioStat. Hope you can help. Gaëlle

QGaelle avatar Feb 27 '24 10:02 QGaelle