Hi,
I am running following command and i am meeting error,
qiime feature-table filter-samples --i-table table.qza --m-metadata-file Meta.tsv --p-where “BodySite=‘gut’” --o-filtered-table gut-table.qza
If i run the command without --p-where i can get the results, I just wanted to ask here that my samples are taken from distal and proximal colon does it matter if i put --p-where parameter? Basically i am putting this parameter just to limit my analysis to single body-site.
Error:
Traceback (most recent call last):
File “/home/Krunal/miniconda3/envs/qiime2-2019.7/lib/python3.6/site-packages/qiime2/metadata/metadata.py”, line 605, in get_ids
c.execute(query)
sqlite3.OperationalError: no such column: BodySite
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File “/home/Krunal/miniconda3/envs/qiime2-2019.7/lib/python3.6/site-packages/q2cli/commands.py”, line 327, in call
results = action(**arguments)
File “</home/Krunal/miniconda3/envs/qiime2-2019.7/lib/python3.6/site-packages/decorator.py:decorator-gen-323>”, line 2, in filter_samples
File “/home/Krunal/miniconda3/envs/qiime2-2019.7/lib/python3.6/site-packages/qiime2/sdk/action.py”, line 240, in bound_callable
output_types, provenance)
File “/home/Krunal/miniconda3/envs/qiime2-2019.7/lib/python3.6/site-packages/qiime2/sdk/action.py”, line 383, in callable_executor
output_views = self._callable(**view_args)
File “/home/Krunal/miniconda3/envs/qiime2-2019.7/lib/python3.6/site-packages/q2_feature_table/_filter.py”, line 73, in filter_samples
where=where, axis=‘sample’, exclude_ids=exclude_ids)
File “/home/Krunal/miniconda3/envs/qiime2-2019.7/lib/python3.6/site-packages/q2_feature_table/_filter.py”, line 46, in _filter_table
ids_to_keep = metadata.get_ids(where=where)
File “/home/Krunal/miniconda3/envs/qiime2-2019.7/lib/python3.6/site-packages/qiime2/metadata/metadata.py”, line 614, in get_ids
"where
statement." % query) from e
ValueError: Selection of IDs failed with query:
SELECT “sampleid” FROM metadata WHERE BodySite=‘gut’ GROUP BY “sampleid” ORDER BY “sampleid”;
If one of the metadata column names specified in the where
statement is on this list of reserved keywords (http://www.sqlite.org/lang_keywords.html), please ensure it is quoted appropriately in the where
statement.
Plugin error from feature-table:
Selection of IDs failed with query:
SELECT “sampleid” FROM metadata WHERE BodySite=‘gut’ GROUP BY “sampleid” ORDER BY “sampleid”;
If one of the metadata column names specified in the where
statement is on this list of reserved keywords (http://www.sqlite.org/lang_keywords.html), please ensure it is quoted appropriately in the where
statement.
Also further i am going to run qiime taxa collapse and qiime composition add-pseudocount, what will be the effects if i dont add the --p-where.
Best
Krunal