Skip to main content

Crate taxutils

Crate taxutils 

Source
Expand description

Rust port of the Python taxutils package.

The main entry point is TaxonomicUtils::new. Resource locations and defaults match the Python package: TAXUTILS_GLOBALS, or ./taxutils/.

Re-exports§

pub use fasta::CancellationToken;
pub use fasta::DeduplicateStats;
pub use fasta::FilterMode;
pub use fasta::FilterStats;
pub use fasta::GrepStats;
pub use fasta::clean_fasta_headers;
pub use fasta::clean_fasta_headers_with_cancel;
pub use fasta::deduplicate_fasta;
pub use fasta::deduplicate_fasta_with_cancel;
pub use fasta::extract_accessions;
pub use fasta::extract_accessions_with_cancel;
pub use fasta::filter_fasta;
pub use fasta::filter_fasta_with_options;
pub use fasta::filter_fasta_with_options_and_cancel;
pub use fasta::grep_fasta;
pub use fasta::grep_fasta_with_cancel;
pub use fasta::parse_taxa;

Modules§

fasta
threads
Central thread-count policy.

Structs§

AccessionDatabaseOptions
Controls creation and retention of the indexed accession database.
AccessionMappingOptions
Assignment policy for forward and reverse lookups. Old APIs remain canonical.
TaxonNode
TaxonomicUtils
TaxutilsBuilder
TaxutilsOptions
TopologyProfile

Enums§

TopologyStat

Constants§

VERSION
Version of the Rust implementation backing this library.

Functions§

ensure_accession_database
Build, refresh, or validate the shared SQLite accession index.
ensure_accession_database_with_cancel
ensure_accession_database that stops early when cancellation is triggered.
lookup_accession_taxids
Look up parsed accession-to-taxid mappings without loading the taxonomy tree.
lookup_accession_taxids_with_cancel
lookup_accession_taxids that stops early when cancellation is triggered.
lookup_accession_taxids_with_options
lookup_taxid_accessions
Look up accessions assigned directly to the requested taxids without loading the taxonomy tree.
lookup_taxid_accessions_with_cancel
lookup_taxid_accessions that stops early when cancellation is triggered.
lookup_taxid_accessions_with_options
prepare_alternative_mappings
Prepare optional resources. Canonical users only refresh an already-installed metadata cache; they never download it for the first time.
taxutils
Python-compatible convenience constructor.

Type Aliases§

TaxonId