qiime diversity core-metrics-phylogenetic: None of the sample identifiers match between the metadata and the coordinates

Dear Team
I want conduct the diversity metrics
i used the following commands,
qiime diversity core-metrics-phylogenetic
--i-phylogeny rooted-tree.qza
--i-table table.qza
--p-sampling-depth 10000
--m-metadata-file metadata.tsv
--output-dir core-metrics-results

But
Getting errors, i could not figure out the cause, anyone who can assist

Plugin error from diversity:

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.

the error are

Traceback (most recent call last):
File "/home/meda/miniconda3/envs/qiime2-amplicon-2024.5/lib/python3.9/site-packages/q2cli/commands.py", line 520, in call
results = self._execute_action(
File "/home/meda/miniconda3/envs/qiime2-amplicon-2024.5/lib/python3.9/site-packages/q2cli/commands.py", line 586, in _execute_action
results = action(**arguments)
File "", line 2, in core_metrics_phylogenetic
File "/home/meda/miniconda3/envs/qiime2-amplicon-2024.5/lib/python3.9/site-packages/qiime2/sdk/action.py", line 342, in bound_callable
outputs = self.callable_executor(
File "/home/meda/miniconda3/envs/qiime2-amplicon-2024.5/lib/python3.9/site-packages/qiime2/sdk/action.py", line 657, in callable_executor
outputs = self._callable(scope.ctx, **view_args)
File "/home/meda/miniconda3/envs/qiime2-amplicon-2024.5/lib/python3.9/site-packages/q2_diversity/_core_metrics.py", line 60, in core_metrics_phylogenetic
cr = core_metrics(table=table, sampling_depth=sampling_depth,
File "", line 2, in core_metrics
File "/home/meda/miniconda3/envs/qiime2-amplicon-2024.5/lib/python3.9/site-packages/qiime2/sdk/context.py", line 143, in deferred_action
return action_obj._bind(
File "", line 2, in core_metrics
File "/home/meda/miniconda3/envs/qiime2-amplicon-2024.5/lib/python3.9/site-packages/qiime2/sdk/action.py", line 342, in bound_callable
outputs = self.callable_executor(
File "/home/meda/miniconda3/envs/qiime2-amplicon-2024.5/lib/python3.9/site-packages/qiime2/sdk/action.py", line 657, in callable_executor
outputs = self._callable(scope.ctx, **view_args)

raise ValueError('None of the %s identifiers match between the'
ValueError: 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.

1 Like

Welcome to the forum!

Usually, the error itself can try to describe what exactly went wrong!

That means that either:

  1. Sample-ids in your feature table and in the metadata file are not the same
  2. Your metadata file is transposed (sample IDs should be rows. not columns).

Hope that one of the mentioned options will help you to fix the error.

Best,

2 Likes

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.