# kathpaliachirag/nanopore-project architecture

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

- Interactive diagram: https://gitdiagram.com/kathpaliachirag/nanopore-project
- Repository: https://github.com/kathpaliachirag/nanopore-project

## Overview

The README describes a clinical nanopore sequencing workflow and two Kraken2 optimization theses, but the supplied tree is primarily a research workspace: cache-simulation reporting, matrix-multiplication benchmarks, and Kraken2 patch experiments. The documented patient-to-report path is shown as context, not as repository-implemented runtime. Dashboard and experiment components are grouped by their evident roles; unsampled patch relationships are not inferred.

Main entry points: [`cache_simulation/report/app_10_core.js`](https://github.com/kathpaliachirag/nanopore-project/blob/main/cache_simulation/report/app_10_core.js) (Cache results UI), [`dorado-kraken-research/Luna/profiling/matmul/report/build_report.py`](https://github.com/kathpaliachirag/nanopore-project/blob/main/dorado-kraken-research/Luna/profiling/matmul/report/build_report.py) (Luna benchmark report), [`dorado-kraken-research/All_Matrix_Mul_perf_stats`](https://github.com/kathpaliachirag/nanopore-project/tree/main/dorado-kraken-research/All_Matrix_Mul_perf_stats) (CPU matmul variants), [`dorado-kraken-research/Luna/profiling/matmul/matmul_luna_bundle`](https://github.com/kathpaliachirag/nanopore-project/tree/main/dorado-kraken-research/Luna/profiling/matmul/matmul_luna_bundle) (Luna matmul variants)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_sequencing["Sequencing context"]
  node_dorado["Dorado basecaller"]
  node_kraken["Kraken2 lookup"]
  node_species["Species report"]
  node_centrifuge["Centrifuge baseline"]
end

subgraph group_cache["Cache research"]
  node_cacheui["Cache results UI<br/>[app_10_core.js]"]
  node_cacheindex["Experiment index<br/>[app_20_index.js]"]
  node_cachecharts1["Cache charts I<br/>[app_30_charts1.js]"]
  node_cachecharts2["Cache charts II<br/>[app_31_charts2.js]"]
  node_cachecharts3["Cache charts III<br/>[app_32_charts3.js]"]
  node_cacheboot["Dashboard startup<br/>[app_99_boot.js]"]
  node_cacheanalysis["Cache experiment charts"]
  node_slidecharts["Presentation charts"]
end

subgraph group_matmul["Matrix benchmarks"]
  node_cpuvariants["CPU matmul variants"]
  node_lunavariants["Luna matmul variants"]
  node_gpuvariants["GPU matmul helpers<br/>[common.h]"]
  node_matmulreport["Luna benchmark report<br/>[build_report.py]"]
  node_matmulgraphs["Matrix graphs<br/>[gen_graphs.py]"]
end

subgraph group_patches["Kraken2 experiments"]
  node_eskapetransplant["ESKAPE transplant<br/>[transplant.cc]"]
  node_zerosentinel["Zero-sentinel patch"]
  node_diagnostic["Hash diagnostic patch"]
  node_prefetch["Batch prefetch patch"]
  node_patchsuite["Cache policy patches"]
end

node_patient(("Patient sample"))

node_patient -->|"provides reads"| node_dorado
node_dorado -->|"basecalls feed"| node_kraken
node_kraken -->|"reports species"| node_species
node_kraken -.->|"benchmarked against"| node_centrifuge
node_cacheui -->|"displays index"| node_cacheindex
node_cacheui -.->|"shows charts"| node_cachecharts1
node_cacheui -.->|"shows charts"| node_cachecharts2
node_cacheui -.->|"shows charts"| node_cachecharts3
node_cacheui -.->|"starts dashboard"| node_cacheboot
node_cpuvariants -.->|"benchmarked in"| node_matmulreport
node_lunavariants -.->|"benchmarked in"| node_matmulreport
node_gpuvariants -.->|"supports GPU runs"| node_matmulreport
node_matmulreport -.->|"reports comparisons"| node_matmulgraphs
node_kraken -.->|"optimization target"| node_patchsuite
node_kraken -.->|"ESKAPE experiment"| node_eskapetransplant
node_kraken -.->|"cell experiment"| node_zerosentinel
node_kraken -.->|"hash experiment"| node_diagnostic
node_kraken -.->|"prefetch experiment"| node_prefetch

click node_cacheui "https://github.com/kathpaliachirag/nanopore-project/blob/main/cache_simulation/report/app_10_core.js"
click node_cacheindex "https://github.com/kathpaliachirag/nanopore-project/blob/main/cache_simulation/report/app_20_index.js"
click node_cachecharts1 "https://github.com/kathpaliachirag/nanopore-project/blob/main/cache_simulation/report/app_30_charts1.js"
click node_cachecharts2 "https://github.com/kathpaliachirag/nanopore-project/blob/main/cache_simulation/report/app_31_charts2.js"
click node_cachecharts3 "https://github.com/kathpaliachirag/nanopore-project/blob/main/cache_simulation/report/app_32_charts3.js"
click node_cacheboot "https://github.com/kathpaliachirag/nanopore-project/blob/main/cache_simulation/report/app_99_boot.js"
click node_cacheanalysis "https://github.com/kathpaliachirag/nanopore-project/blob/main/cache_simulation/scripts/make_size_sweep_chart.py"
click node_slidecharts "https://github.com/kathpaliachirag/nanopore-project/blob/main/cache_simulation/scripts/make_slide_charts.py"
click node_cpuvariants "https://github.com/kathpaliachirag/nanopore-project/tree/main/dorado-kraken-research/All_Matrix_Mul_perf_stats"
click node_lunavariants "https://github.com/kathpaliachirag/nanopore-project/tree/main/dorado-kraken-research/Luna/profiling/matmul/matmul_luna_bundle"
click node_gpuvariants "https://github.com/kathpaliachirag/nanopore-project/blob/main/dorado-kraken-research/Luna/profiling/matmul_gpu_bundle/common.h"
click node_matmulreport "https://github.com/kathpaliachirag/nanopore-project/blob/main/dorado-kraken-research/Luna/profiling/matmul/report/build_report.py"
click node_matmulgraphs "https://github.com/kathpaliachirag/nanopore-project/blob/main/dorado-kraken-research/matmul_reports/matrix_multiplication/gen_graphs.py"
click node_eskapetransplant "https://github.com/kathpaliachirag/nanopore-project/blob/main/plan_paper/scripts/eskape_aug/transplant.cc"
click node_zerosentinel "https://github.com/kathpaliachirag/nanopore-project/blob/main/plan_paper/scripts/s3_3_zero_sentinel_calloc_patch.py"
click node_diagnostic "https://github.com/kathpaliachirag/nanopore-project/blob/main/plan_paper/scripts/s4_0_diagnostic_patch.py"
click node_prefetch "https://github.com/kathpaliachirag/nanopore-project/blob/main/plan_paper/scripts/s5_0_prefetch_batch_patch.py"
click node_patchsuite "https://github.com/kathpaliachirag/nanopore-project/tree/main/plan_paper/scripts"

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_dorado,node_kraken,node_species,node_centrifuge toneBlue
class node_cacheui,node_cacheindex,node_cachecharts1,node_cachecharts2,node_cachecharts3,node_cacheboot,node_cacheanalysis,node_slidecharts toneAmber
class node_cpuvariants,node_lunavariants,node_gpuvariants,node_matmulreport,node_matmulgraphs toneMint
class node_eskapetransplant,node_zerosentinel,node_diagnostic,node_prefetch,node_patchsuite toneRose
class node_patient toneIndigo
```

## Components

### Sequencing context

- **Dorado basecaller**
- **Kraken2 lookup**
- **Species report**
- **Centrifuge baseline**

### Cache research

- [Cache results UI](https://github.com/kathpaliachirag/nanopore-project/blob/main/cache_simulation/report/app_10_core.js): `cache_simulation/report/app_10_core.js`
- [Experiment index](https://github.com/kathpaliachirag/nanopore-project/blob/main/cache_simulation/report/app_20_index.js): `cache_simulation/report/app_20_index.js`
- [Cache charts I](https://github.com/kathpaliachirag/nanopore-project/blob/main/cache_simulation/report/app_30_charts1.js): `cache_simulation/report/app_30_charts1.js`
- [Cache charts II](https://github.com/kathpaliachirag/nanopore-project/blob/main/cache_simulation/report/app_31_charts2.js): `cache_simulation/report/app_31_charts2.js`
- [Cache charts III](https://github.com/kathpaliachirag/nanopore-project/blob/main/cache_simulation/report/app_32_charts3.js): `cache_simulation/report/app_32_charts3.js`
- [Dashboard startup](https://github.com/kathpaliachirag/nanopore-project/blob/main/cache_simulation/report/app_99_boot.js): `cache_simulation/report/app_99_boot.js`
- [Cache experiment charts](https://github.com/kathpaliachirag/nanopore-project/blob/main/cache_simulation/scripts/make_size_sweep_chart.py): `cache_simulation/scripts/make_size_sweep_chart.py`
- [Presentation charts](https://github.com/kathpaliachirag/nanopore-project/blob/main/cache_simulation/scripts/make_slide_charts.py): `cache_simulation/scripts/make_slide_charts.py`

### Matrix benchmarks

- [CPU matmul variants](https://github.com/kathpaliachirag/nanopore-project/tree/main/dorado-kraken-research/All_Matrix_Mul_perf_stats): `dorado-kraken-research/All_Matrix_Mul_perf_stats`
- [Luna matmul variants](https://github.com/kathpaliachirag/nanopore-project/tree/main/dorado-kraken-research/Luna/profiling/matmul/matmul_luna_bundle): `dorado-kraken-research/Luna/profiling/matmul/matmul_luna_bundle`
- [GPU matmul helpers](https://github.com/kathpaliachirag/nanopore-project/blob/main/dorado-kraken-research/Luna/profiling/matmul_gpu_bundle/common.h): `dorado-kraken-research/Luna/profiling/matmul_gpu_bundle/common.h`
- [Luna benchmark report](https://github.com/kathpaliachirag/nanopore-project/blob/main/dorado-kraken-research/Luna/profiling/matmul/report/build_report.py): `dorado-kraken-research/Luna/profiling/matmul/report/build_report.py`
- [Matrix graphs](https://github.com/kathpaliachirag/nanopore-project/blob/main/dorado-kraken-research/matmul_reports/matrix_multiplication/gen_graphs.py): `dorado-kraken-research/matmul_reports/matrix_multiplication/gen_graphs.py`

### Kraken2 experiments

- [ESKAPE transplant](https://github.com/kathpaliachirag/nanopore-project/blob/main/plan_paper/scripts/eskape_aug/transplant.cc): `plan_paper/scripts/eskape_aug/transplant.cc`
- [Zero-sentinel patch](https://github.com/kathpaliachirag/nanopore-project/blob/main/plan_paper/scripts/s3_3_zero_sentinel_calloc_patch.py): `plan_paper/scripts/s3_3_zero_sentinel_calloc_patch.py`
- [Hash diagnostic patch](https://github.com/kathpaliachirag/nanopore-project/blob/main/plan_paper/scripts/s4_0_diagnostic_patch.py): `plan_paper/scripts/s4_0_diagnostic_patch.py`
- [Batch prefetch patch](https://github.com/kathpaliachirag/nanopore-project/blob/main/plan_paper/scripts/s5_0_prefetch_batch_patch.py): `plan_paper/scripts/s5_0_prefetch_batch_patch.py`
- [Cache policy patches](https://github.com/kathpaliachirag/nanopore-project/tree/main/plan_paper/scripts): `plan_paper/scripts`

### Other components

- **Patient sample**

## Connections

- Patient sample → Dorado basecaller: provides reads (evidence: `README.md`)
- Dorado basecaller → Kraken2 lookup: basecalls feed (evidence: `README.md`)
- Kraken2 lookup → Species report: reports species (evidence: `README.md`)
- Kraken2 lookup → Centrifuge baseline: benchmarked against (evidence: `README.md`)
- Cache results UI → Experiment index: displays index (evidence: `cache_simulation/report/app_20_index.js`)
- Cache results UI → Cache charts I: shows charts
- Cache results UI → Cache charts II: shows charts
- Cache results UI → Cache charts III: shows charts
- Cache results UI → Dashboard startup: starts dashboard
- CPU matmul variants → Luna benchmark report: benchmarked in
- Luna matmul variants → Luna benchmark report: benchmarked in
- GPU matmul helpers → Luna benchmark report: supports GPU runs
- Luna benchmark report → Matrix graphs: reports comparisons
- Kraken2 lookup → Cache policy patches: optimization target (evidence: `README.md`)
- Kraken2 lookup → ESKAPE transplant: ESKAPE experiment
- Kraken2 lookup → Zero-sentinel patch: cell experiment
- Kraken2 lookup → Hash diagnostic patch: hash experiment
- Kraken2 lookup → Batch prefetch patch: prefetch experiment
