None of the sample identifiers match between the metadata and the coordinates

Dear colleagues,
could you please help me a little.

I am trying to apply a collection of diversity metrics (non-phylogenetic) to a feature table for my ITS data. I am using the core-metrics in qiime2. However, I am getting this error:

None of the sample identifiers match between the metadata and the coordinates. Verify that you are using metadata and coordinates corresponding to the same dataset.

I have checked that the sample ID in my table.qza file is same as in the metadata file. I am really confused as to why I am still getting the error.
Version of QIIME 2: qiime2-2020.8.
Command:
qiime diversity core-metrics --i-table /home/yanina/Kocharovskaya/ITS/otu_table.qza --p-sampling-depth 1 --m-metadata-file /home/yanina/Kocharovskaya/ITS/OTU_table_mapping.tsv --output-dir /home/yanina/Kocharovskaya/ITS/diversity_core_metrics
OTU_table_mapping.tsv (125.4 KB) otu_table.qza (86.2 KB) qiime2-q2cli-err-htuw8aio.txt (2.4 KB) OTU_table_mapping.tsv (125.4 KB) otu_table.qza (86.2 KB)

Thanks!

Hi @yanina,

The map you provided here is just an export of the OTU table. If that’s what you intended, then you need to transpose the table so that samples are the rows and features are the columns. (This is not the default). If it’s not what you intended, maybe you have a different metadata file you’d prefer to use?

Best,
Justine

Thank you a lot! It works.

1 Like