Just a quick guess here. The error seems to come from these samples
and in your metadata file these samples appear with an underscore instead of a dash i.e. s2_04F. I'm wondering if this may the issue. Try renaming those 2 samples and see if that helps while you wait for the experts to give a more knowledge-based suggestions
Hi @jcthomas! @Mehrbod_Estaki hit the nail on the head --- the sample IDs in your metadata file don't match the sample IDs saved in the feature table (although, it isn't just the two samples @Mehrbod_Estaki listed, it looks like all of the samples are mismatched). Some of them are underscore/dash swaps, but other samples are missing wholesale. One way you can interrogate your feature table is to rerun the feature-table summarize command above, omitting the metadata:
The easiest option for you is to update your metadata file to match the sample names in your feature table, otherwise, you would need to rename your samples in your feature table. Let us know if you get stuck!