Amplicon Suite Aggregator
Description
Aggregates results from AmpliconSuite-pipeline runs.
- Accepts compressed input files (
.tar.gz,.zip) of individual or grouped AmpliconSuite results, or plain directories. - Aggregates and packages results into a new
.tar.gzfile, along with an aggregated.csvand.htmlsummary. - The output
.tar.gzcan be directly uploaded to AmpliconRepository.org. - Supports batch sample renaming via a name map file.
- Can include auxiliary files alongside the upload; place them in a directory containing a file named
AUX_DIR. - Archive packaging is deterministic: unchanged member names, contents, and executable flags produce byte-identical archives within the same Python/zlib build. Archives don't keep file timestamps or owners (mtimes are 0); AmpliconRepository records when each project version was created. Sample keys in
run.jsonare numbered by final sample name, including after renaming.
Installation
Option 1 — pip
pip install AmpliconSuiteAggregator
Option 2 — Git clone
git clone https://github.com/AmpliconSuite/AmpliconSuiteAggregator.git
cd AmpliconSuiteAggregator
pip install -r requirements.txt
Dependencies
Python packages: pandas, requests
Tests
From a source checkout:
python -m venv .venv
source .venv/bin/activate
python -m pip install -r requirements-test.txt
python -m pytest tests/
Tests create synthetic inputs in pytest temporary directories. They require no
local sample archives, absolute data paths, network access, or external pipeline
tools. Fixture builders live in tests/fixtures/; local datasets and generated
outputs under tests/ remain ignored by Git.
The suite covers archive metadata and contents, CNVkit copy-number conversion, directory/tar/zip inputs, featureless-sample recovery, sample exclusion with overlapping names, and byte-identical reaggregation with and without renaming. Round-trip comparisons keep the project name and Python/zlib build fixed and apply renaming only to the original input. These synthetic cases do not cover every supported upstream tool or data layout.
Usage
python src/AmpliconSuiteAggregator.py -flist <input_list.txt> -o <project_name> [options]
input_list.txt is a plain text file with one input path per line (.tar.gz, .zip, or directory).
Aggregation options
| Flag | Description |
|---|---|
-flist FILE |
Text file listing input paths, one per line |
--files PATH [PATH ...] |
Input files or directories directly on the command line |
-o NAME |
Output prefix / project name (required) |
--name_map FILE |
Two-column file: col 1 = current sample name, col 2 = replacement name. Applies a deep rename throughout all output files and tables. |
--exclude_samples NAME [NAME ...] |
Sample names to leave out of the output entirely. Matched against the names the samples arrive under, i.e. before --name_map is applied. |
--no_cleanup |
Keep the temporary working directories after finishing (for debugging) |
-v, --version |
Print the version and exit |
Aggregation no longer uploads anything, and no longer runs AmpliconClassifier
for you — run AC first, then aggregate its output. The -u/-s/--upload_only
upload flags and the -c/--ref classifier flags were removed in 8.0.0.
Examples
Aggregate a set of results:
python src/AmpliconSuiteAggregator.py -flist input_list.txt -o MyProject
Rename samples on the way through:
python src/AmpliconSuiteAggregator.py -flist input_list.txt -o MyProject --name_map renames.tsv
Drop samples from a project you already aggregated:
python src/AmpliconSuiteAggregator.py --files MyProject.tar.gz -o MyProject_v2 \
--exclude_samples SampleA SampleB
An aggregated archive is itself valid input, so this is how you remove a sample
from an existing project: everything belonging to SampleA/SampleB is left
out — their directories under results/samples/, their rows in run.json,
aggregated_results.csv and every consolidated classification table, and their
per-amplicon files. A name matching no sample is reported as a warning rather
than failing the run.
Input files
For a breakdown of which per-sample files make up a classification project — which are essential, which are strongly recommended, and the naming patterns the Aggregator expects — see INPUT_FILES.md.
Authors
- Jens Luebeck (main contact)
- Thorin Tabor
- Edwin Huang
Issues
Bug reports and feature requests: GitHub Issues
Metadata
Release files for AmpliconSuiteAggregator 8.3.1
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 |
|---|---|---|---|---|
| ampliconsuiteaggregator-8.3.1.tar.gz | 54.2 kB | Without provenance | Details for ampliconsuiteaggregator-8.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ampliconsuiteaggregator-8.3.1-py3-none-any.whl | Python 3 | none | any | Details for ampliconsuiteaggregator-8.3.1-py3-none-any.whl |
Total release size: 108.1 kB
Release files / ampliconsuiteaggregator-8.3.1.tar.gz
| Download URL | ampliconsuiteaggregator-8.3.1.tar.gz |
|---|---|
| Size | 54.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4ef4d9704841acc2a249e5779c43930c4dcb9085364a0a125aeb05accc7000a1
|
|
BLAKE2b-256 checksum How to use checksums |
49e290a18fe4bbe31b5bbb32eae391cae0bd685d66bdf31f987a8253356f0e6e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.15
|
Release files / ampliconsuiteaggregator-8.3.1-py3-none-any.whl
| Download URL | ampliconsuiteaggregator-8.3.1-py3-none-any.whl |
|---|---|
| Size | 53.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
184d3a57cd6727044e9b5772ceda68ea812510556bb0a0e710d4a57ba0f720b2
|
|
BLAKE2b-256 checksum How to use checksums |
4f91646184946356437f5c183caad34b9a720970fe98f9d933564a5b467be8ec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.15
|
Security for AmpliconSuiteAggregator 8.3.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.