Skip to main content

Virome-Suite

CI & Coverage Gate PyPI - viro-drift PyPI - viral-genome-tools PyPI - quasispecies-profiler PyPI - viralbio-reporting Python 3.10+ License: MIT

An easy-to-use, modular Python toolkit that turns raw sequencing reads across multiple samples and replicates into complete, curated circular and linear viral genomes, filtered intra-host variants, ready-to-submit GenBank files, and co-infection networks.

Developed at the Molecular Plant Pathology Lab, ICAR-Indian Sugarcane Research Institute.

Virome-Suite End-to-End Architecture


What Virome-Suite Solves — At a Glance

Standard assembly and variant workflows treat all contigs as flat lines from isolated libraries. Virome-Suite is split into 5 standalone pip-installable tools (plus 1 master cohort runner) that automatically fix the five most common data bottlenecks in viral metagenomics and metatranscriptomics:

Five Problems Solved by Virome-Suite

Tool (pip Package) Plain-Language Role What Problem It Fixes Detailed Guide
viro-drift Hidden-Virus Magnet Rescues mutated/divergent viruses (up to 35% diverged) buried in 95%–99% host plant/tissue reads using conserved 6-frame enzyme baits (RdRp, RT, Rep). Manual
viral-genome-tools Circle Trimmer & Router Trims stretched $1.1\times\text{--}3.0\times$ circular concatemers (such as Caulimoviridae, Geminiviridae, Circoviridae, Nanoviridae, or any novel circular virus) to exact 1.0x monomers, sets Position 1, protects linear terminal-repeat (TIR) viruses, and flags host-integrated EVEs. Manual
quasispecies-profiler Lab Smudge Filter Compares sequencing replicates (Rep1, Rep2, Rep3, ...) with a Beta-Binomial model to reject single-replicate PCR copy jackpots while calling true low-frequency mutations ($\ge 0.5%$). Manual
viralbio-reporting Seam-Reader & Submitter Virtually stitches circular genomes (Seq + Seq) so genes crossing the closing seam are never chopped in half, outputting validated 5-column NCBI GenBank .tbl/.fsa files. Manual
viro-networks Co-Infection Mapper Corrects relative-percentage distortion across multi-sample cohorts ($N \ge 5$) to map stable co-infections, fit Sloan neutral drift curves, and rank hub viruses. Manual

Quick Start in 3 Steps

Step 1 — Install

# Install the full suite (or install any individual package above standalone)
pip install virome-suite

# Check your Python environment and optional external tools
virome-suite check-env
Optional: Install external bioinformatics binaries via Conda (Bowtie2, SPAdes, DIAMOND, table2asn)

All 6 packages work out-of-the-box in pure Python mode. To enable external high-throughput aligners/assemblers:

git clone https://github.com/molecularplantpathology/Virome-Suite.git
cd Virome-Suite
conda env create -f environment.yml
conda activate virome_suite
virome-suite check-env

Step 2 — Run a Multi-Sample & Multi-Replicate Study Cohort (run-cohort)

Real experiments usually involve multiple samples, each sequenced across replicates. List your files in a simple tab-separated study_samplesheet.tsv:

sample_id	replicate_id	r1_path	r2_path	group
Sample_01	Rep1	fastq/S01_rep1_R1.fq	fastq/S01_rep1_R2.fq	Symptomatic
Sample_01	Rep2	fastq/S01_rep2_R1.fq	fastq/S01_rep2_R2.fq	Symptomatic
Sample_01	Rep3	fastq/S01_rep3_R1.fq	fastq/S01_rep3_R2.fq	Symptomatic
Sample_02	Rep1	fastq/S02_rep1_R1.fq	fastq/S02_rep1_R2.fq	Symptomatic
Sample_03	Rep1	fastq/S03_rep1_R1.fq	fastq/S03_rep1_R2.fq	Asymptomatic
...

Then run the entire cohort with a single command:

virome-suite run-cohort \
  --samplesheet study_samplesheet.tsv \
  --seeds tests/fixtures/core_viral_seeds.faa \
  --host host_reference.fasta \
  --replicate-type technical \
  --output cohort_results/

run-cohort automatically assembles/curates each sample, calls replicate-verified mutations wherever $M \ge 2$ replicates exist, builds the cross-sample abundance table (cohort_abundance_counts.tsv), and infers the cohort co-infection network when $N \ge 5$ samples.

Click to view the generated cohort output folder structure & CLI flags
cohort_results/
├── cohort_summary.json                        # Master execution report across all N samples
├── cohort_provenance.json                     # SHA-256 hash-chained audit trail
├── samples/<Sample_ID>/
│   ├── 01_viro_drift/                         # Assembled candidate contigs
│   ├── 02_genome_curation/                    # Exact 1.0x monomers & E_junction TSV report
│   ├── 03_annotation_genbank/                 # Seam-spanning NCBI .tbl, .fsa & validation JSON
│   └── 04_quasispecies_variants/              # Multi-replicate allele counts & filtered iSNVs
├── 04_cohort_matrices/
│   ├── cohort_viral_catalog.fasta             # Non-redundant curated viral catalog
│   ├── cohort_abundance_counts.tsv            # Cross-sample count matrix (N samples x P taxa)
│   └── cohort_metadata.tsv                    # Sample groups & replicate counts
└── 05_cohort_ecological_networks/
    ├── consensus_edges.tsv                    # Bootstrap-stabilized co-occurrence edges
    ├── sloan_neutral_fit.tsv                  # Sloan Neutral Model fit & 95% Wilson bands
    └── topological_hub_candidates.tsv         # Degree & Brandes betweenness hub rankings

Step 3 — Try a 30-Second Demo Right Now (Included Test Fixtures)

After cloning the repository, you can test the pipeline immediately using the built-in multi-virus fixtures in tests/fixtures/:

virome-suite run \
  --r1 tests/fixtures/concatemer_test_panel.fasta \
  --replicates tests/fixtures/replicate_variants_fixture.tsv \
  --counts tests/fixtures/virome_cohort_counts.tsv \
  --output demo_output/
Click to expand standalone commands for each of the 5 individual tools & exit codes
# 1. Rescue divergent viral reads & micro-assemble
viro-drift run --r1 R1.fq --r2 R2.fq --seeds tests/fixtures/core_viral_seeds.faa -o out_drift/

# 2. Trim circular concatemers to 1.0x, rotate to Position 1, & score circularity
viral-genome-tools curate --assembly tests/fixtures/concatemer_test_panel.fasta -o out_curated/

# 3. Call replicate-verified intra-host variants (filtering PCR jackpots)
quasispecies-profiler call --manifest tests/fixtures/replicate_variants_fixture.tsv -o out_variants/

# 4. Annotate seam-crossing circular/linear ORFs & build NCBI GenBank submission files
viralbio-reporting annotate --fasta tests/fixtures/proven_circular_monomers.fasta --topology circular -o out_ncbi/

# 5. Infer CLR consensus co-infection network & Sloan neutral drift curve
viro-networks infer --counts tests/fixtures/virome_cohort_counts.tsv -o out_network/

Standardized CLI Exit Codes (Snakemake / Nextflow Ready):

  • 0: Success (including clean negative controls with zero viral candidates)
  • 2: Invalid input path or malformed FASTA/FASTQ/TSV schema
  • 3: Optional external binary (diamond, hmmsearch) requested when not in PATH
  • 4: Safe statistical abstention (e.g., cohort size $N < 5$ samples in viro-networks)

Validated Performance & Cohort Outputs

Every module is tested by 56 automated unit & adversarial edge-case tests (93.37% line coverage) on Ubuntu and Windows, and benchmarked across pre-registered stress tests (benchmarks/run_benchmarks.py):

Empirical Benchmark Validation Across All 5 Modules

Cohort Neutral Drift and Consensus Network Output

Benchmark What Was Tested Virome-Suite Result Standard Baseline Result
BM-1 (viro-drift) Recovering 25%–35% mutated viral loci in 98% host DNA 96.3% recovery (0.0% host decoys) 32.1% at 25% div / 0.0% at 35% div
BM-2 (viral-genome-tools) 1.15x–3.0x concatemers with tail indels + 50 linear TIR controls 100% exact 1.0x (0% TIR false-circ, AUROC = 1.00) 0% exact under indels (88% TIR false-circ)
BM-3 (quasispecies-profiler) 3-replicate variant calling with PCR jackpots up to 50,000x depth 0.0% empirical FDR (100% recall at 50,000x) 50.0%–60.0% false-discovery rate
BM-4 (viralbio-reporting) Intact proteome across 30 random 360° circular cut points 100.0% intact proteome (100% valid .tbl) 26.7% intact proteome (flat-file 1x caller)
BM-5 (viro-networks) Recovering true co-occurrences under severe library-size closure Mean F1 = 0.773 Mean F1 = 0.230 (relative-abundance Pearson)
BM-6 (virome-suite) End-to-end 6-sample, 9-replicate mixed circular/linear/TIR cohort 3.05 s runtime, 3.54 MB peak RAM —
Click to reproduce all benchmarks & regenerate figures locally
# Run the full 56-test unit & edge-case suite
python -m pytest tests/unit -v

# Re-execute all 6 Gate 3 benchmarks (writes JSON/TSV scorecards to benchmarks/results/)
python benchmarks/run_benchmarks.py

# Regenerate all 4 vector SVG figures in docs/assets/
python benchmarks/generate_figures.py

Citation & Maintainer

If you use Virome-Suite or any of its standalone packages in your research, please cite CITATION.cff:

Metadata

Release files for virome-suite 0.1.0

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

Source distribution (sdist)

Source distribution for virome-suite 0.1.0
File Size Uploaded Provenance Actions
virome_suite-0.1.0.tar.gz 30.2 kB Without provenance Details for virome_suite-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for virome-suite 0.1.0
File Interpreter ABI Platform Actions
virome_suite-0.1.0-py3-none-any.whl Python 3 none any Details for virome_suite-0.1.0-py3-none-any.whl

Total release size: 58.1 kB

Release files / virome_suite-0.1.0.tar.gz

Download URL virome_suite-0.1.0.tar.gz
Size 30.2 kB
Tags Source
SHA-256 checksum
How to use checksums
76434bbaaf54781f7a48dc757b8e25d23ce5f73186ddec07429f8b0f030d0a9a
BLAKE2b-256 checksum
How to use checksums
f14ed8691997a3f87eced29b7356cd79c4cfa25e697633429a3fe9b39592d1fd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Release files / virome_suite-0.1.0-py3-none-any.whl

Download URL virome_suite-0.1.0-py3-none-any.whl
Size 27.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
37d71656570a74beda476ecb74ee81175e757ea0f1839b5af97a7eeb26727406
BLAKE2b-256 checksum
How to use checksums
949c22cbb4fb07d070a182819a75a1de5c4dfaa74572edf069cd4388ef85a151
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Security for virome-suite 0.1.0

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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