Filtering sequences based on a table is easy peasy, but I suppose you need to be a QIIME 2 dev to know its secrets.
filter-seqs has an optional table
input. If you input a table instead of metadata, it will filter the sequences to only contain those found in the table.
I agree, that could also be useful, but only in some cases. It is not super convenient, but you can always just re-run filter-features
with the --p-exclude-ids
parameter instead of --p-no-exclude-ids
, or vice versa.
I hope that helps!