<p>To calculate the unifrac distance you need the phylogenetic tree. If you only have it for 500 taxa then you can only calculate it for those taxa. </p>

<p>It is impossible to impute the phylogenetic tree without knowing the sequence on which the taxa is based. But if you know it then you can calculate the phylogenetic tree for the 3k taxa you have. </p>

CC BY-SA 4.0
2019-09-04T07:14:51.267Z
2019-09-04T07:14:51.267Z
llrs
<p>I am trying to calculate unifrac distance for my OTU table, which has about 3000 taxa, and 300 samples. My phylogenetic tree only considers the most important 500 taxa. My questions are:</p>

<ol>
<li>Do I ignore the 2500 taxa that were not considered in the phylogenetic tree?</li>
<li>Is their a package in R that deals with this kind of missing data?</li>
</ol>

CC BY-SA 4.0
2019-09-04T08:13:39.973Z
Welcome, your request is a bit unusual. Could you provide details about the way you have built the tree please? I don't know of any tree package that would remove OTUs unless you are collapsing clades.
M__
CC BY-SA 4.0
2019-09-04T11:19:39.230Z
Sorry I am also a bit confusd by this "which has about 3000 taxa, 300 samples" ... that seems to imply 10 taxa per sample .. is this metagenomics?
M__
<phylogenetics><phylogeny>
Calculating Unifrac Distance and missing data
# Calculating Unifrac Distance and missing data

(Asked by: username_0 on 2019-09-03)

I am trying to calculate unifrac distance for my OTU table, which has about 3000 taxa, and 300 samples. My phylogenetic tree only considers the most important 500 taxa. My questions are:

1. Do I ignore the 2500 taxa that were not considered in the phylogenetic tree?
2. Is their a package in R that deals with this kind of missing data?

**Tags:** phylogenetics, phylogeny
> **Comments:**
> **username_1**: Welcome, your request is a bit unusual. Could you provide details about the way you have built the tree please? I don't know of any tree package that would remove OTUs unless you are collapsing clades.  
> **username_1**: Sorry I am also a bit confusd by this "which has about 3000 taxa, 300 samples" ... that seems to imply 10 taxa per sample .. is this metagenomics?  

---

## 1 answers

### Answer by username_2 on 2019-09-04. Score: 1 | Accepted answer

To calculate the unifrac distance you need the phylogenetic tree. If you only have it for 500 taxa then you can only calculate it for those taxa.

It is impossible to impute the phylogenetic tree without knowing the sequence on which the taxa is based. But if you know it then you can calculate the phylogenetic tree for the 3k taxa you have.


---

