Hello - I'm hoping someone can help clear this up for me because I'm been banging my head against the wall for a while trying to figure this out. I can't find any similar issues, so it's likely something on my end but I wanted to check.
I'm running amplicon-2024.10 on an Apple-chipped MacBook Pro.
I'm experiencing an issue where I'm getting NAs for certain samples when running Faith's PD, but values when running non-phylogenetic metrics such as observed_features and shannon. I'm not getting any error (!), including those related to features present in the table not being present in the phylogeny. I typically compare across metrics, and have never seen this before. I was able to reproduce this with a 16S tree/table and a shotgun tree/table. Thanks in advance for any insight
Hello. Thanks for your reply. I was able to replicate this with both the GreenGenes 2 phylogeny (16S) and the Web of Life Toolkit App (Woltka) phylogeny (metagenomics). Both trees are too big to post here, but I've linked them below.
Update: This is not an issue with QIIME 2, but rather with an R package (qiime2R) that I discovered was dropping trailing zeros from sample IDs for only the faith's PD vector. Thanks for your help. Closing.
The website that hosts my tree is not currently working - is there a way I can provide a larger file to you and/or can you make a dummy dataset with numeric sample names including trailing zeros to verify?
Hi Lichen,
I was able to recreate this with very specific conditions.
It seems like your Sample IDs need to look like floats, then qiime diversity alpha-phylogenetic will truncate your Sample IDs . For example 1042.0000 will be truncated 1042.0.
As for a work around, I believe that if you renamed your samples to have at least 1 letter in them, they wouldnt be considered floats and therefore would not be truncated. For example 1042.000 would be S1042.000.
You can rename samples in your feature-table using qiime feature-table rename-ids.