Filtering fasta sequences file based on a list of OTUs

Hello Matthew,
Thank you so much for your help. It worked!
Below are the commands I used. I hope they will be of use for others.

import data ( fasta sequences ‘query.fa’) and output as artifact (‘query_sequences.qza’)

qiime tools import
–input-path query.fa
–output-path query_sequences.qza
–type FeatureData[Sequence]

Filtering seq (‘query_sequences.qza’) based on a list of OTU names in tab-delimited file( ‘NAAT_EAT_OTUlist.txt’) and outputting (into ‘NAAT_EAT_3431OTUs.qza’)

qiime feature-table filter-seqs
–i-data query_sequences.qza
–m-metadata-file NAAT_EAT_OTUlist.txt
–o-filtered-data NAAT_EAT_3431OTUs.qza

3 Likes