I did closed reference OTU clustering with my data and I am now trying to do core metrics analysis. I got the following error:
Plugin error from diversity:
**All ``feature_ids`` must be present as tip names in ``phylogeny``. ``feature_ids`` not corresponding to tip names (n=18947): 712377142190547bd0d6f53bfaccd504 f1812e3a61f77e219ce73fadaa06abc1...........**
I know from other posts on the forum that this means there are features in my feature table not present on the tree, but I'm not sure how this could be possible since the tree and reference sequences I used to make my feature table were both from the gg-13-8 database. Below is my code for the core metrics analysis that failed:
Were the tree and reference sequences from identical OTU clustering thresholds? (this is how you can tell whether the tree was built from those reference sequences). I see that you are using the 97_otus phylogeny… but did you use the 97_otus rep_seqs as the reference for closed-reference OTU clustering?
It’s probably not necessary yet (since I suspect this may just be an issue of pairing the wrong seqs/tree) but this post details a great way to open up and inspect your tree and table (using python — type “python” into your terminal and hit enter, hit “control + D” to exit when you are done):
The tip names you have don’t look like tip names for Greengenes. Those are ASV names, and greengenes typically has numbered indentifiers. Is there any chance you passed an ASV table instead of your OTU table?