# yashsolanki466-hash/finalreport architecture

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

- Interactive diagram: https://gitdiagram.com/yashsolanki466-hash/finalreport
- Repository: https://github.com/yashsolanki466-hash/finalreport

## Overview

NGS Report Automation parses project deliverables and produces final HTML reports, with CLI, batch, and polling-watcher entry points. Its separate interim GUI includes project/QC authoring and report-file management. The README describes the command workflows; sampled source confirms data parsing and QC modules, but does not expose the CLI-to-parser or parser-to-renderer calls, so those links are marked unverified. Other listed GUI variants are not expanded beyond the sampled product capabilities.

Main entry points: [`interim_app/App.tsx`](https://github.com/yashsolanki466-hash/finalreport/blob/main/interim_app/App.tsx) (Interim workspace), [`interim_app/components/QCReportBuilder.tsx`](https://github.com/yashsolanki466-hash/finalreport/blob/main/interim_app/components/QCReportBuilder.tsx) (QC report builder), [`src/cli.ts`](https://github.com/yashsolanki466-hash/finalreport/blob/main/src/cli.ts) (CLI commands), [`src/dataParser.ts`](https://github.com/yashsolanki466-hash/finalreport/blob/main/src/dataParser.ts) (Project parser)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["Report workflow"]
  node_cli["CLI commands<br/>[cli.ts]"]
  node_batch["Batch generation<br/>[batch.ts]"]
  node_watch["Polling watcher<br/>[watch.ts]"]
  node_report["Report generator<br/>[reportGenerator.ts]"]
end

subgraph group_parsing["Project parsing"]
  node_parser["Project parser<br/>[dataParser.ts]"]
  node_config["Config and paths<br/>[config.ts]"]
  node_gtf["GTF parser<br/>[gtfParser.ts]"]
end

subgraph group_quality["QC authoring"]
  node_qcintake["QC intake parser<br/>[qcIntakeParser.ts]"]
  node_qcrules["QC rules engine<br/>[qcRulesEngine.ts]"]
  node_qccheck["QC consistency"]
  node_qctypes["QC report model<br/>[qcReport.ts]"]
  node_qcui["QC report builder"]
end

subgraph group_gui["Interim interface"]
  node_gui["Interim workspace<br/>[App.tsx]"]
  node_files["Project file manager<br/>[FileManager.tsx]"]
  node_review["Report review<br/>[ReviewScreen.tsx]"]
  node_methods["Methods screen<br/>[MethodsScreen.tsx]"]
  node_export["Export screen<br/>[ExportScreen.tsx]"]
end

node_user(("Report operator"))

node_user -->|"runs"| node_cli
node_cli -.->|"invokes parsing"| node_parser
node_parser -->|"loads config"| node_config
node_parser -->|"parses annotations"| node_gtf
node_cli -.->|"generates report"| node_report
node_user -->|"requests batch"| node_batch
node_batch -.->|"generates per project"| node_report
node_user -->|"starts monitoring"| node_watch
node_watch -->|"triggers generation"| node_report
node_user -.->|"uses workspace"| node_gui
node_gui -->|"renders"| node_files
node_gui -->|"renders"| node_qcui
node_gui -->|"renders"| node_review
node_gui -->|"renders"| node_methods
node_gui -->|"renders"| node_export
node_qcui -->|"uses model"| node_qctypes
node_qcui -->|"uses rules"| node_qcrules
node_qcui -->|"parses intake"| node_qcintake
node_qcui -->|"checks consistency"| node_qccheck

click node_cli "https://github.com/yashsolanki466-hash/finalreport/blob/main/src/cli.ts"
click node_batch "https://github.com/yashsolanki466-hash/finalreport/blob/main/src/batch.ts"
click node_watch "https://github.com/yashsolanki466-hash/finalreport/blob/main/src/watch.ts"
click node_parser "https://github.com/yashsolanki466-hash/finalreport/blob/main/src/dataParser.ts"
click node_config "https://github.com/yashsolanki466-hash/finalreport/blob/main/src/config.ts"
click node_gtf "https://github.com/yashsolanki466-hash/finalreport/blob/main/src/gtfParser.ts"
click node_qcintake "https://github.com/yashsolanki466-hash/finalreport/blob/main/src/qcIntakeParser.ts"
click node_qcrules "https://github.com/yashsolanki466-hash/finalreport/blob/main/src/qcRulesEngine.ts"
click node_qccheck "https://github.com/yashsolanki466-hash/finalreport/blob/main/src/qcConsistencyChecker.ts"
click node_qctypes "https://github.com/yashsolanki466-hash/finalreport/blob/main/src/types/qcReport.ts"
click node_qcui "https://github.com/yashsolanki466-hash/finalreport/blob/main/interim_app/components/QCReportBuilder.tsx"
click node_report "https://github.com/yashsolanki466-hash/finalreport/blob/main/src/reportGenerator.ts"
click node_gui "https://github.com/yashsolanki466-hash/finalreport/blob/main/interim_app/App.tsx"
click node_files "https://github.com/yashsolanki466-hash/finalreport/blob/main/interim_app/components/FileManager.tsx"
click node_review "https://github.com/yashsolanki466-hash/finalreport/blob/main/interim_app/components/ReviewScreen.tsx"
click node_methods "https://github.com/yashsolanki466-hash/finalreport/blob/main/interim_app/components/MethodsScreen.tsx"
click node_export "https://github.com/yashsolanki466-hash/finalreport/blob/main/interim_app/components/ExportScreen.tsx"

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_cli,node_batch,node_watch,node_report toneBlue
class node_parser,node_config,node_gtf toneAmber
class node_qcintake,node_qcrules,node_qccheck,node_qctypes,node_qcui toneMint
class node_gui,node_files,node_review,node_methods,node_export toneRose
class node_user toneIndigo
```

## Components

### Report workflow

- [CLI commands](https://github.com/yashsolanki466-hash/finalreport/blob/main/src/cli.ts): `src/cli.ts`
- [Batch generation](https://github.com/yashsolanki466-hash/finalreport/blob/main/src/batch.ts): `src/batch.ts`
- [Polling watcher](https://github.com/yashsolanki466-hash/finalreport/blob/main/src/watch.ts): `src/watch.ts`
- [Report generator](https://github.com/yashsolanki466-hash/finalreport/blob/main/src/reportGenerator.ts): `src/reportGenerator.ts`

### Project parsing

- [Project parser](https://github.com/yashsolanki466-hash/finalreport/blob/main/src/dataParser.ts): `src/dataParser.ts`
- [Config and paths](https://github.com/yashsolanki466-hash/finalreport/blob/main/src/config.ts): `src/config.ts`
- [GTF parser](https://github.com/yashsolanki466-hash/finalreport/blob/main/src/gtfParser.ts): `src/gtfParser.ts`

### QC authoring

- [QC intake parser](https://github.com/yashsolanki466-hash/finalreport/blob/main/src/qcIntakeParser.ts): `src/qcIntakeParser.ts`
- [QC rules engine](https://github.com/yashsolanki466-hash/finalreport/blob/main/src/qcRulesEngine.ts): `src/qcRulesEngine.ts`
- [QC consistency](https://github.com/yashsolanki466-hash/finalreport/blob/main/src/qcConsistencyChecker.ts): `src/qcConsistencyChecker.ts`
- [QC report model](https://github.com/yashsolanki466-hash/finalreport/blob/main/src/types/qcReport.ts): `src/types/qcReport.ts`
- [QC report builder](https://github.com/yashsolanki466-hash/finalreport/blob/main/interim_app/components/QCReportBuilder.tsx): `interim_app/components/QCReportBuilder.tsx`

### Interim interface

- [Interim workspace](https://github.com/yashsolanki466-hash/finalreport/blob/main/interim_app/App.tsx): `interim_app/App.tsx`
- [Project file manager](https://github.com/yashsolanki466-hash/finalreport/blob/main/interim_app/components/FileManager.tsx): `interim_app/components/FileManager.tsx`
- [Report review](https://github.com/yashsolanki466-hash/finalreport/blob/main/interim_app/components/ReviewScreen.tsx): `interim_app/components/ReviewScreen.tsx`
- [Methods screen](https://github.com/yashsolanki466-hash/finalreport/blob/main/interim_app/components/MethodsScreen.tsx): `interim_app/components/MethodsScreen.tsx`
- [Export screen](https://github.com/yashsolanki466-hash/finalreport/blob/main/interim_app/components/ExportScreen.tsx): `interim_app/components/ExportScreen.tsx`

### Other components

- **Report operator**

## Connections

- Report operator → CLI commands: runs (evidence: `README.md`)
- CLI commands → Project parser: invokes parsing
- Project parser → Config and paths: loads config (evidence: `src/dataParser.ts`)
- Project parser → GTF parser: parses annotations (evidence: `src/dataParser.ts`)
- CLI commands → Report generator: generates report
- Report operator → Batch generation: requests batch (evidence: `README.md`)
- Batch generation → Report generator: generates per project
- Report operator → Polling watcher: starts monitoring (evidence: `README.md`)
- Polling watcher → Report generator: triggers generation (evidence: `README.md`)
- Report operator → Interim workspace: uses workspace
- Interim workspace → Project file manager: renders (evidence: `interim_app/App.tsx`)
- Interim workspace → QC report builder: renders (evidence: `interim_app/App.tsx`)
- Interim workspace → Report review: renders (evidence: `interim_app/App.tsx`)
- Interim workspace → Methods screen: renders (evidence: `interim_app/App.tsx`)
- Interim workspace → Export screen: renders (evidence: `interim_app/App.tsx`)
- QC report builder → QC report model: uses model (evidence: `interim_app/components/QCReportBuilder.tsx`)
- QC report builder → QC rules engine: uses rules (evidence: `interim_app/components/QCReportBuilder.tsx`)
- QC report builder → QC intake parser: parses intake (evidence: `interim_app/components/QCReportBuilder.tsx`)
- QC report builder → QC consistency: checks consistency (evidence: `interim_app/components/QCReportBuilder.tsx`)
