Hi @nerdynella! Are you sharing with us the exact same command you tried to run? I ask, because the error you are reporting doesn’t look like a QIIME 2 error, but rather an error from your shell, related to the shell not being able to parse out the command as entered. For example, the error message you provided has parentheses ( & ) around the AND statements, but the command you have copied-and-pasted here doesn’t include those parentheses. Can you double check that and let us know what is what? Otherwise, the command as pasted looks fine to me. As a quick double-check, the following command worked for me with the Moving Pictures tutorial’s Feature Table:
qiime feature-table filter-samples \
--i-table table.qza \
--m-metadata-file sample-metadata.tsv \
--p-where "BodySite='gut' AND Year='2008' AND Subject='subject-1'" \
--o-filtered-table gut-2008-subject-1.qza
This will filter the table down to precisely one sample.
Thanks for responding promptly @thermokarst!
Yes, that’s the exact same command. Let me change shells and/or check with our scientific computing team. I’ll let you know how it goes.
No, it wasn't a qiime2 error indeed. Our scientific computing team said it had something to do with the way that our qiime2 module was set up - it was treating each of the AND as separate parameters instead of as part of the --p-where parameter.
This has been rectified and it's working as it should