Find UniFrac metric based on grouping
1
0
Entering edit mode
3.9 years ago
AfinaM ▴ 30

Hi, I am looking for way to calculate UniFrac based on the groups in my samples. As there are too many samples in my project (around 300+), I want to look at the UniFrac metric based on grouping instead of samples.

I am using phyloseq at the moment and I couldn't find a way to reproduce phyloseq object based on groups only. Is there a way to do this?

Thank you in advance.

unifrac R phyloseq • 975 views
ADD COMMENT
1
Entering edit mode
3.9 years ago
AfinaM ▴ 30

I found the answer and hope this can help other users as well.

It is actually a simple solution where we can use merge_samples from phyloseq and merge it according to group or other variable that you have.

Here is the link for further explanation: merge_samples | RDocumentation

ADD COMMENT

Login before adding your answer.

Traffic: 1492 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6