Hey! I was diving into this comment. Seems I have the same problem. Let me give some context, I have two different studies represented in these samples IRS and JMM (the sample id's go: IRS-1,IRS-2,IRS-3;JMM-1, JMM-2, JMM-3 and so on).
After demux, I need to filter the samples with the id's IRS, to do this I used --demux filter-samples and prepared a metadata table excluding all samples IRS's by simply not writing the id name. after running the command, I received an error comment:
Plugin error from demux:
'JMM-62' is not a sample present in the demultiplexed data.
Debug info has been saved to /var/folders/dx/pmzr52tj7yx0cxdsl7zgz0500000gn/T/qiime2-q2cli-err-0fdsnqo5.log
Traceback (most recent call last):
File "/Users/jorgemontiel/opt/miniconda3/envs/qiime2-2021.4/lib/python3.8/site-packages/pandas/core/indexes/base.py", line 3080, in get_loc
return self._engine.get_loc(casted_key)
File "pandas/_libs/index.pyx", line 70, in pandas._libs.index.IndexEngine.get_loc
File "pandas/_libs/index.pyx", line 101, in pandas._libs.index.IndexEngine.get_loc
File "pandas/_libs/hashtable_class_helper.pxi", line 4554, in pandas._libs.hashtable.PyObjectHashTable.get_item
File "pandas/_libs/hashtable_class_helper.pxi", line 4562, in pandas._libs.hashtable.PyObjectHashTable.get_item
KeyError: 'JMM-62'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/Users/jorgemontiel/opt/miniconda3/envs/qiime2-2021.4/lib/python3.8/site-packages/q2_demux/_filter.py", line 39, in filter_samples
forward = manifest.loc[id].forward
File "/Users/jorgemontiel/opt/miniconda3/envs/qiime2-2021.4/lib/python3.8/site-packages/pandas/core/indexing.py", line 895, in getitem
return self._getitem_axis(maybe_callable, axis=axis)
File "/Users/jorgemontiel/opt/miniconda3/envs/qiime2-2021.4/lib/python3.8/site-packages/pandas/core/indexing.py", line 1124, in _getitem_axis
return self._get_label(key, axis=axis)
File "/Users/jorgemontiel/opt/miniconda3/envs/qiime2-2021.4/lib/python3.8/site-packages/pandas/core/indexing.py", line 1073, in _get_label
return self.obj.xs(label, axis=axis)
File "/Users/jorgemontiel/opt/miniconda3/envs/qiime2-2021.4/lib/python3.8/site-packages/pandas/core/generic.py", line 3739, in xs
loc = index.get_loc(key)
File "/Users/jorgemontiel/opt/miniconda3/envs/qiime2-2021.4/lib/python3.8/site-packages/pandas/core/indexes/base.py", line 3082, in get_loc
raise KeyError(key) from err
KeyError: 'JMM-62'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/jorgemontiel/opt/miniconda3/envs/qiime2-2021.4/lib/python3.8/site-packages/q2cli/commands.py", line 329, in call
results = action(**arguments)
File "", line 2, in filter_samples
File "/Users/jorgemontiel/opt/miniconda3/envs/qiime2-2021.4/lib/python3.8/site-packages/qiime2/sdk/action.py", line 244, in bound_callable
outputs = self.callable_executor(scope, callable_args,
File "/Users/jorgemontiel/opt/miniconda3/envs/qiime2-2021.4/lib/python3.8/site-packages/qiime2/sdk/action.py", line 390, in callable_executor
output_views = self._callable(**view_args)
File "/Users/jorgemontiel/opt/miniconda3/envs/qiime2-2021.4/lib/python3.8/site-packages/q2_demux/_filter.py", line 47, in filter_samples
raise ValueError(f'{id!r} is not a sample present in the '
ValueError: 'JMM-62' is not a sample present in the demultiplexed data.
any advise? thank you!