# othmanresearch/delmoro architecture

> Architecture diagram of the GitHub repository othmanresearch/delmoro, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-11). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/othmanresearch/delmoro
- Repository: https://github.com/othmanresearch/delmoro

## Overview

DelMoro is a Nextflow genome/exome variant-detection pipeline with full and standalone-step execution modes. Its principal workflow takes sample reads through quality control, trimming, alignment and optional recalibration, then variant calling, annotation, filtering and reporting. A separate Python data-aggregation workflow combines per-sample VEP, VCF and clinical-analysis inputs; the source index confirms its parser dependencies. The Nextflow source was not sampled, so its stage links reflect README capabilities rather than inspected call sites, and optional or undocumented wiring is omitted.

Main entry points: [`main.nf`](https://github.com/othmanresearch/delmoro/blob/main/main.nf) (Nextflow entry), [`bin/delmoro_do.py`](https://github.com/othmanresearch/delmoro/blob/main/bin/delmoro_do.py) (Clinical data aggregator), [`subworkflows/generateCSV/main.nf`](https://github.com/othmanresearch/delmoro/blob/main/subworkflows/generateCSV/main.nf) (Sample sheet generation), [`subworkflows/rawQualCtrl/main.nf`](https://github.com/othmanresearch/delmoro/blob/main/subworkflows/rawQualCtrl/main.nf) (Raw-read QC)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_orchestration["Workflow orchestration"]
  node_main["Nextflow entry<br/>[main.nf]"]
  node_csv["Sample sheet generation<br/>[main.nf]"]
end

subgraph group_reads["Read preparation"]
  node_rawqc["Raw-read QC<br/>[main.nf]"]
  node_trimming["Read trimming<br/>[main.nf]"]
  node_refidx["Reference indexing<br/>[main.nf]"]
  node_mapping["Read alignment<br/>[main.nf]"]
  node_bqsr["Base recalibration<br/>[main.nf]"]
end

subgraph group_variants["Variant analysis"]
  node_calling["Variant calling"]
  node_vep["VEP annotation<br/>[main.nf]"]
  node_vepcache["VEP cache<br/>[main.nf]"]
  node_filter["Variant filtering<br/>[main.nf]"]
  node_report["PDF reporting<br/>[main.nf]"]
end

subgraph group_aggregation["Clinical aggregation"]
  node_aggregator["Clinical data aggregator<br/>[delmoro_do.py]"]
  node_vepparser["VEP parser<br/>[parse_vep.py]"]
  node_vcfparser["VCF genotype parser<br/>[parse_vcf.py]"]
  node_spliceparser["SpliceAI parser<br/>[parse_splice.py]"]
  node_liricalparser["LIRICAL parser<br/>[parse_lirical.py]"]
  node_lofteeparser["LOFTEE parser<br/>[parse_loftee.py]"]
end

node_user(("Pipeline user"))

node_user -->|"runs"| node_main
node_main -->|"supports"| node_csv
node_main -->|"runs step"| node_rawqc
node_main -->|"runs step"| node_trimming
node_main -->|"runs step"| node_refidx
node_main -->|"runs step"| node_mapping
node_main -->|"runs step"| node_bqsr
node_main -->|"runs step"| node_calling
node_main -->|"runs step"| node_vep
node_main -->|"runs step"| node_filter
node_main -->|"runs step"| node_report
node_aggregator -->|"uses"| node_vepparser
node_aggregator -->|"uses"| node_vcfparser
node_aggregator -->|"uses"| node_spliceparser
node_aggregator -->|"uses"| node_liricalparser
node_aggregator -->|"uses"| node_lofteeparser

click node_main "https://github.com/othmanresearch/delmoro/blob/main/main.nf"
click node_csv "https://github.com/othmanresearch/delmoro/blob/main/subworkflows/generateCSV/main.nf"
click node_rawqc "https://github.com/othmanresearch/delmoro/blob/main/subworkflows/rawQualCtrl/main.nf"
click node_trimming "https://github.com/othmanresearch/delmoro/blob/main/subworkflows/trimming/main.nf"
click node_refidx "https://github.com/othmanresearch/delmoro/blob/main/subworkflows/indexingRefGenome/main.nf"
click node_mapping "https://github.com/othmanresearch/delmoro/blob/main/subworkflows/mapping/main.nf"
click node_bqsr "https://github.com/othmanresearch/delmoro/blob/main/subworkflows/bqsr/main.nf"
click node_calling "https://github.com/othmanresearch/delmoro/tree/main/subworkflows/variantcalling"
click node_vep "https://github.com/othmanresearch/delmoro/blob/main/subworkflows/annotations/vep/vepannotate/main.nf"
click node_vepcache "https://github.com/othmanresearch/delmoro/blob/main/subworkflows/annotations/vep/vepcache/main.nf"
click node_filter "https://github.com/othmanresearch/delmoro/blob/main/subworkflows/variantfilter/main.nf"
click node_report "https://github.com/othmanresearch/delmoro/blob/main/subworkflows/reporting/main.nf"
click node_aggregator "https://github.com/othmanresearch/delmoro/blob/main/bin/delmoro_do.py"
click node_vepparser "https://github.com/othmanresearch/delmoro/blob/main/bin/modules/parse_vep.py"
click node_vcfparser "https://github.com/othmanresearch/delmoro/blob/main/bin/modules/parse_vcf.py"
click node_spliceparser "https://github.com/othmanresearch/delmoro/blob/main/bin/modules/parse_splice.py"
click node_liricalparser "https://github.com/othmanresearch/delmoro/blob/main/bin/modules/parse_lirical.py"
click node_lofteeparser "https://github.com/othmanresearch/delmoro/blob/main/bin/modules/parse_loftee.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_main,node_csv,node_user toneBlue
class node_rawqc,node_trimming,node_refidx,node_mapping,node_bqsr toneAmber
class node_calling,node_vep,node_vepcache,node_filter,node_report toneMint
class node_aggregator,node_vepparser,node_vcfparser,node_spliceparser,node_liricalparser,node_lofteeparser toneRose
```

## Components

### Workflow orchestration

- [Nextflow entry](https://github.com/othmanresearch/delmoro/blob/main/main.nf): `main.nf`
- [Sample sheet generation](https://github.com/othmanresearch/delmoro/blob/main/subworkflows/generateCSV/main.nf): `subworkflows/generateCSV/main.nf`

### Read preparation

- [Raw-read QC](https://github.com/othmanresearch/delmoro/blob/main/subworkflows/rawQualCtrl/main.nf): `subworkflows/rawQualCtrl/main.nf`
- [Read trimming](https://github.com/othmanresearch/delmoro/blob/main/subworkflows/trimming/main.nf): `subworkflows/trimming/main.nf`
- [Reference indexing](https://github.com/othmanresearch/delmoro/blob/main/subworkflows/indexingRefGenome/main.nf): `subworkflows/indexingRefGenome/main.nf`
- [Read alignment](https://github.com/othmanresearch/delmoro/blob/main/subworkflows/mapping/main.nf): `subworkflows/mapping/main.nf`
- [Base recalibration](https://github.com/othmanresearch/delmoro/blob/main/subworkflows/bqsr/main.nf): `subworkflows/bqsr/main.nf`

### Variant analysis

- [Variant calling](https://github.com/othmanresearch/delmoro/tree/main/subworkflows/variantcalling): `subworkflows/variantcalling`
- [VEP annotation](https://github.com/othmanresearch/delmoro/blob/main/subworkflows/annotations/vep/vepannotate/main.nf): `subworkflows/annotations/vep/vepannotate/main.nf`
- [VEP cache](https://github.com/othmanresearch/delmoro/blob/main/subworkflows/annotations/vep/vepcache/main.nf): `subworkflows/annotations/vep/vepcache/main.nf`
- [Variant filtering](https://github.com/othmanresearch/delmoro/blob/main/subworkflows/variantfilter/main.nf): `subworkflows/variantfilter/main.nf`
- [PDF reporting](https://github.com/othmanresearch/delmoro/blob/main/subworkflows/reporting/main.nf): `subworkflows/reporting/main.nf`

### Clinical aggregation

- [Clinical data aggregator](https://github.com/othmanresearch/delmoro/blob/main/bin/delmoro_do.py): `bin/delmoro_do.py`
- [VEP parser](https://github.com/othmanresearch/delmoro/blob/main/bin/modules/parse_vep.py): `bin/modules/parse_vep.py`
- [VCF genotype parser](https://github.com/othmanresearch/delmoro/blob/main/bin/modules/parse_vcf.py): `bin/modules/parse_vcf.py`
- [SpliceAI parser](https://github.com/othmanresearch/delmoro/blob/main/bin/modules/parse_splice.py): `bin/modules/parse_splice.py`
- [LIRICAL parser](https://github.com/othmanresearch/delmoro/blob/main/bin/modules/parse_lirical.py): `bin/modules/parse_lirical.py`
- [LOFTEE parser](https://github.com/othmanresearch/delmoro/blob/main/bin/modules/parse_loftee.py): `bin/modules/parse_loftee.py`

### Other components

- **Pipeline user**

## Connections

- Pipeline user → Nextflow entry: runs (evidence: `README.md`)
- Nextflow entry → Sample sheet generation: supports (evidence: `README.md`)
- Nextflow entry → Raw-read QC: runs step (evidence: `README.md`)
- Nextflow entry → Read trimming: runs step (evidence: `README.md`)
- Nextflow entry → Reference indexing: runs step (evidence: `README.md`)
- Nextflow entry → Read alignment: runs step (evidence: `README.md`)
- Nextflow entry → Base recalibration: runs step (evidence: `README.md`)
- Nextflow entry → Variant calling: runs step (evidence: `README.md`)
- Nextflow entry → VEP annotation: runs step (evidence: `README.md`)
- Nextflow entry → Variant filtering: runs step (evidence: `README.md`)
- Nextflow entry → PDF reporting: runs step (evidence: `README.md`)
- Clinical data aggregator → VEP parser: uses (evidence: `bin/delmoro_do.py`)
- Clinical data aggregator → VCF genotype parser: uses (evidence: `bin/delmoro_do.py`)
- Clinical data aggregator → SpliceAI parser: uses (evidence: `bin/delmoro_do.py`)
- Clinical data aggregator → LIRICAL parser: uses (evidence: `bin/delmoro_do.py`)
- Clinical data aggregator → LOFTEE parser: uses (evidence: `bin/delmoro_do.py`)
