ChiLiubio / microeco

An R package for data analysis in microbial community ecology
GNU General Public License v3.0
194 stars 56 forks source link

How can I do venn/β-diversity analysis at higher taxonomic level #403

Open jieyin2023 opened 3 weeks ago

jieyin2023 commented 3 weeks ago

Hi Chi, Thank you for providing such a simple and user-friendly R package. I am a novice in microbiome data analysis and I hope to conduct beta diversity and Venn analyses for other higher taxonomic level, but I have not been successful. I noticed that the help document states that this is feasible. How should I proceed?

 Looking forward to your reply. This is very important. Thank you
ChiLiubio commented 3 weeks ago

Hi. Please refer to the 3.1.4 part of the online tutorial (https://chiliubio.github.io/microeco_tutorial/basic-class.html#microtable-class) to generate new microtable object at higher taxonomic level. Then you can do other analysis like those at ASV/OTU level. Here is an example.

library(microeco)
data(dataset)
mt_genus <- dataset$merge_taxa("Genus")
mt_genus