ncbi_classifier

NCBI classifier for QIIME2

Date: 04-03-2026

A prokaryotic classifier generated from NCBI’s RefSeq Nucleotide DB (only 16S rRNA gene sequences), to perform taxonomical classification in QIIME2 pipeline.

Performed on AMD_WS. System Configuration…

Download Data

Data query

(qiime2)$ qiime rescript get-ncbi-data --p-n-jobs 8 --p-query '33175[BioProject] OR 33317[BioProject]' --o-sequences ncbi_refseq_unfilt.qza --o-taxonomy ncbi_refseq_tax_unfilt.qza
# Completed in <5 mins

Remove short sequences

Thresholds: 900 for Archaea, 1200 for Bacteria

(qiime2)$ qiime rescript filter-seqs-length-by-taxon --i-sequences ncbi_refseq_unfilt.qza --i-taxonomy ncbi_refseq_tax_unfilt.qza --p-labels Archaea Bacteria --p-min-lens 900 1200 --o-filtered-seqs ncbi_refseqs.qza --o-discarded-seqs ncbi_refseqs_discarded.qza
# Within a minute

Checked the ...discarded.qza, nothing was discarded.

Filter taxa from Taxonomy

Remove the discarded sequence IDs from taxonomy file [(Optional, as there were no shorter sequences than the provided thresholds)]{.small}

(qiime2)$ qiime rescript filter-taxa --i-taxonomy ncbi_refseq_tax_unfilt.qza --m-ids-to-keep-file ncbi_refseqs.qza --o-filtered-taxonomy ncbi_refseqs_taxonomy.qza
# Within a minute

Generate and evaluate classifier

(qiime2)$ qiime rescript evaluate-fit-classifier --i-sequences ncbi_refseqs.qza --i-taxonomy ncbi_refseqs_taxonomy.qza --o-classifier ncbi_refseqs_classifier_04032026.qza --o-evaluation ncbi_refseqs_classifier_evaluation.qzv --o-observed-taxonomy ncbi_refseqs_predicted_taxonomy.qza --p-n-jobs 24
# Completed in 30 mins

Outputs:

F-Measure is 1 till Genus level, and ~0.95 at Species level.

All downloads are in data directory.
Alternative download link: MEGA