Skip to content

Alpha Diversity question #19

Answered by cafferychen777
RachBioHaz asked this question in Q&A
Discussion options

You must be logged in to vote

Hi there,

Thank you for reaching out with your question about using precalculated alpha diversity indices with our R package's alpha diversity analysis functions.

If you choose not to rarefy your data as a normalization step, you can indeed pass precalculated alpha diversity indices to the alpha.obj parameter.

Here is an example of how you can calculate the alpha diversity indices and then pass them to the alpha.obj parameter:

# Calculate alpha diversity indices
alpha.obj <- mStat_calculate_alpha_diversity(
  x = data.obj$feature.tab,
  alpha.name = c("shannon", "simpson", "observed_species", "chao1", "ace", "pielou")
)

# Now, you can pass this `alpha.obj` directly to the alpha diversity…

Replies: 2 comments 9 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by cafferychen777
Comment options

You must be logged in to vote
9 replies
@adahal123
Comment options

@cafferychen777
Comment options

@cafferychen777
Comment options

@adahal123
Comment options

@cafferychen777
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants