Skip to main content

APSCALE-blast

Downloads

Taxonomic assignment of OTUs/ESVs with BLAST+, part of the metabarcoding pipeline APSCALE.

  • Input: a FASTA file with OTU/ESV sequences (from APSCALE or any other pipeline) and a reference database
  • Output: a taxonomy table (.xlsx) with the best hit per sequence, a flag for ambiguous assignments and the thresholds used

Installation

The easiest way is the conda environment of the APSCALE installer, which installs APSCALE-blast and all its dependencies.

Alternatively, install via pip (Python ≥ 3.10):

pip install apscale_blast

With pip, BLAST+ must be installed separately and be available in your PATH.

Usage

# Taxonomic assignment
apscale_blast -db ./MIDORI2_srRNA_BLAST -q ./ESVs.fasta -o ./my_run

# Re-BLAST sequences without a good match against a second database
apscale_blast -db ./MIDORI2_srRNA_BLAST -db2 ./my_local_db -q ./ESVs.fasta -o ./my_run

# Re-BLAST an existing result (results are saved next to the table as *_reblast.xlsx)
apscale_blast -reblast_only ./my_run/my_run_taxonomy.xlsx -db2 ./my_local_db -q ./ESVs.fasta

# Validate species assignments with GBIF occurrences (e.g. Germany, Luxembourg, France)
apscale_blast gbif -countries DE,LU,FR -q ./my_run/my_run_taxonomy.xlsx

# Only replace synonyms by their accepted names (GBIF backbone)
apscale_blast gbif -synonyms -q ./my_run/my_run_taxonomy.xlsx

# Calculate database-specific similarity thresholds
apscale_blast dboptimiser -db ./MIDORI2_srRNA_BLAST

# Create your own database (graphical interface)
apscale_blast dbcreator

All options are listed with apscale_blast -h (or e.g. apscale_blast gbif -h).

How it works

  1. The sequences are BLASTed (blastn) against the database in parallel subsets.
  2. The best hits are filtered by similarity, e-value and reference rating.
  3. Each assignment is trimmed to the taxonomic level supported by its similarity.
  4. If several taxa remain, they are resolved with flags: F1 dominant species, F2 two species of one genus, F3 several species of one genus, F4 trimming to the most recent common ancestor.

Similarity thresholds

  • apscale_blast dboptimiser calculates thresholds per taxonomic level that best separate the similarity to the same taxon from the similarity to the closest other taxon (leave-one-out on the database). Use -fp_weight 2 (or higher) for more conservative thresholds.
  • If the database contains a db_thresholds.xlsx (created with apscale_blast dboptimiser), its database-wide thresholds are used.
  • With -threshold_level class (or order, family, ...), each sequence gets the thresholds of its class. Classes based on fewer than 50 sequences use the database-wide thresholds.
  • With -thresholds 98,95,90,87,85 (species, genus, family, order, class), your own values are used.
  • Without db_thresholds.xlsx, the default 98,95,90,87,85 is used.

Databases

Pre-compiled databases are available here and are updated regularly. Custom databases can be created with apscale_blast dbcreator. Each database folder contains a citation.txt.

Citation

Please cite BLAST+ and the database(s) you used:

Metadata

Release files for apscale-blast 3.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for apscale-blast 3.0.1
File Size Uploaded Provenance Actions
apscale_blast-3.0.1.tar.gz 58.0 kB Without provenance Details for apscale_blast-3.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for apscale-blast 3.0.1
File Interpreter ABI Platform Actions
apscale_blast-3.0.1-py3-none-any.whl Python 3 none any Details for apscale_blast-3.0.1-py3-none-any.whl

Total release size: 118.3 kB

Release files / apscale_blast-3.0.1.tar.gz

Download URL apscale_blast-3.0.1.tar.gz
Size 58.0 kB
Tags Source
SHA-256 checksum
How to use checksums
7a9eb3efabf0ba898b2145b69cb87b8460e7f95c03b4007c8bd17a76cfebe849
BLAKE2b-256 checksum
How to use checksums
d193a56e9d9f077cf057907e0d8f045252e0fd9e39044ef48d5bb863fcd0bc5f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.4

Release files / apscale_blast-3.0.1-py3-none-any.whl

Download URL apscale_blast-3.0.1-py3-none-any.whl
Size 60.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0e1c516e7a0baeb1ebe71ff8b4b36514a16c71a4b91e737e4e89053c381a125d
BLAKE2b-256 checksum
How to use checksums
28ba63e76e639cb892ae024154f60452438629a25d62cdaa01829cae07a232e0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.4

Security for apscale-blast 3.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

3.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page