Metagenomic diagnostics pipeline and collaborative reporting stack for pathogen detection, species identification, host genome analysis, quality assurance and deployment in clinical and public health production environments.
🩸 Metagenomic diagnostic core functions
Main
- Multi-classifier taxonomic profiling, metagenome assembly and alignment in Nextflow
- Optimized pangenome host depletion and background depletion with
Scrubby - Viral infections, pan-viral enrichment protocols and syndrome-specific subtyping panels using
Vircov - Differential host tumor DNA diagnostics using segmental CNV detection
Support
- Species identification pipelines with
GTDBfor prokaryotic reference assemblies - MAG recovery from enriched culture and sample co-assembly, unclassified viral bin prediction (
geNomad,RdRP) - Custom database and index construction, grafted taxonomies, genome cleaning with
Cipher
📰 Collaborative clinical reporting (Bug Board)
- Collaborative and auditable pathogen determination from metagenome sequencing results
- Multi-tenant Svelte application and API with secure local or web-server deployment configs
- Scalable application stack deployment with different data security and collaboration models
- Stack configuration and deployment integrated into the primary command-line interface (Cerebro CLI)
- Clinical reporting with
Typstformatted templates linked into evidence from multi-classifier/databases - Secure
wasmenabled report generation in-browser for sensitive reports, interactive data visualizations - Auditable team member comments and results discussion for expert panel reviews of data (online "Bug Board")
🏥 Clinical and public health production environments
- Simulations using in silico syndromic reference panels for signal- and read-level data with
Cipher - Evaluation of simulation and patient datasets for quality assurance with
CipherandCerebro - Background/sample site/kitome contamination issues in clinical or public health environments
- Distributed sequence and analysis storage, file system and data retention policies, cloud storage etc. through
SeaweedFS - Standard operating procedures for continous operation of
Cerebroas a service for clinical diagnostic reporting - Experimental protocols for reference labs aiming at low abundance clinical sample types (CSF, ocular fluids, etc)
Let's step through some common tasks and core functions of Cerebro and the application and reporting stack. This section provides some examples of how to get started quickly with Cerebro. For more details and how to deploy and operate the full application in production please see the documentation.
Minimum requirements:
- Linux OS
- Nextflow v24
- Conda/Mamba/Docker
Computational resource requirements are variable and range from a standard laptop for the application stack to full nation-wide server infrastructure for pipelines and web-application (if you were so inclined). This is because the application stack for data and reporting can be deployed with various infrastructure, data security and collaboration models in mind and depends on the number of laboratories, collaborators, sequencing throughput, data storage and many other considerations.
Note
You do not need the Docker stack for core metagenome diagnostic pipelines and report generation - you can run the Nextflow pipelines separately and use the Cerebro CLI for data manipulation, processing of pipeline outputs and clinical report generation.
Pathogen detection with PE Illumina reads from metagenomic sequencing of sterile-site samples (validated for ocular fluid and cerebrospinal fluid):
nextflow run -r v1.0.0 https://github.com/esteinig/cerebro \
-profile dgx,large,mamba,cns,cipher \
-entry pathogen \
--outputDirectory outputTest/ \
--databaseDirectory db/ \
--fastqPaired 'fastq/*_{R1_001,R2_001}.fastq.gz'This will run the default quality control, taxonomic profiling and metagenome assembly configuration for pathogen identification in low microbial biomass sample types (such as ocular fluids or CSF) where distinction from contamination and incidental background organisms is the main challenge for diagnostics (needle-in-a-haystack).
Warning
This pipeline is not suitable for high microbial biomass sample types (such as respiratory or environmental samples) where a diverse and abundant background microbiome is the main challenge for diagnostics (haystack-full-of-needles).
For the default configuration you will need the Cipher diagnostic database in the --databaseDirectory, which is an amalgamation of archaeal/bacterial (GTDB), eukaryotic (EuPath, Wormbase) and viral (ICTV) reference genome collections and taxonomies. Depending on sequencing protocol, you will also need a human reference index for alignment-based depletion and additional background sequences (like synthetic spike-ins or internal phage controls) for depletion in the quality control module.
Download the Cipher v2 database:
TBD
If you are using the associated short-read sequencing protocol also download the following files:
TBD
TBD
TBD
TBD
TBD
TBD
TBD
Under active development for production release.
This is a preliminary public release of code for the viral enrichment branch of the pipeline used in:
Michael A Moso, George Taiaroa, Eike Steinig, Madiyar Zhanduisenov, Grace Butel-Simoes, Ivana Savic, Mona L Taouk, Socheata Chea, Jean Moselen, Jacinta O’Keefe, Jacqueline Prestedge, Georgina L Pollock, Mohammad Khan, Katherine Soloczynskyj, Janath Fernando, Genevieve E Martin, Leon Caly, Ian G Barr, Thomas Tran, Julian Druce, Chuan K Lim, Deborah A Williamson - Non-SARS-CoV-2 respiratory viral detection and whole genome sequencing from COVID-19 rapid antigen test devices: a laboratory evaluation study - Lancet Microbe (2024) -10.1016/S2666-5247(23)00375-0
Dependencies:
- Conda/Mamba
- Nextflow v24
Large segmental copy number variation (CNV) detection across human chromosomes from host background of short-read metagenomic sequencing data with CNVkit (Talevich et al. 2016).
This is a supplementary pipeline not intended for production - to execute please clone the repository first:
git clone https://github.com/esteinig/cerebro
Execute with relevant parameters:
nextflow run ./cerebro/lib/standalone/aneuploidy/main.nf -profile mamba,medium \
--pairedReads '*_{R1_001,R2_001}.fastq.gz' \
--outdir test_aneuploidy \
--referenceFasta resources/CHM13v2.fasta \
--normalControlBam resources/HG007.5x.QC.bam \
--resources.threads.minimap2 32
Other parameters can be found in the nextflow.config. Resource dependencies are the CHM13v2 human reference genome and a sub-sampled (5x) reference alignment of HG007 (ChineseTrio, mother). We tested this default configuration on Detroit cell-lines which derive from a female pharyngeal cancer patient and show strong patterns of segmental aneuploidy across chromosomes when compared to a known healthy patient sample.