Skip to main content

Aggregator tool for multiple Amplicon Architect outputs

Project description

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.gz file, along with an aggregated .csv and .html summary.
  • The output .tar.gz can 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.
-c {Yes,No} Re-run Amplicon Classifier on inputs (Yes/No)
--ref GENOME Reference genome: hg19, GRCh37, GRCh38, GRCh38_viral, or mm10

AmpliconRepository upload options

Flag Description
-u EMAIL AmpliconRepository username (email). If provided, triggers upload after aggregation.
--upload_only {Yes,No} Skip aggregation and upload an existing .tar.gz directly
-s {prod,dev} Target server (prod for most users)

Examples

Aggregate a set of results:

python src/AmpliconSuiteAggregator.py -flist input_list.txt -o MyProject

Aggregate and upload to AmpliconRepository:

python src/AmpliconSuiteAggregator.py -flist input_list.txt -o MyProject -u you@email.com -s prod

Upload an already-aggregated file without re-aggregating:

python src/AmpliconSuiteAggregator.py --files MyProject.tar.gz -o MyProject -u you@email.com --upload_only Yes -s prod

Authors

Issues

Bug reports and feature requests: GitHub Issues

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ampliconsuiteaggregator-6.0.0.tar.gz (36.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ampliconsuiteaggregator-6.0.0-py3-none-any.whl (40.7 kB view details)

Uploaded Python 3

File details

Details for the file ampliconsuiteaggregator-6.0.0.tar.gz.

File metadata

  • Download URL: ampliconsuiteaggregator-6.0.0.tar.gz
  • Upload date:
  • Size: 36.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.4

File hashes

Hashes for ampliconsuiteaggregator-6.0.0.tar.gz
Algorithm Hash digest
SHA256 79153acfeba2c5038828f9648f6f5c00d94808d3f1585b39a9fcba9e6dd7305d
MD5 f7cde0886402261dbdc42d3e5d672749
BLAKE2b-256 640bf4ab72867506c1a91959f37d2f85e97e6c09bd12a362ad3c46f929ad7e1d

See more details on using hashes here.

File details

Details for the file ampliconsuiteaggregator-6.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ampliconsuiteaggregator-6.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 db4092890a719a333999ce35eeca9e50e99f27238a5efe3d4a50066bf0d6ffc5
MD5 968bb284c0c893464d6a20cae0c32cf2
BLAKE2b-256 f88b68cbe62baec014024d3ecd12696bf73875aa7fd443d99e142f64661e1f85

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page