-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could not find function "mStat_convert_phyloseq_to_data_obj" #34
Comments
Dear @QGaelle, Thank you for your interest in using MicrobiomeStat. I apologize for the error you encountered with the mStat_convert_phyloseq_to_data_obj() function. It seems there may be an issue importing or finding that function. As a first step, please try running If that does not work, please try re-installing MicrobiomeStat using the latest version from GitHub with:
Please let me know if the issue persists after trying those steps. I'm happy to help troubleshoot further so you can start leveraging MicrobiomeStat for your analysis. Apologies again for the inconvenience. Best regards, |
Dear Chen Yang, |
Hello @cafferychen777 I installed the latest version from I followed what you suggested above but still gave me the same error any suggestions? |
Dear @J5886, Thank you for reaching out and I apologize for the inconvenience you are experiencing. It seems that the installation of the latest version of MicrobiomeStat may not have been successful. The version you mentioned, 1.1, is the one available on CRAN, while the GitHub version should be 1.1.3. Could you please check if there were any error messages during the installation process after running Additionally, to reduce the likelihood of installation issues, you might want to ensure that all dependencies are installed before attempting to install MicrobiomeStat from GitHub. You can do this by running the following code to install the necessary packages: # List of packages to install
packages_to_install <- c(
"rlang",
"tibble",
"ggplot2",
"matrixStats",
"lmerTest",
"foreach",
"modeest",
"dplyr",
"pheatmap",
"tidyr",
"ggh4x",
"GUniFrac",
"stringr",
"rmarkdown",
"knitr",
"pander",
"tinytex",
"vegan",
"scales",
"ape", # Used only in mStat_convert_phyloseq_to_data_obj and mStat_import_mothur_as_data_obj
"ggrepel", # Used only in the linda.plot function
"parallel", # Utilized only when setting parallel in linda
"ggprism", # Active only when theme.choice is set to “prism”
"aplot", # Operates exclusively in generate_beta_ordination_single
"philentropy", # Used when dist.name is set to "JS"
"forcats", # Comes into play only within barplot and areaplot
"yaml", # Employed solely in mStat_import_qiime2_as_data_obj
"biomformat", # Used in mStat_import_biom_as_data_obj
"Biostrings" # Required for mStat_import_qiime2_as_data_obj and mStat_import_dada2_as_data_obj
)
# Installing packages
install.packages(packages_to_install) After installing these packages, please try running I hope this helps, and please let me know if you encounter any further issues. Best regards, |
Hi @cafferychen777 I removed the old version from the R packages folder and then used the It worked properly. Regards! |
Hi @cafferychen777 again Fit linear mixed effects models ... the code used was any suggestions? thank you |
Hi @J5886, Thank you for sharing your issue. Based on the information you provided and the previous solution, I suggest trying the following steps:
install.packages("Matrix")
install.packages("lme4")
install.packages("MicrobiomeStat")
install.packages("Matrix", version = "1.5-3") Then restart your R session and try your code again. I hope these suggestions help you resolve the issue. If the problem continues, further investigation and support may be needed. Best, |
thanks a lot for your reply Regards! |
Dear @J5886, Thank you for your continued efforts in troubleshooting this issue. I apologize that the problem persists despite following the suggested steps. Based on the information you've provided, it seems that the main cause of the error is likely related to the Matrix package. In theory, the steps we've outlined should resolve this issue. However, to better assist you, I wonder if you'd be willing to share your dataset with me? This would allow me to replicate the problem and test potential solutions directly. If you're comfortable sharing your data, please send it to me, and I'll run some tests to identify the root cause of the error. Rest assured, I'll handle your data with the utmost confidentiality. In the meantime, could you also confirm that you've updated the Matrix package to the latest version? Sometimes, ensuring all dependencies are up-to-date can resolve unexpected conflicts. Thank you for your patience as we work to resolve this issue. I'm committed to helping you get MicrobiomeStat working smoothly for your analysis. Best regards, |
Dear @cafferychen777 I appreciate your help regards! |
Hi @cafferychen777, the R was updated to the latest version 4.4.1, and the issue with the matrix was solved. I'm creating the obj after converting from phyloseq object and it works properly with me. But, when trying to create the object with this issue was faced in old and new R versions Thank you |
Dear J5886, Thank you for the update on your progress with MicrobiomeStat. I'm glad to hear that updating to R 4.4.1 resolved the Matrix package issue. Regarding the error you're encountering with the To resolve this, please try the following steps:
If you're still experiencing issues after these steps, please let me know, and I'll be happy to help you troubleshoot further. Best regards, |
I'm grateful, @cafferychen777 for your help and response, that solved the error, but another one was raised I appreciate your patience and help once again Kind regards! |
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:
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
The text was updated successfully, but these errors were encountered: