Both of my feature table and the tree has 923 features. There are no mismatched features when I looked into both of the feature table and the tree.
For the similar feature IDs, they represent different sequences. For example, Jul27.50v_1972 is one of the sequences from the sample July27th, 50m depth. Jul27.50v_1414 is another sequence from the sample July27th, 50m depth.
Hmm, well, that isn't what QIIME 2 is seeing --- the error you posted above indicates that the feature IDs are mismatched between the two Artifacts.
In QIIME 2, ID matching is performed by directly comparing the ID string, character for character --- the IDs must match 100% in order to be collated.
When we see mismatched ID issues here it is usually because of a bookkeeping issue when importing data.
If you can't find any problems with your file bookkeeping, please send me a DM with download links to 3 files necessary to re-run your qiime diversity core-metrics-phylogenetic command above. Thanks!
I still can't find any problems with my file bookkeeping, could you please have a look on my files?
The threes files necessary to run my qiime diversity core-metrics-phylogenetic command is attached below.
That’s weird because I can see that the IDs have underscores in both of the unrooted tree file I imported into QIIME2 and the rooted tree file I exported from QIIME2.
Thanks @karren_owl --- I found the culprit. q2-phylogeny is using scikit-bio behind the scenes to do the midpoint rooting --- I was reading up on the Newick file format (used to represent the tree here), check this tidbit out:
In this format, underscores are treated as spaces --- in order to include a literal underscore, you must precede the underscore with a single-quote '. You can also surround the entire ID with single quotes.
I tried the qiime importing again using new biomtable and tree file with id quoted with single quotes. However, it runs to the same error again:
All feature_ids must be present as tip names in phylogeny. feature_ids not corresponding to tip names (n=515): ‘May12.50v_1549’ ‘Jul11.25v_4600’ ‘Jun22.0v_544
2’ ‘Aug5.50v_20401’ ‘May12.75v_1961’ ‘Jul11.50v_9708’ ‘Jul27.25v_4983’ ‘Jul27.50v_1972’
Are you sure you have your files in order? I just successfully ran the core-metrics-phylo command from above using the feature table (from above) (UUID e43d8331-06d5-4444-8835-70bec0bacf56) and the tree you just posted — worked as expected. Make sure you have everything in order and give it a shot again!