Skip to content
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

GMPR transformation function is missing #20

Open
thecorz opened this issue Dec 4, 2023 · 1 comment
Open

GMPR transformation function is missing #20

thecorz opened this issue Dec 4, 2023 · 1 comment
Labels
bug Something isn't working Not a Bug - Solution Provided This behavior is intentional as part of our design. However, we've provided a solution to accommodat

Comments

@thecorz
Copy link

thecorz commented Dec 4, 2023

Describe the Bug
When I try to normalise the data using the GMPR method, I get an error that says that GMPR function is missing

Reproducible Example
Sorry, to reproduce the data is too complicated. But given that MicrobiomeData is a MicrobiomeStat object...

MicrobiomeData.gmpr <- mStat_normalize_data(MicrobiomeData, "GMPR")

Expected Behavior
Outputs transformed values

Actual Behavior
Outputs and error:

Error in GMPR(otu_tab) : could not find function "GMPR"

Screenshots
N/A

Environment Information:

  • Operating System: Windows 11
  • R Version: 4.3.2
  • Package Version: 1.13

Additional Context
N/A

@thecorz thecorz added the bug Something isn't working label Dec 4, 2023
@cafferychen777
Copy link
Owner

Dear @thecorz,

Thank you for reaching out and describing the issue you're facing with our package. From the error message you've provided, it seems like the GMPR function is not being recognized in your current R session. This typically occurs when the required package for the GMPR function is not loaded.

To resolve this issue, you should load the GUniFrac package before attempting to normalize your data with the GMPR method. You can do this by using the library() function in R. Please insert the following line of code at the beginning of your script or before you call the mStat_normalize_data() function:

library(GUniFrac)

This will load all the necessary functions from the GUniFrac package, including the GMPR function, into your R session. After executing this line, you should be able to normalize your MicrobiomeData using the GMPR method without encountering the error.

Please let me know if this solution works for you or if you encounter any further issues.

Best regards,

Chen YANG

@cafferychen777 cafferychen777 added the Bug Fixed This bug has been addressed and resolved in the latest update. label Dec 5, 2023
@cafferychen777 cafferychen777 added Not a Bug - Solution Provided This behavior is intentional as part of our design. However, we've provided a solution to accommodat and removed Bug Fixed This bug has been addressed and resolved in the latest update. labels Jan 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Not a Bug - Solution Provided This behavior is intentional as part of our design. However, we've provided a solution to accommodat
Projects
None yet
Development

No branches or pull requests

2 participants