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.
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
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.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 | |
|---|---|---|---|
| ampliconsuiteaggregator-8.3.0.tar.gz | 49.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ampliconsuiteaggregator-8.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 101.8 kB
Release files / ampliconsuiteaggregator-8.3.0.tar.gz
| Download URL | ampliconsuiteaggregator-8.3.0.tar.gz |
|---|---|
| Size | 49.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
09c77ed95ec4c37bd4d113a298f43220fecc50a38dae65e3d7e406a57dd2eb4b
|
|
BLAKE2b-256 checksum How to use checksums |
51fb5fe4abc8213758f8f5309664005452d9b2fe55530a58b0ed6705d2b22d8f
|
| 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.0-py3-none-any.whl
| Download URL | ampliconsuiteaggregator-8.3.0-py3-none-any.whl |
|---|---|
| Size | 52.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9a1e66f9b9abbe0df0b66d8125e2c500c1842b41c87e32096ec5af48a186cef6
|
|
BLAKE2b-256 checksum How to use checksums |
f5ebd4242cf8a18f719a213295d7aab4352a975d9124b8addf208ece410e9109
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.15
|