# sansk552/tcga_pancancer_data architecture

> Architecture diagram of the GitHub repository sansk552/tcga_pancancer_data, 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/sansk552/tcga_pancancer_data
- Repository: https://github.com/sansk552/tcga_pancancer_data

## Overview

This repository packages a documented TCGA pan-cancer analysis and a browser-based results portal. The user-facing workflow is to search a transcription factor or browse/compare cancers; the research workflow described in the README runs from RNA-seq acquisition and preprocessing through network inference, tumor-state clustering, and causal regulator identification. The supplied tree shows result directories but no source excerpts, so internal pipeline links rely on README statements; implementation details and unshown code relationships are omitted.

Main entry points: [`index.html`](https://github.com/sansk552/tcga_pancancer_data/blob/main/index.html) (Interactive portal), [`TCGA_ACC_files`](https://github.com/sansk552/tcga_pancancer_data/tree/main/TCGA_ACC_files) (Per-cancer results), [`portal_data.json`](https://github.com/sansk552/tcga_pancancer_data/blob/main/portal_data.json) (Pan-cancer dataset), [`portal_regulon_targets`](https://github.com/sansk552/tcga_pancancer_data/tree/main/portal_regulon_targets) (Regulon targets)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_analysis["Cohort Analysis"]
  node_preprocess["RNA-seq preprocessing"]
  node_network["GRN inference"]
  node_state["State clustering"]
  node_causal["Causal analysis"]
end

subgraph group_results["Cancer Results"]
  node_cohortresults[("Per-cancer results")]
  node_networkresults[("Network outputs")]
  node_scenicresults[("pySCENIC outputs")]
  node_stateoutputs[("State results")]
end

subgraph group_portal["Results Portal"]
  node_portaldata["Pan-cancer dataset<br/>[portal_data.json]"]
  node_targets[("Regulon targets")]
  node_web["Interactive portal<br/>[index.html]"]
end

subgraph group_external["External Inputs"]
  node_tcga[("TCGA cohorts")]
  node_recount3[("recount3 counts")]
end

node_researcher(("Portal user"))

node_tcga -->|"provides cohorts"| node_recount3
node_recount3 -->|"supplies counts"| node_preprocess
node_preprocess -->|"expression matrices"| node_network
node_network -->|"regulon activity"| node_state
node_state -->|"defines tumor states"| node_causal
node_causal -->|"identifies regulators"| node_cohortresults
node_network -.->|"produces networks"| node_networkresults
node_network -.->|"produces regulons"| node_scenicresults
node_causal -.->|"stores state analyses"| node_stateoutputs
node_cohortresults -->|"assembled into"| node_portaldata
node_portaldata -->|"loads results"| node_web
node_targets -->|"supports target lookup"| node_web
node_researcher -->|"searches and browses"| node_web

click node_cohortresults "https://github.com/sansk552/tcga_pancancer_data/tree/main/TCGA_ACC_files"
click node_networkresults "https://github.com/sansk552/tcga_pancancer_data/tree/main/TCGA_ACC_files/TCGA_ACC_network_results"
click node_scenicresults "https://github.com/sansk552/tcga_pancancer_data/tree/main/TCGA_ACC_files/TCGA_ACC_pyscenic_results"
click node_stateoutputs "https://github.com/sansk552/tcga_pancancer_data/tree/main/TCGA_ACC_files/TCGA_ACC_state_clustering_results"
click node_portaldata "https://github.com/sansk552/tcga_pancancer_data/blob/main/portal_data.json"
click node_targets "https://github.com/sansk552/tcga_pancancer_data/tree/main/portal_regulon_targets"
click node_web "https://github.com/sansk552/tcga_pancancer_data/blob/main/index.html"

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_preprocess,node_network,node_state,node_causal,node_researcher toneBlue
class node_cohortresults,node_networkresults,node_scenicresults,node_stateoutputs toneAmber
class node_portaldata,node_targets,node_web toneMint
class node_tcga,node_recount3 toneRose
```

## Components

### Cohort Analysis

- **RNA-seq preprocessing**
- **GRN inference**
- **State clustering**
- **Causal analysis**

### Cancer Results

- [Per-cancer results](https://github.com/sansk552/tcga_pancancer_data/tree/main/TCGA_ACC_files): `TCGA_ACC_files`
- [Network outputs](https://github.com/sansk552/tcga_pancancer_data/tree/main/TCGA_ACC_files/TCGA_ACC_network_results): `TCGA_ACC_files/TCGA_ACC_network_results`
- [pySCENIC outputs](https://github.com/sansk552/tcga_pancancer_data/tree/main/TCGA_ACC_files/TCGA_ACC_pyscenic_results): `TCGA_ACC_files/TCGA_ACC_pyscenic_results`
- [State results](https://github.com/sansk552/tcga_pancancer_data/tree/main/TCGA_ACC_files/TCGA_ACC_state_clustering_results): `TCGA_ACC_files/TCGA_ACC_state_clustering_results`

### Results Portal

- [Pan-cancer dataset](https://github.com/sansk552/tcga_pancancer_data/blob/main/portal_data.json): `portal_data.json`
- [Regulon targets](https://github.com/sansk552/tcga_pancancer_data/tree/main/portal_regulon_targets): `portal_regulon_targets`
- [Interactive portal](https://github.com/sansk552/tcga_pancancer_data/blob/main/index.html): `index.html`

### External Inputs

- **TCGA cohorts**
- **recount3 counts**

### Other components

- **Portal user**

## Connections

- TCGA cohorts → recount3 counts: provides cohorts (evidence: `README.md`)
- recount3 counts → RNA-seq preprocessing: supplies counts (evidence: `README.md`)
- RNA-seq preprocessing → GRN inference: expression matrices (evidence: `README.md`)
- GRN inference → State clustering: regulon activity (evidence: `README.md`)
- State clustering → Causal analysis: defines tumor states (evidence: `README.md`)
- Causal analysis → Per-cancer results: identifies regulators (evidence: `README.md`)
- GRN inference → Network outputs: produces networks
- GRN inference → pySCENIC outputs: produces regulons
- Causal analysis → State results: stores state analyses
- Per-cancer results → Pan-cancer dataset: assembled into (evidence: `README.md`)
- Pan-cancer dataset → Interactive portal: loads results (evidence: `README.md`)
- Regulon targets → Interactive portal: supports target lookup (evidence: `README.md`)
- Portal user → Interactive portal: searches and browses (evidence: `README.md`)
