Project Settings
Top-level project identifier written into the config
Species
Each key must match a species folder in the pipeline root directory
Key = folder name and YAML map key (alphanumeric / underscore, no spaces). Must match the directory under the pipeline root.
Display Name = human-readable species name used in reports.
Click ▶ on a row to configure BUSCO lineage, reference path, individual/reference/feature-library filters, and optional data locations outside the project folder for that species.
Global Pipeline Settings
Applies to every stage and step
Default: OFF Before each run the pipeline checks which output files already exist and excludes them from the target list. Warning: because those files are never requested, changed input files do not propagate to existing downstream outputs, which can leave results inconsistent. Keep off so Snakemake decides itself what needs re-running. Turn on only to resume an interrupted run without reprocessing completed steps, and only when you know the inputs have not changed.
Raw Reads Processing
Runs per sample — produces clean, merged reads ready for mapping
Default: ONTurn off only if you already have clean, merged per-individual reads from a previous run and want to skip directly to reference mapping. Leave on for all new datasets.
Default: 0 (off). Increase to trim low-quality bases from read ends during adapter removal. Keep at 0 and use the Quality Filtering step below as the quality gate instead — two separate thresholds give finer control.
Default: 0 (off). Keep at 0 to retain all fragments here; use the Quality Filtering min length (default 30 bp) as the single length gate to avoid discarding reads twice.
Default: 5. Minimum length to trigger poly-X tail trimming.
Default: 40. Max % of unqualified bases allowed in a read.
Default: 5. Max number of N bases allowed in a read.
If left empty, fastp auto-detects adapters. For single-end data only R1 is used.
Default: 15. Q15 is a reasonable baseline for aDNA. Increase to Q20 for stricter filtering on high-coverage data; decrease only if read depth is critically low and you need to retain more reads.
Default: 30 bp — the standard minimum for reliable mapping. Increase for longer-fragment aDNA; decrease only if fragments are genuinely shorter (e.g. highly degraded specimens).
Default: 40. Max % of unqualified bases allowed in a read.
Default: 5. Max number of N bases allowed in a read.
Maps reads against a curated mitochondrial reference database and reports the proportional contribution of different taxa. Configurable coverage threshold, top-N plot count, mapping quality cutoff, and taxonomic level (default: species). Per-sample results are merged per individual.
Default: conda. Only takes effect when the ecmsd conda environment is (re)created — see FAQ.md.
Path to the ECMSD database folder. If not set, the pipeline auto-creates a database at resources/ecmsd_database via ECMSD --create-db.
Default: 25. Minimum % of reference covered by reads to retain it.
Default: 25. Number of top references to generate alignment plots for.
Default: 20. Minimum mapping quality score to include a read.
Default: species. Taxonomic level at which to aggregate and report results.
k-mer-based taxonomic classification against a user-provided database. Reports top 10 taxa ranked by both total and unique read assignments. An index path is required (see optional settings below).
Full path to the Centrifuge database index prefix.
Reference Processing
Runs per individual per reference — mapping, deduplication, damage analysis, coverage
Default: ONTurn off if you only need raw-reads QC and taxonomic screening without genome mapping. Must be explicitly set to true in the config to run.
For bwa-aln, defaults to -n 0.01 -k 2 -l 1024 -o 2 (Oliva et al. 2021).
To manage memory on references with many contigs, contigs are grouped into clusters and each cluster is deduplicated independently, then merged. The cluster size is configurable below. Each deduplication run produces a histogram and JSON statistics file that feed into MultiQC.
Default: 10. Minimum number of contigs grouped into a cluster. Small contigs below this count are merged together before deduplication.
Default: 500. Lower values use less memory per cluster but increase runtime due to more merge operations. Reduce (e.g. to 100) only if deduplication is failing on a large, fragmented reference genome.
Default: 20000. DeDup's JVM heap (-Xms/-Xmx), also requested from the cluster scheduler as resources.mem_mb. Increase for large reference genomes/BAM files; decrease for small ones to free up cluster resources.
Input BAM is selected dynamically: deduplicated BAM if deduplication is enabled, otherwise the sorted BAM. The rescaled BAM is sorted and indexed; the unsorted rescaled BAM is discarded.
Additionally: Qualimap bamqc produces an HTML QC report (mapping rate, coverage uniformity, GC content, insert size). Preseq estimates library complexity and extrapolates sequencing yield.
Default: 4096. Memory requested from the cluster scheduler for Qualimap. Increase for large reference genomes/BAM files; decrease for small ones to free up cluster resources.
REVEAL
TE & genomic feature abundance — maps to combined SCG + feature library for depth-normalised comparisons
Default: ONTurn off if you are not performing TE or genomic feature abundance analysis, or if the feature library and SCG library are not yet prepared. Requires both libraries placed in {species}/input/reveal_module/.
Default: conda. REVEAL is not yet on bioconda and is always side-loaded, so conda currently installs the newest tagged release; this only takes effect when the reveal conda environment is (re)created — see FAQ.md.
{species}/input/reveal_module/scg/. SCGs act as coverage normalisers for the REVEAL pipeline. Skipped automatically when a user-provided file is found or when no BUSCO lineage is configured for the species (set per species in the Species section above).
{species}/input/reference_module/ it is auto-detected, otherwise specify it explicitly.SCG selection parameters
BAM filtering
_fle) and single-copy gene sequences (suffixed _scg).
Unmapped reads are discarded immediately after conversion from SAM to BAM to reduce file sizes.
Multiple feature libraries per species are supported — each produces an independent set of results.
_scg) references with MAPQ below this value are removed after mapping. Feature library reads are not affected. (Default: 0)
_fle) references with MAPQ below this value are removed after mapping. SCG reads are not affected. Set to 0 (default) to disable.
Output selection
Plot settings
Coverage analysis (bam2so)
Normalisation (normalize-so)
Summary Processing
Consolidates all QC outputs into MultiQC reports per individual and per species
Default: ONGenerates the final MultiQC HTML reports. There is rarely a reason to turn this off — it is the primary deliverable of the pipeline. Only disable if you are running a partial test and do not need consolidated reports yet.
Produces two levels of MultiQC HTML reports:
- Per-individual — all QC and analytics for one individual across all references
- Per-species — all individuals aggregated for cross-sample comparison