# ibrahimallmamun/statistical-analysis architecture

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

- Interactive diagram: https://gitdiagram.com/ibrahimallmamun/statistical-analysis
- Repository: https://github.com/ibrahimallmamun/statistical-analysis

## Overview

This repository is a collection of independent statistical research projects, a litigation-reporting dashboard, and a small SQL Server data-loading experiment—not one unified application. The dashboard workflow embeds report data for browser-side case details and filtered CSV export; the SQL experiment loads exported tables and also contains a separate sample query. Project folders hold analysis scripts, datasets, and results, but the available excerpts do not establish their internal execution links. The dashboard’s documented capabilities are shown; other project relationships are omitted where source evidence is unavailable.

Main entry points: [`Litigation/script.js`](https://github.com/ibrahimallmamun/statistical-analysis/blob/main/Litigation/script.js) (Dashboard interactions), [`Litigation/litigation_dashboard.RMD`](https://github.com/ibrahimallmamun/statistical-analysis/blob/main/Litigation/litigation_dashboard.RMD) (Dashboard report), [`Fastapi Test/odbc-docker/load_to_sql.py`](https://github.com/ibrahimallmamun/statistical-analysis/blob/main/Fastapi%20Test/odbc-docker/load_to_sql.py) (SQL table loader), [`Litigation/helpers.R`](https://github.com/ibrahimallmamun/statistical-analysis/blob/main/Litigation/helpers.R) (Filter generation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_litigation["Litigation dashboard"]
  node_report["Dashboard report"]
  node_filters["Filter generation<br/>[helpers.R]"]
  node_browser["Dashboard interactions<br/>[script.js]"]
  node_litdata[("Report data<br/>[data.RDS]")]
end

subgraph group_research["Research analyses"]
  node_research_projects["Research projects"]
  node_project10["Hypertension analysis<br/>[analysis.Rmd]"]
  node_project11["Research analysis<br/>[analysis.Rmd]"]
  node_project12["Research analysis"]
  node_project13["Breast cancer analysis"]
  node_project14["Sepsis analysis"]
  node_project15["Ocular analysis"]
  node_project7["Metastatic cancer analysis<br/>[script.R]"]
  node_project9["Screening analysis<br/>[analysis.Rmd]"]
end

subgraph group_sql["SQL experiment"]
  node_export[("CSV exports")]
  node_loader["SQL table loader<br/>[load_to_sql.py]"]
  node_sample_query["Sample SQL query<br/>[main.py]"]
end

node_sqlserver[("SQL Server")]

node_report -->|"loads script"| node_browser
node_report -->|"injects payload"| node_browser
node_filters -->|"generates filters"| node_browser
node_export -->|"loads tables"| node_loader
node_loader -->|"creates and writes"| node_sqlserver
node_sample_query -->|"queries rows"| node_sqlserver

click node_report "https://github.com/ibrahimallmamun/statistical-analysis/blob/main/Litigation/litigation_dashboard.RMD"
click node_filters "https://github.com/ibrahimallmamun/statistical-analysis/blob/main/Litigation/helpers.R"
click node_browser "https://github.com/ibrahimallmamun/statistical-analysis/blob/main/Litigation/script.js"
click node_litdata "https://github.com/ibrahimallmamun/statistical-analysis/blob/main/Litigation/data.RDS"
click node_research_projects "https://github.com/ibrahimallmamun/statistical-analysis/tree/main/Project-2"
click node_project10 "https://github.com/ibrahimallmamun/statistical-analysis/blob/main/Project-10/analysis.Rmd"
click node_project11 "https://github.com/ibrahimallmamun/statistical-analysis/blob/main/Project-11/analysis.Rmd"
click node_project7 "https://github.com/ibrahimallmamun/statistical-analysis/blob/main/Project-7%20---/V2/script.R"
click node_project9 "https://github.com/ibrahimallmamun/statistical-analysis/blob/main/Project-9%20---/analysis.Rmd"
click node_export "https://github.com/ibrahimallmamun/statistical-analysis/tree/main/Fastapi%20Test/odbc-docker/export"
click node_loader "https://github.com/ibrahimallmamun/statistical-analysis/blob/main/Fastapi%20Test/odbc-docker/load_to_sql.py"
click node_sample_query "https://github.com/ibrahimallmamun/statistical-analysis/blob/main/Fastapi%20Test/main.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_report,node_filters,node_browser,node_litdata toneBlue
class node_research_projects,node_project10,node_project11,node_project12,node_project13,node_project14,node_project15,node_project7,node_project9,node_sqlserver toneAmber
class node_export,node_loader,node_sample_query toneMint
```

## Components

### Litigation dashboard

- [Dashboard report](https://github.com/ibrahimallmamun/statistical-analysis/blob/main/Litigation/litigation_dashboard.RMD): `Litigation/litigation_dashboard.RMD`
- [Filter generation](https://github.com/ibrahimallmamun/statistical-analysis/blob/main/Litigation/helpers.R): `Litigation/helpers.R`
- [Dashboard interactions](https://github.com/ibrahimallmamun/statistical-analysis/blob/main/Litigation/script.js): `Litigation/script.js`
- [Report data](https://github.com/ibrahimallmamun/statistical-analysis/blob/main/Litigation/data.RDS): `Litigation/data.RDS`

### Research analyses

- [Research projects](https://github.com/ibrahimallmamun/statistical-analysis/tree/main/Project-2): `Project-2`
- [Hypertension analysis](https://github.com/ibrahimallmamun/statistical-analysis/blob/main/Project-10/analysis.Rmd): `Project-10/analysis.Rmd`
- [Research analysis](https://github.com/ibrahimallmamun/statistical-analysis/blob/main/Project-11/analysis.Rmd): `Project-11/analysis.Rmd`
- **Research analysis**
- **Breast cancer analysis**
- **Sepsis analysis**
- **Ocular analysis**
- [Metastatic cancer analysis](https://github.com/ibrahimallmamun/statistical-analysis/blob/main/Project-7%20---/V2/script.R): `Project-7 ---/V2/script.R`
- [Screening analysis](https://github.com/ibrahimallmamun/statistical-analysis/blob/main/Project-9%20---/analysis.Rmd): `Project-9 ---/analysis.Rmd`

### SQL experiment

- [CSV exports](https://github.com/ibrahimallmamun/statistical-analysis/tree/main/Fastapi%20Test/odbc-docker/export): `Fastapi Test/odbc-docker/export`
- [SQL table loader](https://github.com/ibrahimallmamun/statistical-analysis/blob/main/Fastapi%20Test/odbc-docker/load_to_sql.py): `Fastapi Test/odbc-docker/load_to_sql.py`
- [Sample SQL query](https://github.com/ibrahimallmamun/statistical-analysis/blob/main/Fastapi%20Test/main.py): `Fastapi Test/main.py`

### Other components

- **SQL Server**

## Connections

- Dashboard report → Dashboard interactions: loads script (evidence: `Litigation/script.js`)
- Dashboard report → Dashboard interactions: injects payload (evidence: `Litigation/script.js`)
- Filter generation → Dashboard interactions: generates filters (evidence: `Litigation/script.js`)
- CSV exports → SQL table loader: loads tables (evidence: `Fastapi Test/odbc-docker/load_to_sql.py`)
- SQL table loader → SQL Server: creates and writes (evidence: `Fastapi Test/odbc-docker/load_to_sql.py`)
- Sample SQL query → SQL Server: queries rows (evidence: `Fastapi Test/main.py`)
