virome-suite 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- virome_suite-0.1.0/LICENSE +21 -0
- virome_suite-0.1.0/PKG-INFO +231 -0
- virome_suite-0.1.0/README.md +205 -0
- virome_suite-0.1.0/orchestrator/__init__.py +3 -0
- virome_suite-0.1.0/orchestrator/audit_inventory.py +467 -0
- virome_suite-0.1.0/orchestrator/branching.py +156 -0
- virome_suite-0.1.0/orchestrator/cli.py +176 -0
- virome_suite-0.1.0/orchestrator/preflight.py +112 -0
- virome_suite-0.1.0/orchestrator/runner.py +475 -0
- virome_suite-0.1.0/orchestrator/schemas.py +232 -0
- virome_suite-0.1.0/pyproject.toml +52 -0
- virome_suite-0.1.0/setup.cfg +4 -0
- virome_suite-0.1.0/virome_suite.egg-info/PKG-INFO +231 -0
- virome_suite-0.1.0/virome_suite.egg-info/SOURCES.txt +16 -0
- virome_suite-0.1.0/virome_suite.egg-info/dependency_links.txt +1 -0
- virome_suite-0.1.0/virome_suite.egg-info/entry_points.txt +2 -0
- virome_suite-0.1.0/virome_suite.egg-info/requires.txt +10 -0
- virome_suite-0.1.0/virome_suite.egg-info/top_level.txt +1 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Molecular Plant Pathology Lab, ICAR-Indian Sugarcane Research Institute
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: virome-suite
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Integrated Python Ecosystem for Divergent Viral Discovery, Circular Landmark Curation, Replicate Quasispecies Profiling, Seam-Aware Annotation, and Co-Occurrence Networks
|
|
5
|
+
Author-email: "Molecular Plant Pathology Lab, ICAR-Indian Sugarcane Research Institute" <shwetabac@gmail.com>
|
|
6
|
+
Maintainer-email: "Dr. Shweta Singh" <shwetabac@gmail.com>
|
|
7
|
+
License: MIT
|
|
8
|
+
Project-URL: Homepage, https://github.com/molecularplantpathology/Virome-Suite
|
|
9
|
+
Project-URL: Repository, https://github.com/molecularplantpathology/Virome-Suite.git
|
|
10
|
+
Project-URL: Issues, https://github.com/molecularplantpathology/Virome-Suite/issues
|
|
11
|
+
Keywords: virome,metagenomics,plant-viruses,circular-genome,quasispecies,bioinformatics
|
|
12
|
+
Requires-Python: >=3.10
|
|
13
|
+
Description-Content-Type: text/markdown
|
|
14
|
+
License-File: LICENSE
|
|
15
|
+
Requires-Dist: numpy>=1.24.0
|
|
16
|
+
Requires-Dist: scipy>=1.10.0
|
|
17
|
+
Requires-Dist: pandas>=2.0.0
|
|
18
|
+
Requires-Dist: biopython>=1.81
|
|
19
|
+
Requires-Dist: PyYAML>=6.0
|
|
20
|
+
Requires-Dist: viro-drift>=0.1.0
|
|
21
|
+
Requires-Dist: viral-genome-tools>=0.1.0
|
|
22
|
+
Requires-Dist: quasispecies-profiler>=0.1.0
|
|
23
|
+
Requires-Dist: viralbio-reporting>=0.1.0
|
|
24
|
+
Requires-Dist: viro-networks>=0.1.0
|
|
25
|
+
Dynamic: license-file
|
|
26
|
+
|
|
27
|
+
# Virome-Suite
|
|
28
|
+
|
|
29
|
+
[](https://github.com/molecularplantpathology/Virome-Suite/actions/workflows/ci.yml)
|
|
30
|
+
[](https://pypi.org/project/viro-drift/)
|
|
31
|
+
[](https://pypi.org/project/viral-genome-tools/)
|
|
32
|
+
[](https://pypi.org/project/quasispecies-profiler/)
|
|
33
|
+
[](https://pypi.org/project/viralbio-reporting/)
|
|
34
|
+
[](https://www.python.org/)
|
|
35
|
+
[](LICENSE)
|
|
36
|
+
|
|
37
|
+
**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.**
|
|
38
|
+
|
|
39
|
+
Developed at the **Molecular Plant Pathology Lab, ICAR-Indian Sugarcane Research Institute**.
|
|
40
|
+
|
|
41
|
+
<p align="center">
|
|
42
|
+
<img src="docs/assets/fig1_pipeline_overview.svg" alt="Virome-Suite End-to-End Architecture" width="100%"/>
|
|
43
|
+
</p>
|
|
44
|
+
|
|
45
|
+
---
|
|
46
|
+
|
|
47
|
+
## What Virome-Suite Solves — At a Glance
|
|
48
|
+
|
|
49
|
+
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:
|
|
50
|
+
|
|
51
|
+
<p align="center">
|
|
52
|
+
<img src="docs/assets/fig2_five_problems_solved.svg" alt="Five Problems Solved by Virome-Suite" width="100%"/>
|
|
53
|
+
</p>
|
|
54
|
+
|
|
55
|
+
| Tool (`pip` Package) | Plain-Language Role | What Problem It Fixes | Detailed Guide |
|
|
56
|
+
| :--- | :--- | :--- | :---: |
|
|
57
|
+
| **[`viro-drift`](https://pypi.org/project/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](packages/viro_drift/README.md) |
|
|
58
|
+
| **[`viral-genome-tools`](https://pypi.org/project/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](packages/viral_genome_tools/README.md) |
|
|
59
|
+
| **[`quasispecies-profiler`](https://pypi.org/project/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](packages/quasispecies_profiler/README.md) |
|
|
60
|
+
| **[`viralbio-reporting`](https://pypi.org/project/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](packages/viralbio_reporting/README.md) |
|
|
61
|
+
| **[`viro-networks`](https://pypi.org/project/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](packages/viro_networks/README.md) |
|
|
62
|
+
|
|
63
|
+
---
|
|
64
|
+
|
|
65
|
+
## Quick Start in 3 Steps
|
|
66
|
+
|
|
67
|
+
### Step 1 — Install
|
|
68
|
+
|
|
69
|
+
```bash
|
|
70
|
+
# Install the full suite (or install any individual package above standalone)
|
|
71
|
+
pip install virome-suite
|
|
72
|
+
|
|
73
|
+
# Check your Python environment and optional external tools
|
|
74
|
+
virome-suite check-env
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
<details>
|
|
78
|
+
<summary><b>Optional: Install external bioinformatics binaries via Conda (Bowtie2, SPAdes, DIAMOND, table2asn)</b></summary>
|
|
79
|
+
|
|
80
|
+
All 6 packages work out-of-the-box in pure Python mode. To enable external high-throughput aligners/assemblers:
|
|
81
|
+
|
|
82
|
+
```bash
|
|
83
|
+
git clone https://github.com/molecularplantpathology/Virome-Suite.git
|
|
84
|
+
cd Virome-Suite
|
|
85
|
+
conda env create -f environment.yml
|
|
86
|
+
conda activate virome_suite
|
|
87
|
+
virome-suite check-env
|
|
88
|
+
```
|
|
89
|
+
</details>
|
|
90
|
+
|
|
91
|
+
---
|
|
92
|
+
|
|
93
|
+
### Step 2 — Run a Multi-Sample & Multi-Replicate Study Cohort (`run-cohort`)
|
|
94
|
+
|
|
95
|
+
Real experiments usually involve **multiple samples**, each sequenced across **replicates**. List your files in a simple tab-separated `study_samplesheet.tsv`:
|
|
96
|
+
|
|
97
|
+
```tsv
|
|
98
|
+
sample_id replicate_id r1_path r2_path group
|
|
99
|
+
Sample_01 Rep1 fastq/S01_rep1_R1.fq fastq/S01_rep1_R2.fq Symptomatic
|
|
100
|
+
Sample_01 Rep2 fastq/S01_rep2_R1.fq fastq/S01_rep2_R2.fq Symptomatic
|
|
101
|
+
Sample_01 Rep3 fastq/S01_rep3_R1.fq fastq/S01_rep3_R2.fq Symptomatic
|
|
102
|
+
Sample_02 Rep1 fastq/S02_rep1_R1.fq fastq/S02_rep1_R2.fq Symptomatic
|
|
103
|
+
Sample_03 Rep1 fastq/S03_rep1_R1.fq fastq/S03_rep1_R2.fq Asymptomatic
|
|
104
|
+
...
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
Then run the entire cohort with a single command:
|
|
108
|
+
|
|
109
|
+
```bash
|
|
110
|
+
virome-suite run-cohort \
|
|
111
|
+
--samplesheet study_samplesheet.tsv \
|
|
112
|
+
--seeds tests/fixtures/core_viral_seeds.faa \
|
|
113
|
+
--host host_reference.fasta \
|
|
114
|
+
--replicate-type technical \
|
|
115
|
+
--output cohort_results/
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
`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.
|
|
119
|
+
|
|
120
|
+
<details>
|
|
121
|
+
<summary><b>Click to view the generated cohort output folder structure & CLI flags</b></summary>
|
|
122
|
+
|
|
123
|
+
```text
|
|
124
|
+
cohort_results/
|
|
125
|
+
├── cohort_summary.json # Master execution report across all N samples
|
|
126
|
+
├── cohort_provenance.json # SHA-256 hash-chained audit trail
|
|
127
|
+
├── samples/<Sample_ID>/
|
|
128
|
+
│ ├── 01_viro_drift/ # Assembled candidate contigs
|
|
129
|
+
│ ├── 02_genome_curation/ # Exact 1.0x monomers & E_junction TSV report
|
|
130
|
+
│ ├── 03_annotation_genbank/ # Seam-spanning NCBI .tbl, .fsa & validation JSON
|
|
131
|
+
│ └── 04_quasispecies_variants/ # Multi-replicate allele counts & filtered iSNVs
|
|
132
|
+
├── 04_cohort_matrices/
|
|
133
|
+
│ ├── cohort_viral_catalog.fasta # Non-redundant curated viral catalog
|
|
134
|
+
│ ├── cohort_abundance_counts.tsv # Cross-sample count matrix (N samples x P taxa)
|
|
135
|
+
│ └── cohort_metadata.tsv # Sample groups & replicate counts
|
|
136
|
+
└── 05_cohort_ecological_networks/
|
|
137
|
+
├── consensus_edges.tsv # Bootstrap-stabilized co-occurrence edges
|
|
138
|
+
├── sloan_neutral_fit.tsv # Sloan Neutral Model fit & 95% Wilson bands
|
|
139
|
+
└── topological_hub_candidates.tsv # Degree & Brandes betweenness hub rankings
|
|
140
|
+
```
|
|
141
|
+
</details>
|
|
142
|
+
|
|
143
|
+
---
|
|
144
|
+
|
|
145
|
+
### Step 3 — Try a 30-Second Demo Right Now (Included Test Fixtures)
|
|
146
|
+
|
|
147
|
+
After cloning the repository, you can test the pipeline immediately using the built-in multi-virus fixtures in [`tests/fixtures/`](tests/fixtures/):
|
|
148
|
+
|
|
149
|
+
```bash
|
|
150
|
+
virome-suite run \
|
|
151
|
+
--r1 tests/fixtures/concatemer_test_panel.fasta \
|
|
152
|
+
--replicates tests/fixtures/replicate_variants_fixture.tsv \
|
|
153
|
+
--counts tests/fixtures/virome_cohort_counts.tsv \
|
|
154
|
+
--output demo_output/
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
<details>
|
|
158
|
+
<summary><b>Click to expand standalone commands for each of the 5 individual tools & exit codes</b></summary>
|
|
159
|
+
|
|
160
|
+
```bash
|
|
161
|
+
# 1. Rescue divergent viral reads & micro-assemble
|
|
162
|
+
viro-drift run --r1 R1.fq --r2 R2.fq --seeds tests/fixtures/core_viral_seeds.faa -o out_drift/
|
|
163
|
+
|
|
164
|
+
# 2. Trim circular concatemers to 1.0x, rotate to Position 1, & score circularity
|
|
165
|
+
viral-genome-tools curate --assembly tests/fixtures/concatemer_test_panel.fasta -o out_curated/
|
|
166
|
+
|
|
167
|
+
# 3. Call replicate-verified intra-host variants (filtering PCR jackpots)
|
|
168
|
+
quasispecies-profiler call --manifest tests/fixtures/replicate_variants_fixture.tsv -o out_variants/
|
|
169
|
+
|
|
170
|
+
# 4. Annotate seam-crossing circular/linear ORFs & build NCBI GenBank submission files
|
|
171
|
+
viralbio-reporting annotate --fasta tests/fixtures/proven_circular_monomers.fasta --topology circular -o out_ncbi/
|
|
172
|
+
|
|
173
|
+
# 5. Infer CLR consensus co-infection network & Sloan neutral drift curve
|
|
174
|
+
viro-networks infer --counts tests/fixtures/virome_cohort_counts.tsv -o out_network/
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
**Standardized CLI Exit Codes (Snakemake / Nextflow Ready):**
|
|
178
|
+
* `0`: Success (including clean negative controls with zero viral candidates)
|
|
179
|
+
* `2`: Invalid input path or malformed FASTA/FASTQ/TSV schema
|
|
180
|
+
* `3`: Optional external binary (`diamond`, `hmmsearch`) requested when not in `PATH`
|
|
181
|
+
* `4`: Safe statistical abstention (e.g., cohort size $N < 5$ samples in `viro-networks`)
|
|
182
|
+
</details>
|
|
183
|
+
|
|
184
|
+
---
|
|
185
|
+
|
|
186
|
+
## Validated Performance & Cohort Outputs
|
|
187
|
+
|
|
188
|
+
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`](benchmarks/run_benchmarks.py)):
|
|
189
|
+
|
|
190
|
+
<p align="center">
|
|
191
|
+
<img src="docs/assets/fig3_benchmark_performance.svg" alt="Empirical Benchmark Validation Across All 5 Modules" width="100%"/>
|
|
192
|
+
</p>
|
|
193
|
+
|
|
194
|
+
<p align="center">
|
|
195
|
+
<img src="docs/assets/fig4_cohort_showcase.svg" alt="Cohort Neutral Drift and Consensus Network Output" width="100%"/>
|
|
196
|
+
</p>
|
|
197
|
+
|
|
198
|
+
| Benchmark | What Was Tested | Virome-Suite Result | Standard Baseline Result |
|
|
199
|
+
| :--- | :--- | :---: | :---: |
|
|
200
|
+
| **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 |
|
|
201
|
+
| **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) |
|
|
202
|
+
| **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 |
|
|
203
|
+
| **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) |
|
|
204
|
+
| **BM-5 (`viro-networks`)** | Recovering true co-occurrences under severe library-size closure | **Mean F1 = `0.773`** | Mean F1 = `0.230` (relative-abundance Pearson) |
|
|
205
|
+
| **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** | — |
|
|
206
|
+
|
|
207
|
+
<details>
|
|
208
|
+
<summary><b>Click to reproduce all benchmarks & regenerate figures locally</b></summary>
|
|
209
|
+
|
|
210
|
+
```bash
|
|
211
|
+
# Run the full 56-test unit & edge-case suite
|
|
212
|
+
python -m pytest tests/unit -v
|
|
213
|
+
|
|
214
|
+
# Re-execute all 6 Gate 3 benchmarks (writes JSON/TSV scorecards to benchmarks/results/)
|
|
215
|
+
python benchmarks/run_benchmarks.py
|
|
216
|
+
|
|
217
|
+
# Regenerate all 4 vector SVG figures in docs/assets/
|
|
218
|
+
python benchmarks/generate_figures.py
|
|
219
|
+
```
|
|
220
|
+
</details>
|
|
221
|
+
|
|
222
|
+
---
|
|
223
|
+
|
|
224
|
+
## Citation & Maintainer
|
|
225
|
+
|
|
226
|
+
If you use **Virome-Suite** or any of its standalone packages in your research, please cite [`CITATION.cff`](CITATION.cff):
|
|
227
|
+
|
|
228
|
+
* **Maintainer:** Dr. Shweta Singh (`shwetabac@gmail.com`)
|
|
229
|
+
* **Affiliation:** Molecular Plant Pathology Lab, ICAR-Indian Sugarcane Research Institute
|
|
230
|
+
* **Repository:** [https://github.com/molecularplantpathology/Virome-Suite](https://github.com/molecularplantpathology/Virome-Suite)
|
|
231
|
+
* **License:** MIT ([`LICENSE`](LICENSE))
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
# Virome-Suite
|
|
2
|
+
|
|
3
|
+
[](https://github.com/molecularplantpathology/Virome-Suite/actions/workflows/ci.yml)
|
|
4
|
+
[](https://pypi.org/project/viro-drift/)
|
|
5
|
+
[](https://pypi.org/project/viral-genome-tools/)
|
|
6
|
+
[](https://pypi.org/project/quasispecies-profiler/)
|
|
7
|
+
[](https://pypi.org/project/viralbio-reporting/)
|
|
8
|
+
[](https://www.python.org/)
|
|
9
|
+
[](LICENSE)
|
|
10
|
+
|
|
11
|
+
**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.**
|
|
12
|
+
|
|
13
|
+
Developed at the **Molecular Plant Pathology Lab, ICAR-Indian Sugarcane Research Institute**.
|
|
14
|
+
|
|
15
|
+
<p align="center">
|
|
16
|
+
<img src="docs/assets/fig1_pipeline_overview.svg" alt="Virome-Suite End-to-End Architecture" width="100%"/>
|
|
17
|
+
</p>
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## What Virome-Suite Solves — At a Glance
|
|
22
|
+
|
|
23
|
+
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:
|
|
24
|
+
|
|
25
|
+
<p align="center">
|
|
26
|
+
<img src="docs/assets/fig2_five_problems_solved.svg" alt="Five Problems Solved by Virome-Suite" width="100%"/>
|
|
27
|
+
</p>
|
|
28
|
+
|
|
29
|
+
| Tool (`pip` Package) | Plain-Language Role | What Problem It Fixes | Detailed Guide |
|
|
30
|
+
| :--- | :--- | :--- | :---: |
|
|
31
|
+
| **[`viro-drift`](https://pypi.org/project/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](packages/viro_drift/README.md) |
|
|
32
|
+
| **[`viral-genome-tools`](https://pypi.org/project/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](packages/viral_genome_tools/README.md) |
|
|
33
|
+
| **[`quasispecies-profiler`](https://pypi.org/project/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](packages/quasispecies_profiler/README.md) |
|
|
34
|
+
| **[`viralbio-reporting`](https://pypi.org/project/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](packages/viralbio_reporting/README.md) |
|
|
35
|
+
| **[`viro-networks`](https://pypi.org/project/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](packages/viro_networks/README.md) |
|
|
36
|
+
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
## Quick Start in 3 Steps
|
|
40
|
+
|
|
41
|
+
### Step 1 — Install
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
# Install the full suite (or install any individual package above standalone)
|
|
45
|
+
pip install virome-suite
|
|
46
|
+
|
|
47
|
+
# Check your Python environment and optional external tools
|
|
48
|
+
virome-suite check-env
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
<details>
|
|
52
|
+
<summary><b>Optional: Install external bioinformatics binaries via Conda (Bowtie2, SPAdes, DIAMOND, table2asn)</b></summary>
|
|
53
|
+
|
|
54
|
+
All 6 packages work out-of-the-box in pure Python mode. To enable external high-throughput aligners/assemblers:
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
git clone https://github.com/molecularplantpathology/Virome-Suite.git
|
|
58
|
+
cd Virome-Suite
|
|
59
|
+
conda env create -f environment.yml
|
|
60
|
+
conda activate virome_suite
|
|
61
|
+
virome-suite check-env
|
|
62
|
+
```
|
|
63
|
+
</details>
|
|
64
|
+
|
|
65
|
+
---
|
|
66
|
+
|
|
67
|
+
### Step 2 — Run a Multi-Sample & Multi-Replicate Study Cohort (`run-cohort`)
|
|
68
|
+
|
|
69
|
+
Real experiments usually involve **multiple samples**, each sequenced across **replicates**. List your files in a simple tab-separated `study_samplesheet.tsv`:
|
|
70
|
+
|
|
71
|
+
```tsv
|
|
72
|
+
sample_id replicate_id r1_path r2_path group
|
|
73
|
+
Sample_01 Rep1 fastq/S01_rep1_R1.fq fastq/S01_rep1_R2.fq Symptomatic
|
|
74
|
+
Sample_01 Rep2 fastq/S01_rep2_R1.fq fastq/S01_rep2_R2.fq Symptomatic
|
|
75
|
+
Sample_01 Rep3 fastq/S01_rep3_R1.fq fastq/S01_rep3_R2.fq Symptomatic
|
|
76
|
+
Sample_02 Rep1 fastq/S02_rep1_R1.fq fastq/S02_rep1_R2.fq Symptomatic
|
|
77
|
+
Sample_03 Rep1 fastq/S03_rep1_R1.fq fastq/S03_rep1_R2.fq Asymptomatic
|
|
78
|
+
...
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
Then run the entire cohort with a single command:
|
|
82
|
+
|
|
83
|
+
```bash
|
|
84
|
+
virome-suite run-cohort \
|
|
85
|
+
--samplesheet study_samplesheet.tsv \
|
|
86
|
+
--seeds tests/fixtures/core_viral_seeds.faa \
|
|
87
|
+
--host host_reference.fasta \
|
|
88
|
+
--replicate-type technical \
|
|
89
|
+
--output cohort_results/
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
`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.
|
|
93
|
+
|
|
94
|
+
<details>
|
|
95
|
+
<summary><b>Click to view the generated cohort output folder structure & CLI flags</b></summary>
|
|
96
|
+
|
|
97
|
+
```text
|
|
98
|
+
cohort_results/
|
|
99
|
+
├── cohort_summary.json # Master execution report across all N samples
|
|
100
|
+
├── cohort_provenance.json # SHA-256 hash-chained audit trail
|
|
101
|
+
├── samples/<Sample_ID>/
|
|
102
|
+
│ ├── 01_viro_drift/ # Assembled candidate contigs
|
|
103
|
+
│ ├── 02_genome_curation/ # Exact 1.0x monomers & E_junction TSV report
|
|
104
|
+
│ ├── 03_annotation_genbank/ # Seam-spanning NCBI .tbl, .fsa & validation JSON
|
|
105
|
+
│ └── 04_quasispecies_variants/ # Multi-replicate allele counts & filtered iSNVs
|
|
106
|
+
├── 04_cohort_matrices/
|
|
107
|
+
│ ├── cohort_viral_catalog.fasta # Non-redundant curated viral catalog
|
|
108
|
+
│ ├── cohort_abundance_counts.tsv # Cross-sample count matrix (N samples x P taxa)
|
|
109
|
+
│ └── cohort_metadata.tsv # Sample groups & replicate counts
|
|
110
|
+
└── 05_cohort_ecological_networks/
|
|
111
|
+
├── consensus_edges.tsv # Bootstrap-stabilized co-occurrence edges
|
|
112
|
+
├── sloan_neutral_fit.tsv # Sloan Neutral Model fit & 95% Wilson bands
|
|
113
|
+
└── topological_hub_candidates.tsv # Degree & Brandes betweenness hub rankings
|
|
114
|
+
```
|
|
115
|
+
</details>
|
|
116
|
+
|
|
117
|
+
---
|
|
118
|
+
|
|
119
|
+
### Step 3 — Try a 30-Second Demo Right Now (Included Test Fixtures)
|
|
120
|
+
|
|
121
|
+
After cloning the repository, you can test the pipeline immediately using the built-in multi-virus fixtures in [`tests/fixtures/`](tests/fixtures/):
|
|
122
|
+
|
|
123
|
+
```bash
|
|
124
|
+
virome-suite run \
|
|
125
|
+
--r1 tests/fixtures/concatemer_test_panel.fasta \
|
|
126
|
+
--replicates tests/fixtures/replicate_variants_fixture.tsv \
|
|
127
|
+
--counts tests/fixtures/virome_cohort_counts.tsv \
|
|
128
|
+
--output demo_output/
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
<details>
|
|
132
|
+
<summary><b>Click to expand standalone commands for each of the 5 individual tools & exit codes</b></summary>
|
|
133
|
+
|
|
134
|
+
```bash
|
|
135
|
+
# 1. Rescue divergent viral reads & micro-assemble
|
|
136
|
+
viro-drift run --r1 R1.fq --r2 R2.fq --seeds tests/fixtures/core_viral_seeds.faa -o out_drift/
|
|
137
|
+
|
|
138
|
+
# 2. Trim circular concatemers to 1.0x, rotate to Position 1, & score circularity
|
|
139
|
+
viral-genome-tools curate --assembly tests/fixtures/concatemer_test_panel.fasta -o out_curated/
|
|
140
|
+
|
|
141
|
+
# 3. Call replicate-verified intra-host variants (filtering PCR jackpots)
|
|
142
|
+
quasispecies-profiler call --manifest tests/fixtures/replicate_variants_fixture.tsv -o out_variants/
|
|
143
|
+
|
|
144
|
+
# 4. Annotate seam-crossing circular/linear ORFs & build NCBI GenBank submission files
|
|
145
|
+
viralbio-reporting annotate --fasta tests/fixtures/proven_circular_monomers.fasta --topology circular -o out_ncbi/
|
|
146
|
+
|
|
147
|
+
# 5. Infer CLR consensus co-infection network & Sloan neutral drift curve
|
|
148
|
+
viro-networks infer --counts tests/fixtures/virome_cohort_counts.tsv -o out_network/
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
**Standardized CLI Exit Codes (Snakemake / Nextflow Ready):**
|
|
152
|
+
* `0`: Success (including clean negative controls with zero viral candidates)
|
|
153
|
+
* `2`: Invalid input path or malformed FASTA/FASTQ/TSV schema
|
|
154
|
+
* `3`: Optional external binary (`diamond`, `hmmsearch`) requested when not in `PATH`
|
|
155
|
+
* `4`: Safe statistical abstention (e.g., cohort size $N < 5$ samples in `viro-networks`)
|
|
156
|
+
</details>
|
|
157
|
+
|
|
158
|
+
---
|
|
159
|
+
|
|
160
|
+
## Validated Performance & Cohort Outputs
|
|
161
|
+
|
|
162
|
+
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`](benchmarks/run_benchmarks.py)):
|
|
163
|
+
|
|
164
|
+
<p align="center">
|
|
165
|
+
<img src="docs/assets/fig3_benchmark_performance.svg" alt="Empirical Benchmark Validation Across All 5 Modules" width="100%"/>
|
|
166
|
+
</p>
|
|
167
|
+
|
|
168
|
+
<p align="center">
|
|
169
|
+
<img src="docs/assets/fig4_cohort_showcase.svg" alt="Cohort Neutral Drift and Consensus Network Output" width="100%"/>
|
|
170
|
+
</p>
|
|
171
|
+
|
|
172
|
+
| Benchmark | What Was Tested | Virome-Suite Result | Standard Baseline Result |
|
|
173
|
+
| :--- | :--- | :---: | :---: |
|
|
174
|
+
| **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 |
|
|
175
|
+
| **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) |
|
|
176
|
+
| **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 |
|
|
177
|
+
| **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) |
|
|
178
|
+
| **BM-5 (`viro-networks`)** | Recovering true co-occurrences under severe library-size closure | **Mean F1 = `0.773`** | Mean F1 = `0.230` (relative-abundance Pearson) |
|
|
179
|
+
| **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** | — |
|
|
180
|
+
|
|
181
|
+
<details>
|
|
182
|
+
<summary><b>Click to reproduce all benchmarks & regenerate figures locally</b></summary>
|
|
183
|
+
|
|
184
|
+
```bash
|
|
185
|
+
# Run the full 56-test unit & edge-case suite
|
|
186
|
+
python -m pytest tests/unit -v
|
|
187
|
+
|
|
188
|
+
# Re-execute all 6 Gate 3 benchmarks (writes JSON/TSV scorecards to benchmarks/results/)
|
|
189
|
+
python benchmarks/run_benchmarks.py
|
|
190
|
+
|
|
191
|
+
# Regenerate all 4 vector SVG figures in docs/assets/
|
|
192
|
+
python benchmarks/generate_figures.py
|
|
193
|
+
```
|
|
194
|
+
</details>
|
|
195
|
+
|
|
196
|
+
---
|
|
197
|
+
|
|
198
|
+
## Citation & Maintainer
|
|
199
|
+
|
|
200
|
+
If you use **Virome-Suite** or any of its standalone packages in your research, please cite [`CITATION.cff`](CITATION.cff):
|
|
201
|
+
|
|
202
|
+
* **Maintainer:** Dr. Shweta Singh (`shwetabac@gmail.com`)
|
|
203
|
+
* **Affiliation:** Molecular Plant Pathology Lab, ICAR-Indian Sugarcane Research Institute
|
|
204
|
+
* **Repository:** [https://github.com/molecularplantpathology/Virome-Suite](https://github.com/molecularplantpathology/Virome-Suite)
|
|
205
|
+
* **License:** MIT ([`LICENSE`](LICENSE))
|