# mri-ihg/ngs_pipeline architecture

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

- Interactive diagram: https://gitdiagram.com/mri-ihg/ngs_pipeline
- Repository: https://github.com/mri-ihg/ngs_pipeline

## Overview

This repository is a Perl- and database-script-based NGS analysis pipeline. Its file tree indicates capabilities spanning analysis setup, sequencing and variant processing, RNA/chromatin analyses, and database-backed annotation and result storage. No source excerpts were provided, and the README does not document calls or data transfers, so the graph groups these components by apparent responsibility but omits runtime-flow edges rather than guessing their relationships.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_setup["Analysis setup and orchestration"]
  node_init_analysis["Initialize analysis<br/>[initAnalysis.pl]"]
  node_init_rna["Initialize RNA-seq<br/>[initRnaSeq.pl]"]
  node_parallel_pipeline["Parallel pipeline"]
  node_post_import["Post-import processing<br/>[doAfterImport.pl]"]
end

subgraph group_sequence["Sequencing and alignment"]
  node_bwa_alignment["BWA alignment"]
  node_star_alignment["STAR alignment<br/>[star_aln.pl]"]
  node_tophat_alignment["TopHat alignment<br/>[tophat_aln.pl]"]
  node_metrics["Sequencing metrics<br/>[collectMetrics.pl]"]
end

subgraph group_variants["Variant and structural analysis"]
  node_variant_calling["GVCF genotyping<br/>[genotypeGVCF.pl]"]
  node_variant_annotation["Variant annotation<br/>[annotateVCF.pl]"]
  node_variant_filtering["Variant filtering<br/>[varfilter_vcf.pl]"]
  node_cnv_analysis["CNV analysis<br/>[runCNVnator.pl]"]
  node_sv_analysis["Structural variants<br/>[runManta.pl]"]
end

subgraph group_interpretation["Expression and functional analysis"]
  node_rna_expression["RNA expression<br/>[DESeq2_local.R]"]
  node_chip_analysis["ChIP-seq analysis<br/>[DiffBind.R]"]
  node_go_analysis["GO analysis<br/>[GOAnalysis_goseq.R]"]
  node_pathway_analysis["Pathway analysis"]
end

subgraph group_storage["Databases and result import"]
  node_variant_import["Variant database import"]
  node_annotation_tables["Annotation tables"]
  node_genome_schemas[("Genome and exome schemas<br/>[exomehg19.sql]")]
  node_variant_schemas[("Variant and clinical schemas<br/>[ClinVar.sql]")]
end

node_user(("Pipeline user"))

click node_init_analysis "https://github.com/mri-ihg/ngs_pipeline/blob/master/Pipeline/initAnalysis.pl"
click node_init_rna "https://github.com/mri-ihg/ngs_pipeline/blob/master/Pipeline/initRnaSeq.pl"
click node_parallel_pipeline "https://github.com/mri-ihg/ngs_pipeline/blob/master/Pipeline/parallelpipeline.pl"
click node_post_import "https://github.com/mri-ihg/ngs_pipeline/blob/master/Pipeline/doAfterImport.pl"
click node_bwa_alignment "https://github.com/mri-ihg/ngs_pipeline/blob/master/Pipeline/bwa_aln_all_Formats.pl"
click node_star_alignment "https://github.com/mri-ihg/ngs_pipeline/blob/master/Pipeline/star_aln.pl"
click node_tophat_alignment "https://github.com/mri-ihg/ngs_pipeline/blob/master/Pipeline/tophat_aln.pl"
click node_metrics "https://github.com/mri-ihg/ngs_pipeline/blob/master/Pipeline/collectMetrics.pl"
click node_variant_calling "https://github.com/mri-ihg/ngs_pipeline/blob/master/Pipeline/genotypeGVCF.pl"
click node_variant_annotation "https://github.com/mri-ihg/ngs_pipeline/blob/master/Pipeline/annotateVCF.pl"
click node_variant_filtering "https://github.com/mri-ihg/ngs_pipeline/blob/master/Pipeline/varfilter_vcf.pl"
click node_cnv_analysis "https://github.com/mri-ihg/ngs_pipeline/blob/master/Pipeline/runCNVnator.pl"
click node_sv_analysis "https://github.com/mri-ihg/ngs_pipeline/blob/master/Pipeline/runManta.pl"
click node_rna_expression "https://github.com/mri-ihg/ngs_pipeline/blob/master/Pipeline/DESeq2_local.R"
click node_chip_analysis "https://github.com/mri-ihg/ngs_pipeline/blob/master/Pipeline/DiffBind.R"
click node_go_analysis "https://github.com/mri-ihg/ngs_pipeline/blob/master/Pipeline/GOAnalysis_goseq.R"
click node_pathway_analysis "https://github.com/mri-ihg/ngs_pipeline/blob/master/Pipeline/PathwayAnalysis_GAGE.R"
click node_variant_import "https://github.com/mri-ihg/ngs_pipeline/blob/master/Pipeline/snvdbExomeImport_vcf.pl"
click node_annotation_tables "https://github.com/mri-ihg/ngs_pipeline/blob/master/Pipeline/fillAnnotationTables.pl"
click node_genome_schemas "https://github.com/mri-ihg/ngs_pipeline/blob/master/Database/exomehg19.sql"
click node_variant_schemas "https://github.com/mri-ihg/ngs_pipeline/blob/master/Database/ClinVar.sql"

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_init_analysis,node_init_rna,node_parallel_pipeline,node_post_import,node_user toneBlue
class node_bwa_alignment,node_star_alignment,node_tophat_alignment,node_metrics toneAmber
class node_variant_calling,node_variant_annotation,node_variant_filtering,node_cnv_analysis,node_sv_analysis toneMint
class node_rna_expression,node_chip_analysis,node_go_analysis,node_pathway_analysis toneRose
class node_variant_import,node_annotation_tables,node_genome_schemas,node_variant_schemas toneIndigo
```

## Components

### Analysis setup and orchestration

- [Initialize analysis](https://github.com/mri-ihg/ngs_pipeline/blob/master/Pipeline/initAnalysis.pl): `Pipeline/initAnalysis.pl`
- [Initialize RNA-seq](https://github.com/mri-ihg/ngs_pipeline/blob/master/Pipeline/initRnaSeq.pl): `Pipeline/initRnaSeq.pl`
- [Parallel pipeline](https://github.com/mri-ihg/ngs_pipeline/blob/master/Pipeline/parallelpipeline.pl): `Pipeline/parallelpipeline.pl`
- [Post-import processing](https://github.com/mri-ihg/ngs_pipeline/blob/master/Pipeline/doAfterImport.pl): `Pipeline/doAfterImport.pl`

### Sequencing and alignment

- [BWA alignment](https://github.com/mri-ihg/ngs_pipeline/blob/master/Pipeline/bwa_aln_all_Formats.pl): `Pipeline/bwa_aln_all_Formats.pl`
- [STAR alignment](https://github.com/mri-ihg/ngs_pipeline/blob/master/Pipeline/star_aln.pl): `Pipeline/star_aln.pl`
- [TopHat alignment](https://github.com/mri-ihg/ngs_pipeline/blob/master/Pipeline/tophat_aln.pl): `Pipeline/tophat_aln.pl`
- [Sequencing metrics](https://github.com/mri-ihg/ngs_pipeline/blob/master/Pipeline/collectMetrics.pl): `Pipeline/collectMetrics.pl`

### Variant and structural analysis

- [GVCF genotyping](https://github.com/mri-ihg/ngs_pipeline/blob/master/Pipeline/genotypeGVCF.pl): `Pipeline/genotypeGVCF.pl`
- [Variant annotation](https://github.com/mri-ihg/ngs_pipeline/blob/master/Pipeline/annotateVCF.pl): `Pipeline/annotateVCF.pl`
- [Variant filtering](https://github.com/mri-ihg/ngs_pipeline/blob/master/Pipeline/varfilter_vcf.pl): `Pipeline/varfilter_vcf.pl`
- [CNV analysis](https://github.com/mri-ihg/ngs_pipeline/blob/master/Pipeline/runCNVnator.pl): `Pipeline/runCNVnator.pl`
- [Structural variants](https://github.com/mri-ihg/ngs_pipeline/blob/master/Pipeline/runManta.pl): `Pipeline/runManta.pl`

### Expression and functional analysis

- [RNA expression](https://github.com/mri-ihg/ngs_pipeline/blob/master/Pipeline/DESeq2_local.R): `Pipeline/DESeq2_local.R`
- [ChIP-seq analysis](https://github.com/mri-ihg/ngs_pipeline/blob/master/Pipeline/DiffBind.R): `Pipeline/DiffBind.R`
- [GO analysis](https://github.com/mri-ihg/ngs_pipeline/blob/master/Pipeline/GOAnalysis_goseq.R): `Pipeline/GOAnalysis_goseq.R`
- [Pathway analysis](https://github.com/mri-ihg/ngs_pipeline/blob/master/Pipeline/PathwayAnalysis_GAGE.R): `Pipeline/PathwayAnalysis_GAGE.R`

### Databases and result import

- [Variant database import](https://github.com/mri-ihg/ngs_pipeline/blob/master/Pipeline/snvdbExomeImport_vcf.pl): `Pipeline/snvdbExomeImport_vcf.pl`
- [Annotation tables](https://github.com/mri-ihg/ngs_pipeline/blob/master/Pipeline/fillAnnotationTables.pl): `Pipeline/fillAnnotationTables.pl`
- [Genome and exome schemas](https://github.com/mri-ihg/ngs_pipeline/blob/master/Database/exomehg19.sql): `Database/exomehg19.sql`
- [Variant and clinical schemas](https://github.com/mri-ihg/ngs_pipeline/blob/master/Database/ClinVar.sql): `Database/ClinVar.sql`

### Other components

- **Pipeline user**
