Hello again!
I am making a breand new post as the precedent (Plugin error from demux: sample not present in the demultiplexed data) was closed without a solution unfortunately.
I am facing again the same error. The solution proposed by @Mandussi_Montiel unfortunately dont't work for me. I was wondering whether @Oddant1 could help me again.
So, the problem was I was getting the error:
Plugin error from demux:
'N' is not a sample present in the demultiplexed data.
Debug info has been saved to /tmp/qiime2-q2cli-err-tbduy2ea.log
Command is:
singularity run singularity_containers/qiime2_2023.2 qiime demux filter-samples --i-demux $name.qza --m-metadata-file $name.tsv --p-where "CAST([forward sequence count] AS INT) > 500" --o-filtered-demux $name_filtered.qza --verbose
Results is:
Matplotlib created a temporary config/cache directory at /tmp/matplotlib-pi199yjq because the default path (/home/qiime2/matplotlib) is not a writable directory; it is highly recommended to set the MPLCONFIGDIR environment variable to a writable directory, in particular to speed up the import of Matplotlib and to better support multiprocessing.
Traceback (most recent call last):
File "/opt/conda/envs/qiime2-2023.2/lib/python3.8/site-packages/pandas/core/indexes/base.py", line 3802, in get_loc
return self._engine.get_loc(casted_key)
File "pandas/_libs/index.pyx", line 138, in pandas._libs.index.IndexEngine.get_loc
File "pandas/_libs/index.pyx", line 146, in pandas._libs.index.IndexEngine.get_loc
File "pandas/_libs/index_class_helper.pxi", line 49, in pandas._libs.index.Int64Engine._check_type
KeyError: '34'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/opt/conda/envs/qiime2-2023.2/lib/python3.8/site-packages/q2_demux/_filter.py", line 39, in filter_samples
forward = manifest.loc[id].forward
File "/opt/conda/envs/qiime2-2023.2/lib/python3.8/site-packages/pandas/core/indexing.py", line 1073, in getitem
return self._getitem_axis(maybe_callable, axis=axis)
File "/opt/conda/envs/qiime2-2023.2/lib/python3.8/site-packages/pandas/core/indexing.py", line 1312, in _getitem_axis
return self._get_label(key, axis=axis)
File "/opt/conda/envs/qiime2-2023.2/lib/python3.8/site-packages/pandas/core/indexing.py", line 1260, in _get_label
return self.obj.xs(label, axis=axis)
File "/opt/conda/envs/qiime2-2023.2/lib/python3.8/site-packages/pandas/core/generic.py", line 4056, in xs
loc = index.get_loc(key)
File "/opt/conda/envs/qiime2-2023.2/lib/python3.8/site-packages/pandas/core/indexes/base.py", line 3804, in get_loc
raise KeyError(key) from err
KeyError: '34'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/conda/envs/qiime2-2023.2/lib/python3.8/site-packages/q2cli/commands.py", line 352, in call
results = action(**arguments)
File "", line 2, in filter_samples
File "/opt/conda/envs/qiime2-2023.2/lib/python3.8/site-packages/qiime2/sdk/action.py", line 234, in bound_callable
outputs = self.callable_executor(scope, callable_args,
File "/opt/conda/envs/qiime2-2023.2/lib/python3.8/site-packages/qiime2/sdk/action.py", line 381, in callable_executor
output_views = self._callable(**view_args)
File "/opt/conda/envs/qiime2-2023.2/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: '34' is not a sample present in the demultiplexed data.
Plugin error from demux:
'34' is not a sample present in the demultiplexed data.
See above for debug info.
Any idea about what is the problem?
Thanks in advance for your support!