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.