How boshuouyang/bfregnn-cox-for-pyroptosis-in-tnbc works
This repository ranks candidate drug combinations for pyroptosis therapy in triple-negative breast cancer. The workflow selects two drugs, builds a drug-target-to-focused-gene graph from a protein interaction network, loads and normalizes patient expression and survival data, trains a graph neural network with a Cox survival objective, and records the combination score. The graph preserves graph construction, cohort preparation, model internals, and result recording as distinct stages. The README describes configurable thresholds and all-pairs runs; unsampled data wiring is not inferred.
Main entry points: main.py Combination runner · model.py BFRegNN · utils.py Patient data reader · train.py Training loop
Components 17
Graph construction
- Combination runner
code/main.py - Network builder
code/utils.py - PPI network
data/ppi_global_graph_0.6.pkl - Drug targets
data/9_drug_targets_1.0_revised.tsv - Focused genes
data/gene_pyroptosis_9.txt
Patient cohort
- Patient data reader
code/utils.py - Patient metadata
data/FUSCCTNBC_info.csv - Clinical outcomes
data/fuscctnbc_clinical_patient.txt - Data normalization
code/utils.py
Model and training
- Gene dataset
code/train.py - Training loop
code/train.py - Model builder
code/train.py - BFRegNN
code/model.py - Graph layers
code/module.py - Cox objective
code/model.py
Ranking results
- Combination results
code/drug_combi_result.txt
Other components
- Researcher
Connections 17
- Researcher → Combination runner: selects drugs
README.md - Combination runner → Network builder: builds graph
code/main.py - Combination runner → PPI network: loads or builds
code/main.py - Combination runner → Drug targets: loads targets
code/main.py - Combination runner → Patient data reader: reads cohort
code/main.py - Combination runner → Data normalization: normalizes data
code/main.py - Combination runner → Model builder: builds model
code/main.py - Combination runner → Training loop: trains model
code/main.py - Combination runner → Combination results: appends score
code/main.py - Network builder → Focused genes: selects genes
code/utils.py - Model builder → BFRegNN: instantiates
code/train.py - Training loop → Gene dataset: iterates batches
code/train.py - Training loop → BFRegNN: optimizes
code/train.py - BFRegNN → Graph layers: applies layers
code/model.py - BFRegNN → Cox objective: predicts risk
code/model.py - Patient data reader → Patient metadata: reads metadata
- Patient data reader → Clinical outcomes: reads outcomes