# maira000/fyp-nsclc-lung-cancer-prediction architecture

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

- Interactive diagram: https://gitdiagram.com/maira000/fyp-nsclc-lung-cancer-prediction
- Repository: https://github.com/maira000/fyp-nsclc-lung-cancer-prediction

## Overview

This repository is a notebook-based NSCLC gene-expression research workflow, not a deployed prediction service. It takes GSE81089 expression data through preprocessing, visualization, classification, and differential-expression analysis, producing model comparisons and heatmaps. The README documents these capabilities, but the notebook contents were not provided; links from the named notebooks to specific data files and results are therefore shown as unverified, rather than asserted as observed calls or reads.

Main entry points: [`notebooks/03_NSCLC_DEG_analysis.ipynb`](https://github.com/maira000/fyp-nsclc-lung-cancer-prediction/blob/main/notebooks/03_NSCLC_DEG_analysis.ipynb) (Differential expression), [`notebooks/00_data_preprocessing.ipynb`](https://github.com/maira000/fyp-nsclc-lung-cancer-prediction/blob/main/notebooks/00_data_preprocessing.ipynb) (Data preprocessing), [`data/processed/datafile.csv`](https://github.com/maira000/fyp-nsclc-lung-cancer-prediction/blob/main/data/processed/datafile.csv) (Processed expression), [`data/raw/data_R.csv`](https://github.com/maira000/fyp-nsclc-lung-cancer-prediction/blob/main/data/raw/data_R.csv) (Raw R data)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_data["Expression data"]
  node_raw_fpkm["FPKM expression<br/>[FPKM_cufflinks.tsv]"]
  node_raw_r["Raw R data<br/>[data_R.csv]"]
  node_processed_data["Processed expression<br/>[datafile.csv]"]
  node_upregulated["Upregulated genes"]
  node_downregulated["Downregulated genes"]
end

subgraph group_analysis["Analysis notebooks"]
  node_preprocessing["Data preprocessing"]
  node_visualization["t-SNE visualization"]
  node_ml_models["Classification models<br/>[02_ml_models.ipynb]"]
  node_dge["Differential expression"]
end

subgraph group_results["Research outputs"]
  node_heatmap["Top-gene heatmap"]
  node_updown_heatmap["Up/down heatmap"]
end

node_researcher(("Researcher"))
node_geo[("GEO GSE81089")]

node_researcher -.->|"obtains data"| node_geo
node_geo -.->|"provides expression"| node_preprocessing
node_raw_fpkm -.->|"processes"| node_preprocessing
node_raw_r -.->|"processes"| node_preprocessing
node_preprocessing -.->|"produces"| node_processed_data
node_researcher -.->|"runs"| node_visualization
node_processed_data -.->|"visualizes"| node_visualization
node_researcher -.->|"runs"| node_ml_models
node_processed_data -.->|"classifies"| node_ml_models
node_researcher -.->|"runs"| node_dge
node_raw_r -.->|"analyzes"| node_dge
node_dge -.->|"identifies"| node_upregulated
node_dge -.->|"identifies"| node_downregulated
node_dge -.->|"visualizes"| node_heatmap
node_dge -.->|"visualizes"| node_updown_heatmap

click node_raw_fpkm "https://github.com/maira000/fyp-nsclc-lung-cancer-prediction/blob/main/data/raw/FPKM_cufflinks.tsv"
click node_raw_r "https://github.com/maira000/fyp-nsclc-lung-cancer-prediction/blob/main/data/raw/data_R.csv"
click node_preprocessing "https://github.com/maira000/fyp-nsclc-lung-cancer-prediction/blob/main/notebooks/00_data_preprocessing.ipynb"
click node_processed_data "https://github.com/maira000/fyp-nsclc-lung-cancer-prediction/blob/main/data/processed/datafile.csv"
click node_visualization "https://github.com/maira000/fyp-nsclc-lung-cancer-prediction/blob/main/notebooks/01_tsne_visualization.ipynb"
click node_ml_models "https://github.com/maira000/fyp-nsclc-lung-cancer-prediction/blob/main/notebooks/02_ml_models.ipynb"
click node_dge "https://github.com/maira000/fyp-nsclc-lung-cancer-prediction/blob/main/notebooks/03_NSCLC_DEG_analysis.ipynb"
click node_upregulated "https://github.com/maira000/fyp-nsclc-lung-cancer-prediction/blob/main/data/processed/UPRegulated_NSCLC.csv"
click node_downregulated "https://github.com/maira000/fyp-nsclc-lung-cancer-prediction/blob/main/data/processed/DownRegulated_NSCLC.csv"
click node_heatmap "https://github.com/maira000/fyp-nsclc-lung-cancer-prediction/blob/main/results/Top50_DEGs_heatmap.pdf"
click node_updown_heatmap "https://github.com/maira000/fyp-nsclc-lung-cancer-prediction/blob/main/results/Top50_DEGs_up_down_heatmap.pdf"

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_raw_fpkm,node_raw_r,node_processed_data,node_upregulated,node_downregulated toneBlue
class node_preprocessing,node_visualization,node_ml_models,node_dge,node_geo toneAmber
class node_heatmap,node_updown_heatmap toneMint
class node_researcher toneIndigo
```

## Components

### Expression data

- [FPKM expression](https://github.com/maira000/fyp-nsclc-lung-cancer-prediction/blob/main/data/raw/FPKM_cufflinks.tsv): `data/raw/FPKM_cufflinks.tsv`
- [Raw R data](https://github.com/maira000/fyp-nsclc-lung-cancer-prediction/blob/main/data/raw/data_R.csv): `data/raw/data_R.csv`
- [Processed expression](https://github.com/maira000/fyp-nsclc-lung-cancer-prediction/blob/main/data/processed/datafile.csv): `data/processed/datafile.csv`
- [Upregulated genes](https://github.com/maira000/fyp-nsclc-lung-cancer-prediction/blob/main/data/processed/UPRegulated_NSCLC.csv): `data/processed/UPRegulated_NSCLC.csv`
- [Downregulated genes](https://github.com/maira000/fyp-nsclc-lung-cancer-prediction/blob/main/data/processed/DownRegulated_NSCLC.csv): `data/processed/DownRegulated_NSCLC.csv`

### Analysis notebooks

- [Data preprocessing](https://github.com/maira000/fyp-nsclc-lung-cancer-prediction/blob/main/notebooks/00_data_preprocessing.ipynb): `notebooks/00_data_preprocessing.ipynb`
- [t-SNE visualization](https://github.com/maira000/fyp-nsclc-lung-cancer-prediction/blob/main/notebooks/01_tsne_visualization.ipynb): `notebooks/01_tsne_visualization.ipynb`
- [Classification models](https://github.com/maira000/fyp-nsclc-lung-cancer-prediction/blob/main/notebooks/02_ml_models.ipynb): `notebooks/02_ml_models.ipynb`
- [Differential expression](https://github.com/maira000/fyp-nsclc-lung-cancer-prediction/blob/main/notebooks/03_NSCLC_DEG_analysis.ipynb): `notebooks/03_NSCLC_DEG_analysis.ipynb`

### Research outputs

- [Top-gene heatmap](https://github.com/maira000/fyp-nsclc-lung-cancer-prediction/blob/main/results/Top50_DEGs_heatmap.pdf): `results/Top50_DEGs_heatmap.pdf`
- [Up/down heatmap](https://github.com/maira000/fyp-nsclc-lung-cancer-prediction/blob/main/results/Top50_DEGs_up_down_heatmap.pdf): `results/Top50_DEGs_up_down_heatmap.pdf`

### Other components

- **Researcher**
- **GEO GSE81089**

## Connections

- Researcher → GEO GSE81089: obtains data
- GEO GSE81089 → Data preprocessing: provides expression
- FPKM expression → Data preprocessing: processes
- Raw R data → Data preprocessing: processes
- Data preprocessing → Processed expression: produces
- Researcher → t-SNE visualization: runs
- Processed expression → t-SNE visualization: visualizes
- Researcher → Classification models: runs
- Processed expression → Classification models: classifies
- Researcher → Differential expression: runs
- Raw R data → Differential expression: analyzes
- Differential expression → Upregulated genes: identifies
- Differential expression → Downregulated genes: identifies
- Differential expression → Top-gene heatmap: visualizes
- Differential expression → Up/down heatmap: visualizes
