apscale
Advanced Pipeline for Simple yet Comprehensive AnaLysEs of DNA metabarcoding data
apscale-nanopore
Introduction
Apscale-nanopore is a modified version of the metabarcoding pipeline apscale and is used for the processing of Oxford Nanopore data.
Programs used:
Input:
- Non-demultiplexed Nanopore sequence data in .fastq format.
- Demultiplexed Nanopore sequence data in .fastq format.
Output:
- read table, taxonomy table, log files, report
Installation
Apscale-nanopore can be installed on all common operating systems (Windows, Linux, MacOS). Apscale-nanopore requires Python 3.10 or higher and can be easily installed via pip in any command line:
pip install apscale_nanopore
To update apscale-blast run:
pip install --upgrade apscale_nanopore
The easiest installation option is the Conda apscale environment. This way, all dependencies will automatically be installed.
Then activate the conda environment.
conda activate apscale
Create project
First, create a new project:
apscale_nanopore create -p PATH/TO/PROJECT
A new project will be created. Follow the instructions and fill out the settings file accordingly.
/YOUR_PROJECT_PATH/My_new_project/ ├───1_raw_data │ └───data ├───2_index_demultiplexing │ └───data ├───3_primer_trimming │ └───data ├───4_quality_filtering │ └───data ├───5_clustering_denoising │ └───data ├───6_read_table │ └───data ├───7_taxonomic_assignment │ └───data ├───8_nanopore_report My_new_project_settings.xlsx
Settings file
Sample index and primer combinations (Example)
| Forward index 5'-3' | Forward primer 5'-3' | Reverse index 5'-3' | Reverse primer 5'-3' | ID |
|---|---|---|---|---|
| AGAACGACTTCCATACTCGTGTGA | RGCHTTYCCHCGWATAAAYAAYATAAG | AGAACGACTTCCATACTCGTGTGA | GRGGRTAWACWGTTCAWCCWGTNCC | Sample_1 |
| AACGAGTCTCTTGGGACCCATAGA | RGCHTTYCCHCGWATAAAYAAYATAAG | AACGAGTCTCTTGGGACCCATAGA | GRGGRTAWACWGTTCAWCCWGTNCC | Sample_2 |
| AGGTCTACCTCGCTAACACCACTG | RGCHTTYCCHCGWATAAAYAAYATAAG | AGGTCTACCTCGCTAACACCACTG | GRGGRTAWACWGTTCAWCCWGTNCC | Sample_3 |
| CGTCAACTGACAGTGGTTCGTACT | RGCHTTYCCHCGWATAAAYAAYATAAG | CGTCAACTGACAGTGGTTCGTACT | GRGGRTAWACWGTTCAWCCWGTNCC | Sample_4 |
| ACCCTCCAGGAAAGTACCTCTGAT | RGCHTTYCCHCGWATAAAYAAYATAAG | ACCCTCCAGGAAAGTACCTCTGAT | GRGGRTAWACWGTTCAWCCWGTNCC | Sample_5 |
| CCAAACCCAACAACCTAGATAGGC | RGCHTTYCCHCGWATAAAYAAYATAAG | CCAAACCCAACAACCTAGATAGGC | GRGGRTAWACWGTTCAWCCWGTNCC | Sample_6 |
Apscale-nanopore settings (Example)
| Step | Category | Variable | Comment |
|---|---|---|---|
| General | cpu count | 7 | Number of cores to use |
| demultiplexing (index) | allowed errors index | 3 | Allowed errors during index demultiplexing |
| primer trimming | allowed errors primer | 4 | Allowed errors during primer trimming |
| quality filtering | minimum length | 54 | Reads below this length will be discarded |
| quality filtering | maximum length | 74 | Reads above this length will be discarded |
| quality filtering | minimum quality | 20 | Reads below this average PHRED quality score will be discarded |
| clustering/denoising | mode | denoised OTUs | Choose clustering/denoising algorithm |
| clustering/denoising | percid | 0.97 | Vsearch clustering percentage identity |
| clustering/denoising | alpha | 1 | Vsearch denoising alpha value |
| clustering/denoising | d | 1 | Swarm's d value |
| read table | minimum reads | 10 | Discard reads below this threshold |
| taxonomic assignment | apscale blast | Yes | Run APSCALE megablast (yes or no) |
| taxonomic assignment | apscale db | ... | Path to local database |
Run apscale-nanopore
Apscale-nanopore operates in four different ways:
1) Raw-data processing of non-demultiplexed data
- Copy your non-demultiplexed .fastq(.gz) files to the "1_raw_data/data" folder.
apscale_nanopore run -p PATH/TO/PROJECT
- Apscale-nanopore will demultiplex all your files according to the demultiplexing sheet.
2) Raw-data processing of demultiplexed data
- Copy your demultiplexed .fastq(.gz) files to the "1_raw_data/data" folder.
apscale_nanopore run -p PATH/TO/PROJECT -sd
- Apscale-nanopore will skip the demultiplexing and immediately start with the raw-data processing.
- Important: Enter the primer sequences (5'-3') in the first row of the demultiplexing sheet. The index columns can be left blank.
3) Live raw-data processing of non-demultiplexed data
- Output your non-demultiplexed .fastq(.gz) files to the "1_raw_data/data" folder during sequencing.
- Apscale-nanopore will automatically scan the folder for incoming files and automatically process them.
- Press Ctrl+C to interupt the live-calling.
apscale_nanopore run -p PATH/TO/PROJECT -l
- Apscale-nanopore will demultiplex all your files according to the demultiplexing sheet.
4) Live raw-data processing of demultiplexed data
- Output your demultiplexed .fastq(.gz) files to the "1_raw_data/data" folder during sequencing.
- Apscale-nanopore will automatically scan the folder for incoming files and automatically process them.
- Press Ctrl+C to interupt the live-calling.
apscale_nanopore run -p PATH/TO/PROJECT -l -sd
- Apscale-nanopore will skip the demultiplexing and immediately start with the raw-data processing.
- Important: Enter the primer sequences (5'-3') in the first row of the demultiplexing sheet. The index columns can be left blank.
Run individual steps
- Apscale can run individual steps (-step X) or all steps after a specific module (-steps X).
Step indices:
- 1 = Index demultiplexing
- 2 = Primer trimming
- 3 = Quality filtering
- 4 = Clustering/denoising
- 5 = Read table
- 6 = Taxonomic assignment
Example: Run "clustering/denoising"
apscale_nanopore run -p PATH/TO/PROJECT -step 4
Example: Run all steps after the "quality filtering":
apscale_nanopore run -p PATH/TO/PROJECT -steps 3
Quality control
A quality control can be conducted for all fastq files. Simply run:
apscale_nanopore qc -p PATH/TO/PROJECT
Bioinformatics Workflow Overview
1) Demultiplexing
Tool: cutadapt
Settings: Allowed errors (default=3)
Demultiplex raw sequencing reads based on barcode sequences to generate sample-specific FASTQ files.
2) Primer Trimming
Tool: cutadapt
Settings: Allowed errors (default=4)
Remove primer sequences from demultiplexed reads to retain only target regions.
3) Quality Filtering
Tools: python, vsearch
Settings: Min. mean Q-Score (default=20), Min. and max. length (fragment-specific)
Filter reads based on:
- Mean PHRED quality score
- Minimum and maximum fragment length
This step ensures only high-quality reads are retained for downstream processing.
4) Clustering / Denoising
Tool: vsearch
Settings: d (default=1), percentage identity (default=0.97), alpha (default=1)
Choose from the following processing strategies:
- Swarm denoising: Local clustering using the Swarm algorithm for fine-scale resolution.
- Swarm OTUs: Swarm denoising followed by similarity clustering.
- ESV denoising: Error-correction to obtain Exact Sequence Variants.
- Denoised OTUs: Denoising followed by similarity clustering.
5) Read Table Construction and Filtering
Tool: python
Settings: minimum reads (default=10)
Construct an abundance table (ESVs/OTUs × samples).
Apply a minimum read threshold to remove low-abundance features.
6) Taxonomic Assignment
Tool: BLASTn via apscale-blast
Settings: Apscale-blast database
Assign taxonomy to representative sequences using a local reference database.
7) Quality Control and Reporting
Tool: python
Generate summary statistics and visual diagnostics.
Metadata
Release files for apscale-nanopore 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| apscale_nanopore-2.0.0.tar.gz | 46.5 kB | Without provenance | Details for apscale_nanopore-2.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| apscale_nanopore-2.0.0-py3-none-any.whl | Python 3 | none | any | Details for apscale_nanopore-2.0.0-py3-none-any.whl |
Total release size: 94.4 kB
Release files / apscale_nanopore-2.0.0.tar.gz
| Download URL | apscale_nanopore-2.0.0.tar.gz |
|---|---|
| Size | 46.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b8f6d86e9dea324327b6a42285571aa4e743036a2fc58d4fb8274ff442b91d76
|
|
BLAKE2b-256 checksum How to use checksums |
fedc5f5f44758230d276fcb22f3b7467a0a01ffeb7395487cace03848b7df7da
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.4
|
Release files / apscale_nanopore-2.0.0-py3-none-any.whl
| Download URL | apscale_nanopore-2.0.0-py3-none-any.whl |
|---|---|
| Size | 47.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
121405f6164664bbf2daf6585af1566d28a3e5afbaf794dcc032eb5f6cf2b109
|
|
BLAKE2b-256 checksum How to use checksums |
c9e1a0722056142acce9c747bb89a3993d83eef8a5dcb5c7eecb775409192656
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.4
|
Security for apscale-nanopore 2.0.0
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.