ChiLiubio / microeco

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

beta diversity for a single specific taxa #210

Closed guianrey closed 1 year ago

guianrey commented 1 year ago

The shrimp microbiome is governed by Vibrionaceae, a family with important probiotic and disease-causing genera. After performing a comparison of the relative abundances of two conditions (healthy and diseased), both have similar relative abundance, but I don't know if the diversity of Vibrionaceae in healthy is the same as the diseased group. I could do a PCoA to analyze both diversities, but I will have the noise of the other families. My question is, Is it possible to do a PCoA considering only one particular family? How can I know if the same or different ASVs of the Vibrionaceae family are being shared between healthy and diseased shrimp?

ChiLiubio commented 1 year ago

Hi. What you should first do is to just extract the data of Vibrionaceae like I show somewhere in the tutorial. 图片 Please use Family instead of Phylum in the example and use f__Vibrionaceae instead of p__Proteobacteria. Then you can use d1 to do anything that you need like beta diversity analysis or venn diagram.