So I wanted to filter out the sequences after DADA2 based on time points in my metadata. The dataset consists of 13 time points but for my study I only require time points from 0-5. So I tried the following command:
qiime feature-table filter-seqs
–i-data rep-seqs.qza
–m-metadata-file metadata.tsv
–p-where “CAST(time_point AS INTEGER) BETWEEN 0 AND 5”
–o-filtered-data rep-seqs-filtered1.qza
but it keeps giving me the error:
Traceback (most recent call last):
File “/home/basilin/miniconda3/envs/qiime2-2019.1/lib/python3.6/site-packages/q2cli/commands.py”, line 274, in call
results = action(**arguments)
File “</home/basilin/miniconda3/envs/qiime2-2019.1/lib/python3.6/site-packages/decorator.py:decorator-gen-318>”, line 2, in filter_seqs
File “/home/basilin/miniconda3/envs/qiime2-2019.1/lib/python3.6/site-packages/qiime2/sdk/action.py”, line 231, in bound_callable
output_types, provenance)
File “/home/basilin/miniconda3/envs/qiime2-2019.1/lib/python3.6/site-packages/qiime2/sdk/action.py”, line 365, in callable_executor
output_views = self._callable(**view_args)
File “/home/basilin/miniconda3/envs/qiime2-2019.1/lib/python3.6/site-packages/q2_feature_table/_filter.py”, line 112, in filter_seqs
raise ValueError(‘All features were filtered out of the data.’)
ValueError: All features were filtered out of the data.
Plugin error from feature-table:
All features were filtered out of the data.
I am unable to figure out what I am doing wrong.
Any help will be appreciated.
Thanks