Why correlation test of microeco showed different results from the same test using package microbiome? #194
-
Hi, I would like to ask how the command trans_env$cal_cor exactly does for the correlation test between the abundance data and environmental data. I tried both commands: and I would like to ask why the microeco package gave different results and what the command actually does. Thank you very much. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
-
Hi.
The padj in m1 adjust all the raw p values. But the default method in t1 adjust each taxon individually.
Then you can find newpadj in Best, |
Beta Was this translation helpful? Give feedback.
-
Hi, Thank you for your fast answer. I would like to clarify a bit if my understanding is correct. In the example above we have 9 alpha indices and 8 environmental variables. So we have 72 pairs of correlation. So in microbiome package, the p-value was adjusted in a way: In microeco package: each p-value was adjusted with n = 9 (because we have 9 indices) for each environmental variable. Or was it adjusted with n = 8 (because we have 8 env. variables) for each alpha index? Thank you again. |
Beta Was this translation helpful? Give feedback.
-
Hi, I would like to ask what cal_cor does with the taxa abundance table before doing the correlation test. For example, my input data is untransformed OTU data. At least I know that the command microbiome::associate does not do any transformation or filtering for the OTU table before the correlation test. Could you please explain what the microeco::cal_cor actually does to the OTU table (relative abundance transformation? merge by Genus level? filtering taxa?)? Actually, I would like to do a correlation test for relative abundance at Genus level to an environmental matrix, but I don't know how to do it properly with microeco. Thank you very much. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
Hi. correlation test for relative abundance at Genus level can be done like this easily.
The
cal_cor
function has no matter with the abundance transformation. It just invoke the Genus table in dataset$taxa_abund list. Actually, all the analysis referred to the abundance comes from the dataset$taxa_abund.If you do not want to use relative abundance, you can recalculate the abundance with the parameter
rel
. It means the results in each table of dataset$taxa_abund is only the sum …