Filtering samples

Hello,

I’m trying to filter out to samples out of my analysis by sampleID. I used the command:
qiime feature-table filter-samples \ [12:43pm]
–i-table table.qza
–m-metadata-file meta-data.tsv
–p-where “#SampleID IN (‘C’, ‘P0048’)”
–p-exclude-ids
–o-filtered-table table.qza

and got this error:
Plugin error from feature-table:
Incorrect number of bindings supplied. The current statement uses 1, and there are 0 supplied.

What is the problem?
could it be because I didn’t include my metadata file in the demultiplexing? I’ve noticed that I can use the metadata file for other commands like diversity and such - so I guess it should work here as well.
any suggestions?
thanks ahead

Hi @Nittay,
For filtering out samples based on ID, you can just supply a mapping file containing the samples you want to retain.

Give that a try and let us know if it works!

2 Likes

Yep I did so and it worked, Thanks!

1 Like

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.