How selbioinfonivedi-web/seqbridge works
VetGenome Hub is a FastAPI application for operating an ONT MinION sequencing pipeline. Users submit reads and reference data, launch single-sample or cohort runs, and poll job status; the pipeline sequences analysis steps, then exposes artifacts, summaries, and downstream AMR, MGE, and SNP reports. Tool adapters provide parameter schemas and dry-run command previews, while jobs execute CLI tools in WSL or isolated binding subprocesses. The README documents the adapter catalog and workflow; sampled excerpts confirm orchestration and execution, but not every report implementation or tool-to-tool handoff.
Main entry points: app.py API routes · jobs.py Job queue and store · pipeline.py Pipeline runs · registry.py Tool registry
Components 20
API and inputs
- API routes
backend/app.py - File handling
backend/core/files.py
Run orchestration
- Pipeline runs
backend/core/pipeline.py - Job queue and store
backend/core/jobs.py
Analysis execution
- Tool registry
backend/core/registry.py - Tool adapters
backend/tools - Adapter contract
backend/tools/base.py - WSL runner
backend/core/runner.py - Binding launcher
backend/exec_binding.py - Job sandbox
backend/core/storage.py
Results and reporting
- Output summaries
backend/core/results.py - Run reports
backend/core/report.py
Domain analyses
- Contamination analysis
backend/core/contamination.py - AMR reports
backend/core/amr_report.py - MGE reports
backend/core/mge_report.py - SNP reports
backend/core/snp_report.py - Nextflow integration
backend/core/nf.py - MGE integration
backend/mge_sift/modules/10_integration.py - MGE cohort summary
backend/mge_sift/modules/cohort_summary.py
Other components
- Lab operator
Connections 24
- Lab operator → API routes: submits requests
- API routes → File handling: handles uploads
backend/app.py - API routes → Pipeline runs: launches runs
backend/app.py - API routes → Job queue and store: manages jobs
backend/app.py - API routes → Tool registry: lists tools
backend/app.py - Pipeline runs → Job queue and store: creates steps
backend/core/pipeline.py - Pipeline runs → Tool registry: previews outputs
backend/core/pipeline.py - Pipeline runs → Run reports: invalidates cache
backend/core/pipeline.py - Job queue and store → Tool registry: resolves adapter
backend/core/jobs.py - Job queue and store → WSL runner: executes commands
backend/core/jobs.py - Job queue and store → Job sandbox: creates sandbox
backend/core/jobs.py - Job queue and store → Tool adapters: runs adapter
- Tool adapters → Adapter contract: uses contract
backend/tools/bcftools/__init__.py - WSL runner → Binding launcher: launches bindings
- API routes → Output summaries: serves summaries
backend/app.py - Output summaries → Tool registry: reads metadata
backend/core/results.py - Output summaries → Job sandbox: resolves outputs
backend/core/results.py - API routes → AMR reports: serves AMR reports
backend/app.py - API routes → MGE reports: serves MGE reports
backend/app.py - API routes → SNP reports: serves SNP reports
backend/app.py - API routes → Contamination analysis: serves analysis
backend/app.py - API routes → Nextflow integration: exposes integration
backend/app.py - MGE reports → MGE integration: uses analysis
- MGE reports → MGE cohort summary: summarizes cohorts