# sonkolyakos/tdk architecture

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

- Interactive diagram: https://gitdiagram.com/sonkolyakos/tdk
- Repository: https://github.com/sonkolyakos/tdk

## Overview

This repository is a reproducible, descriptive bulk RNA-seq analysis for alternative-splicing dynamics in MCF7 and T47D breast cancer cells. The documented workflow runs from public sequencing data and a sample sheet through preprocessing, expression and splicing analyses, integration, and functional interpretation; a separate branch creates event-centered sashimi plots. The README documents the major analysis stages, but most analysis scripts were not sampled, so unsampled implementations are represented by their exact enclosing paths and links rely on documented workflow statements.

Main entry points: [`bulk_analysis/preprocessing.sh`](https://github.com/sonkolyakos/tdk/blob/main/bulk_analysis/preprocessing.sh) (Preprocessing and quantification), [`bulk_analysis/integration.Rmd`](https://github.com/sonkolyakos/tdk/blob/main/bulk_analysis/integration.Rmd) (Splicing integration), [`bulk_analysis`](https://github.com/sonkolyakos/tdk/tree/main/bulk_analysis) (rMATS splicing), [`bulk_analysis/gene_analysis.Rmd`](https://github.com/sonkolyakos/tdk/blob/main/bulk_analysis/gene_analysis.Rmd) (DGE and GSEA)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_inputs["Study inputs"]
  node_metadata["Sample metadata<br/>[metadata_bulk.csv]"]
end

subgraph group_processing["RNA-seq processing"]
  node_preprocess["Preprocessing and quantification<br/>[preprocessing.sh]"]
end

subgraph group_analysis["Splicing and expression"]
  node_dge["DGE and GSEA<br/>[gene_analysis.Rmd]"]
  node_rmats["rMATS splicing"]
  node_leafcutter["LeafCutter splicing<br/>[leafcutter.sh]"]
  node_landscape["Splicing landscape<br/>[rmats_overlap.Rmd]"]
end

subgraph group_interpretation["Interpretation and plots"]
  node_integration["Splicing integration<br/>[integration.Rmd]"]
  node_dge_das["DAS–DGE overlap"]
  node_ora["Pathway enrichment"]
  node_sashimi["Event sashimi plots"]
end

node_geo[("GEO / SRA reads")]
node_figures["Study figures"]

node_geo -->|"provides reads"| node_preprocess
node_metadata -->|"describes samples"| node_preprocess
node_preprocess -->|"quantifies expression"| node_dge
node_preprocess -->|"aligns reads"| node_rmats
node_preprocess -->|"aligns reads"| node_leafcutter
node_rmats -->|"summarizes events"| node_landscape
node_rmats -->|"matches coordinates"| node_integration
node_leafcutter -->|"matches coordinates"| node_integration
node_integration -->|"compares DAS and DGE"| node_dge_das
node_dge -->|"compares expression"| node_dge_das
node_integration -->|"supplies consensus genes"| node_ora
node_rmats -->|"selects events"| node_sashimi
node_preprocess -->|"supplies alignments"| node_sashimi
node_sashimi -->|"renders plots"| node_figures
node_landscape -->|"generates plots"| node_figures
node_integration -->|"generates plots"| node_figures
node_dge -->|"generates plots"| node_figures
node_ora -->|"generates enrichment"| node_figures
node_dge_das -->|"generates comparisons"| node_figures

click node_metadata "https://github.com/sonkolyakos/tdk/blob/main/metadata_bulk.csv"
click node_preprocess "https://github.com/sonkolyakos/tdk/blob/main/bulk_analysis/preprocessing.sh"
click node_dge "https://github.com/sonkolyakos/tdk/blob/main/bulk_analysis/gene_analysis.Rmd"
click node_rmats "https://github.com/sonkolyakos/tdk/tree/main/bulk_analysis"
click node_leafcutter "https://github.com/sonkolyakos/tdk/blob/main/bulk_analysis/leafcutter.sh"
click node_landscape "https://github.com/sonkolyakos/tdk/blob/main/bulk_analysis/rmats_overlap.Rmd"
click node_integration "https://github.com/sonkolyakos/tdk/blob/main/bulk_analysis/integration.Rmd"
click node_dge_das "https://github.com/sonkolyakos/tdk/blob/main/bulk_analysis/dge_das_overlap"
click node_ora "https://github.com/sonkolyakos/tdk/blob/main/common_genes_multiDB_ORA.R"
click node_sashimi "https://github.com/sonkolyakos/tdk/blob/main/sashimi/make_clean_event_sashimi_v3.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_metadata toneBlue
class node_preprocess,node_geo toneAmber
class node_dge,node_rmats,node_leafcutter,node_landscape toneMint
class node_integration,node_dge_das,node_ora,node_sashimi toneRose
class node_figures toneIndigo
```

## Components

### Study inputs

- [Sample metadata](https://github.com/sonkolyakos/tdk/blob/main/metadata_bulk.csv): `metadata_bulk.csv`

### RNA-seq processing

- [Preprocessing and quantification](https://github.com/sonkolyakos/tdk/blob/main/bulk_analysis/preprocessing.sh): `bulk_analysis/preprocessing.sh`

### Splicing and expression

- [DGE and GSEA](https://github.com/sonkolyakos/tdk/blob/main/bulk_analysis/gene_analysis.Rmd): `bulk_analysis/gene_analysis.Rmd`
- [rMATS splicing](https://github.com/sonkolyakos/tdk/tree/main/bulk_analysis): `bulk_analysis`
- [LeafCutter splicing](https://github.com/sonkolyakos/tdk/blob/main/bulk_analysis/leafcutter.sh): `bulk_analysis/leafcutter.sh`
- [Splicing landscape](https://github.com/sonkolyakos/tdk/blob/main/bulk_analysis/rmats_overlap.Rmd): `bulk_analysis/rmats_overlap.Rmd`

### Interpretation and plots

- [Splicing integration](https://github.com/sonkolyakos/tdk/blob/main/bulk_analysis/integration.Rmd): `bulk_analysis/integration.Rmd`
- [DAS–DGE overlap](https://github.com/sonkolyakos/tdk/blob/main/bulk_analysis/dge_das_overlap): `bulk_analysis/dge_das_overlap`
- [Pathway enrichment](https://github.com/sonkolyakos/tdk/blob/main/common_genes_multiDB_ORA.R): `common_genes_multiDB_ORA.R`
- [Event sashimi plots](https://github.com/sonkolyakos/tdk/blob/main/sashimi/make_clean_event_sashimi_v3.py): `sashimi/make_clean_event_sashimi_v3.py`

### Other components

- **GEO / SRA reads**
- **Study figures**

## Connections

- GEO / SRA reads → Preprocessing and quantification: provides reads (evidence: `README.md`)
- Sample metadata → Preprocessing and quantification: describes samples (evidence: `README.md`)
- Preprocessing and quantification → DGE and GSEA: quantifies expression (evidence: `README.md`)
- Preprocessing and quantification → rMATS splicing: aligns reads (evidence: `README.md`)
- Preprocessing and quantification → LeafCutter splicing: aligns reads (evidence: `README.md`)
- rMATS splicing → Splicing landscape: summarizes events (evidence: `README.md`)
- rMATS splicing → Splicing integration: matches coordinates (evidence: `README.md`)
- LeafCutter splicing → Splicing integration: matches coordinates (evidence: `README.md`)
- Splicing integration → DAS–DGE overlap: compares DAS and DGE (evidence: `README.md`)
- DGE and GSEA → DAS–DGE overlap: compares expression (evidence: `README.md`)
- Splicing integration → Pathway enrichment: supplies consensus genes (evidence: `README.md`)
- rMATS splicing → Event sashimi plots: selects events (evidence: `README.md`)
- Preprocessing and quantification → Event sashimi plots: supplies alignments (evidence: `README.md`)
- Event sashimi plots → Study figures: renders plots (evidence: `README.md`)
- Splicing landscape → Study figures: generates plots (evidence: `README.md`)
- Splicing integration → Study figures: generates plots (evidence: `README.md`)
- DGE and GSEA → Study figures: generates plots (evidence: `README.md`)
- Pathway enrichment → Study figures: generates enrichment (evidence: `README.md`)
- DAS–DGE overlap → Study figures: generates comparisons (evidence: `README.md`)
