Skip to main content

A tool for modeling and optimization of anaerobic digestion process.

Project description

ADToolbox

Documentation PyPI version Binder

From raw amplicon reads to a calibrated anaerobic digestion model.

ADToolbox is developed in the Chan Lab at Colorado State University. It connects metagenomics evidence, curated reaction and feed databases, and dynamic ADM1 / e-ADM simulations into one reproducible Python and command-line workflow.

Anaerobic digestion models such as ADM1 lump the microbial community into a handful of guilds whose initial biomass you are expected to guess. ADToolbox replaces that guess with measurement: it takes 16S amplicon data, maps it through GTDB and a curated enzyme-to-reaction database, and produces the microbial COD allocation the model needs.

📖 Read the documentation

Install

pip install adtoolbox               # base install, Python 3.11+
pip install "adtoolbox[optimize]"   # + parameter-tuning backends
pip install "adtoolbox[dashboard]"  # + interactive Dash/Escher visualization

Or use the container, which bundles fastp, VSEARCH, MMseqs2, and the SRA Toolkit:

docker run --rm parsaghadermazi/adtoolbox:latest adtoolbox --help

See the installation guide for source installs, extras, external tools, and HPC notes.

Quick start

# 1. Download the reference databases
adtoolbox database download-all-databases --output-dir ./database

# 2. Turn amplicon samples into microbial COD allocations
adtoolbox metagenomics process \
  --input ./samples.tsv --input-type sra --assay amplicon \
  --output-dir ./process --sra-dir ./sra \
  --database-dir ./database --execute

# Use the direct functional route for shotgun reads
adtoolbox metagenomics process \
  --input ./shotgun_samples.tsv --input-type reads --assay shotgun \
  --output-dir ./process --database-dir ./database --execute

# 3. Simulate
adtoolbox adm e-adm --models-json reference_data/models.json --report csv

The full walkthrough is in the Quickstart.

Documentation map

Page Contents
Quickstart Install, databases, first simulation, first pipeline run.
Metagenomics Pipeline Sample tables, execution profiles, Slurm, output schemas.
ADM Models Input contracts, stoichiometry, rate laws, inhibition terms.
Parameter Tuning Fitting kinetic parameters to experimental data.
CLI Every command and option.
Python API Generated reference for all modules.

Try it without installing

Binder

The example notebooks run on Binder. Note that Escher map visualization is not available there.

Building the docs locally

pip install -r docs/requirements.txt
mkdocs serve

Contact

Developed in the Chan Lab at Colorado State University.

Parsa Ghadermazi parsa.ghadermazi@colostate.edu
Ethan Rimelman rimelman@colostate.edu
Siu Hung Joshua Chan (PI) joshua.chan@colostate.edu

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

adtoolbox-1.1.15.tar.gz (110.1 kB view details)

Uploaded Source

Built Distribution

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

adtoolbox-1.1.15-py3-none-any.whl (113.3 kB view details)

Uploaded Python 3

File details

Details for the file adtoolbox-1.1.15.tar.gz.

File metadata

  • Download URL: adtoolbox-1.1.15.tar.gz
  • Upload date:
  • Size: 110.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.4 CPython/3.14.0 Darwin/24.5.0

File hashes

Hashes for adtoolbox-1.1.15.tar.gz
Algorithm Hash digest
SHA256 620b636eb94a061960edcc8e45cb84d06e0c40ffaf7047f8d0973528cd2331d4
MD5 f7411edd15a4a88396b1ca80cd14b8c8
BLAKE2b-256 1b6dc68e879c59774a5c56256c7e5df9ede65fcb7113e1804ab775ffe405e7d5

See more details on using hashes here.

File details

Details for the file adtoolbox-1.1.15-py3-none-any.whl.

File metadata

  • Download URL: adtoolbox-1.1.15-py3-none-any.whl
  • Upload date:
  • Size: 113.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.4 CPython/3.14.0 Darwin/24.5.0

File hashes

Hashes for adtoolbox-1.1.15-py3-none-any.whl
Algorithm Hash digest
SHA256 da44c6c6c528d0947d507d9826382dbff3f1a455fe4c8c5451d5d21d1d8e684d
MD5 4c0fe65766196dbd35c6ea25ef10effc
BLAKE2b-256 94a01486bb7156a0383576facac1b2f0e41452cb588337f19bd2f84c668523c1

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