Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

MetaQuest

MetaQuest is a research-use command-line pipeline for short-read metagenomic FASTQ analysis. The 2.0.0b2 research beta provides a maintained workflow for profiling, assembly, annotation, abundance and reporting. It does not make clinical or pathogen-risk claims.

Screening and restored comparison are included in the beta. Screening covers 16 human-associated bacterial species targets and curated, organism-dependent AMRFinderPlus protein families. Formal two-group comparisons are exploratory. The older 2.0.0a1 package does not contain these additions. Beta 2 adds CLI and recovery fixes and records the first full development benchmark.

Current capabilities

  • full FASTQ structural validation and sampled quality warnings
  • fastp adapter and quality preprocessing with retained-read QC
  • synchronized paired-read identifier and count validation
  • Kraken2 taxonomic classification
  • Bracken abundance re-estimation
  • optional taxonomy-only execution
  • MEGAHIT metagenomic assembly
  • Pyrodigal metagenomic gene prediction
  • eggNOG-mapper orthology-based functional annotation
  • per-gene annotations and aggregated COG, KO, EC, and GO counts
  • read-mapping gene abundance (BBMap, TPM) with TPM-weighted COG, KO, EC, and GO functional abundance
  • descriptive text, JSON, offline HTML, and publication figure reporting
  • explicit classified/unclassified denominators and reproducibility metadata
  • versioned taxonomy and eggNOG database installation
  • optional species-target and AMRFinderPlus protein evidence screening
  • per-stage HTML, JSON and TSV reports with explicit skipped/not-run states
  • aligned multi-sample profiles and exploratory comparisons of two independent groups

MetaQuest uses fastp for read trimming. It does not currently remove host reads, diagnose infection, establish resistance phenotypes, or recommend treatment. Screening reports curated sequence evidence with database provenance; its biological sensitivity and specificity require independent validation.

Pipeline

FASTQ
  ├── validation
  ├── fastp preprocessing
  ├── Kraken2 → Bracken
  ├── MEGAHIT
  ├── Pyrodigal
  ├── eggNOG-mapper → COG / KO / EC / GO
  ├── BBMap read mapping → gene TPM → functional abundance
  ├── optional taxon targets + AMRFinderPlus protein evidence
  └── per-stage + consolidated reporting → HTML + figures + plotted-data TSV

The maintained pipeline currently runs directly in Python. Migration to Snakemake and optional Bowtie2 host filtering remain planned.

Quick start

Install the exact Python distribution from PyPI:

python -m pip install --upgrade --pre 'metaquest-bio==2.0.0b2'
metaquest --version

The distribution is named metaquest-bio; the installed Python package and command remain metaquest. The PyPI distribution does not bundle Kraken2, Bracken, MEGAHIT, DIAMOND, or eggNOG-mapper. For the complete runtime, clone the repository and create its Conda environment before installing the package:

git clone --branch v2.0.0b2 https://github.com/dpatel511/metaquest.git
cd metaquest
conda env create -f environment/environment.yml
conda activate metaquest
python -m pip install --no-deps 'metaquest-bio==2.0.0b2'

For optional screening, also install environment/screening.yml separately and append its executables to PATH using the installation guide. It isolates AMRFinderPlus's native libraries from eggNOG's older DIAMOND stack.

Inspect and install the taxonomy database:

metaquest databases --list
metaquest databases --database taxonomy
metaquest databases --database functional
metaquest check

By default, MetaQuest installs reference data in ./databases. Use --db-dir or METAQUEST_DB_DIR only when you intentionally want another location.

Run taxonomic profiling:

metaquest run \
  --paired sample_R1.fastq.gz sample_R2.fastq.gz \
  --output results/sample

Use --skip-functional to skip eggNOG annotation while retaining gene prediction and gene abundance, --skip-abundance to skip read mapping and gene abundance, or --taxonomy-only to skip assembly, gene prediction, functional annotation, and abundance. The former --skip-annotation spelling remains as a deprecated alias for --taxonomy-only.

Each fresh run requires a new or empty output directory. Use --resume only to reuse a matching MetaQuest run, or --force to move an existing output directory to a timestamped backup before starting fresh.

Commands

metaquest check       # verify tools and databases
metaquest validate    # validate FASTQ input
metaquest run         # run the analysis pipeline
metaquest compare     # align profiles; optionally test two independent groups
metaquest databases   # inspect or install reference data
metaquest init-config # create a configuration file

The previous analyze and setup-db names remain available as aliases for backward compatibility.

Global output controls may appear before or after the command:

metaquest run --verbose --single reads.fastq.gz --output results/
metaquest databases --no-color --list
metaquest --quiet check

For systems that cannot load the Kraken2 database fully into RAM, enable Kraken2 memory mapping with --low-memory:

metaquest run --low-memory --single reads.fastq.gz --output results/

Currently this flag only adds Kraken2's --memory-mapping option. It does not change resource settings for Bracken, MEGAHIT, or gene prediction.

Database storage

Reference databases are not stored in Git. From the repository root, install them directly into the default databases/ directory:

metaquest databases --database taxonomy
metaquest databases --database functional
metaquest check

The database path resolution order is:

  1. --db-dir
  2. METAQUEST_DB_DIR
  3. databases.base_dir in YAML
  4. ./databases

Documentation

Validation status

The complete ERR2984773 development mock reproduced direct Kraken2, Bracken and Pyrodigal outputs. At the frozen 0.1% detection threshold, all eight expected bacterial members were detected alongside five unexpected species calls: 8/13 (61.54%) detection precision, below the proposed 90% project gate. This is not per-read classification accuracy. The Standard-8 database excludes fungi.

The benchmark also retains unresolved assembly/reference disagreements and conflicting elapsed times. It skipped functional annotation and screening. See the full benchmark results and protocol before interpreting these results.

MetaQuest remains beta software. Biological benchmarking, comparative-method validation, browser/data-contract review and independent user acceptance remain open in the development checkpoints. Larger database comparisons are deferred; passing software tests does not close these gates. Older outputs lacking current database identities require a new run instead of strict --resume; see recovery.

License

MetaQuest is distributed under the GNU General Public License v3.0 or later. Copyright (c) 2026 Dev Patel. External programs and reference databases are not included in the Python distribution and remain subject to their own terms. See Third-party licenses for the maintained dependency and provenance inventory.

Metadata

Release files for metaquest-bio 2.0.0b2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for metaquest-bio 2.0.0b2
File Size Uploaded Provenance Actions
metaquest_bio-2.0.0b2.tar.gz 177.6 kB With provenance Details for metaquest_bio-2.0.0b2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for metaquest-bio 2.0.0b2
File Interpreter ABI Platform Actions
metaquest_bio-2.0.0b2-py3-none-any.whl Python 3 none any Details for metaquest_bio-2.0.0b2-py3-none-any.whl

Total release size: 293.1 kB

Release files / metaquest_bio-2.0.0b2.tar.gz

Download URL metaquest_bio-2.0.0b2.tar.gz
Size 177.6 kB
Tags Source
SHA-256 checksum
How to use checksums
2b0c6504a631b505db3f68d7258a836f5ccc16faa93deed6022ea2fcd29ab29d
BLAKE2b-256 checksum
How to use checksums
c9e5a100608a67fbee0a66df19df0895fd5f45418552a8bb44890a324e13f1b9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.

Transparency log

Release files / metaquest_bio-2.0.0b2-py3-none-any.whl

Download URL metaquest_bio-2.0.0b2-py3-none-any.whl
Size 115.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d3a01af35abfde09d8d0e6ed1d37ac31d05aefc550f5f79bbf6eaf309c30407b
BLAKE2b-256 checksum
How to use checksums
aebc14e547058eb67bece85c07dffe865068c5f403876ba6335bf0bf2fde959c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.

Transparency log

Security for metaquest-bio 2.0.0b2

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for metaquest_bio-2.0.0b2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.

Transparency log

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page