HarriziSaad commited on
Commit
e09d627
·
verified ·
1 Parent(s): c38a492

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +166 -3
README.md CHANGED
@@ -1,3 +1,166 @@
1
- ---
2
- license: mit
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-4.0
3
+ language:
4
+ - en
5
+ tags:
6
+ - mitochondrial-variants
7
+ - pathogenicity-prediction
8
+ - protein-language-model
9
+ - ESM-2
10
+ - machine-learning
11
+ pretty_name: IDP Pathogenicity Model
12
+ size_categories:
13
+ - 10K<n<100K
14
+ ---
15
+ Mechanistically Informed Machine Learning for Pathogenicity Prediction of Mitochondrial Missense Variants
16
+
17
+ Harrizi S., Nait Idraha I., Mostafa K., Arnoult D.
18
+ Submitted to Bioinformatics (Oxford University Press)
19
+
20
+
21
+ Overview
22
+ This repository contains the full analysis pipeline for a hybrid machine learning framework that predicts the pathogenicity of missense variants in mitochondrial proteins. The model integrates ESM-2 protein language model embeddings with 45 interpretable biophysical features tailored to mitochondrial biology, trained and validated on 11,928 ClinVar-annotated variants spanning 639 mitochondrial proteins.
23
+ Key results:
24
+ ModelAUC–ROCAUC–PROur model (MLP + ESM-2)0.8990.923Random Forest + ESM-20.882—Logistic Regression + ESM-20.864—AlphaMissense0.9420.954PolyPhen-20.8450.799SIFT0.8260.749
25
+ All models evaluated under leave-protein-out cross-validation on the same variant set.
26
+
27
+ Repository Structure
28
+ IDP/
29
+
30
+ ├── data/
31
+ │ ├── raw/ # Downloaded source data
32
+ │ │ ├── clinvar/ # ClinVar variant annotations (release 2024/12)
33
+ │ │ ├── uniprot/ # UniProt mitochondrial protein sequences
34
+ │ │ ├── disprot/ # DisProt intrinsic disorder annotations
35
+ │ │ ├── mobidb/ # MobiDB disorder predictions
36
+ │ │ ├── alphafold/ # AlphaFold structure data
37
+ │ │ ├── dms/ # Deep mutational scanning data
38
+ │ │ └── llpsdb/ # Liquid-liquid phase separation database
39
+ │ │
40
+ │ ├── processed/ # Cleaned and merged datasets
41
+ │ │ ├── mutation_dataset.parquet
42
+ │ │ ├── mutation_features.parquet
43
+ │ │ ├── mutations_dataset_final.parquet / .tsv
44
+ │ │ └── mutations_dataset_mito_strict.parquet / .tsv
45
+ │ │
46
+ │ └── frozen/ # MD5-versioned frozen dataset for reproducibility
47
+ │ ├── mutations_dataset_final_FROZEN.parquet
48
+ │ ├── mutations_dataset_mito_strict_FROZEN.parquet
49
+ │ └── FREEZE_METADATA.json
50
+
51
+ ├── embeddings/ # ESM-2 embeddings (precomputed)
52
+ │ ├── embeddings_combined_full.npy # Global + local combined (full dataset)
53
+ │ ├── embeddings_global_full.npy # Global protein embeddings
54
+ │ ├── embeddings_local_full.npy # Local ±15-residue window embeddings
55
+ │ ├── embeddings_combined_strict.npy # Strict mitochondrial subset
56
+ │ └── embeddings_by_protein.pkl # Per-protein embedding dictionary
57
+
58
+ ├── features/ # Extracted biophysical features
59
+ │ ├── features_classical_full.parquet
60
+ │ └── features_classical_mito_strict.parquet
61
+
62
+ ├── models/ # Trained model checkpoints
63
+ │ ├── checkpoints/
64
+ │ │ ├── pathogenicity_classifier.pkl
65
+ │ │ └── pathogenicity_classifier_v2.pkl
66
+ │ ├── model_classical_baseline.pkl
67
+ │ └── model_classical_mito_strict.pkl
68
+
69
+ ├── results/ # Outputs and evaluations
70
+ │ ├── evaluations/
71
+ │ │ └── lpocv_results.json
72
+ │ ├── lpocv_predictions_final.parquet
73
+ │ ├── hierarchical_validation_final.pkl
74
+ │ ├── full_analysis_with_ensemble.parquet
75
+ │ └── feature_importances_classical.csv
76
+
77
+ ├── scripts/ # Python analysis scripts
78
+ │ ├── data_download.py
79
+ │ ├── build_clinvar_mito_dataset.py
80
+ │ ├── build_mutation_dataset.py
81
+ │ ├── phase1_freeze_and_classical_features.py
82
+ │ ├── esm2_t33_650M_UR50D.py
83
+ │ ├── train_baseline_classical_model.py
84
+ │ ├── final_mlp_embedding_model.py
85
+ │ ├── lpocv_validation.py
86
+ │ ├── hierarchical_validation_no_leakage.py
87
+ │ ├── model_comparison_features_vs_esm2.py
88
+ │ └── analyze_bias_and_train_strict_mito.py
89
+
90
+ └── configs/ # Configuration files
91
+
92
+ Installation
93
+ bashgit clone https://github.com/YOUR_USERNAME/IDP-Pathogenicity-Model.git
94
+ cd IDP-Pathogenicity-Model
95
+
96
+ pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
97
+ pip install fair-esm
98
+ pip install numpy scipy pandas scikit-learn statsmodels
99
+ pip install biopython matplotlib seaborn plotly
100
+ pip install einops tqdm joblib requests pyyaml networkx pyarrow
101
+ Python version: 3.10
102
+ Key dependencies: PyTorch 2.0 · scikit-learn 1.3 · NumPy 1.24 · pandas 2.0 · fair-esm
103
+ GPU: NVIDIA A100 recommended (Google Colab Pro+ used for training)
104
+
105
+ Reproducing the Analysis
106
+ 1. Download raw data
107
+ bashpython scripts/data_download.py
108
+ Downloads ClinVar (release 2024/12), UniProt mitochondrial proteins, DisProt, and MobiDB. Expected runtime: ~30 minutes.
109
+ 2. Build the variant dataset
110
+ bashpython scripts/build_clinvar_mito_dataset.py
111
+ python scripts/build_mutation_dataset.py
112
+ Filters variants to mitochondrial proteins using MitoCarta 3.0 and OMIM annotations.
113
+ 3. Extract biophysical features
114
+ bashpython scripts/phase1_freeze_and_classical_features.py
115
+ Computes 45 biophysical features per variant.
116
+ 4. Extract ESM-2 embeddings
117
+ bashpython scripts/esm2_t33_650M_UR50D.py
118
+ Generates global and local (±15-residue window) embeddings using esm2_t33_650M_UR50D. For proteins longer than 1,022 residues, embeddings are computed on the N-terminal portion. Requires GPU. Expected runtime: ~2–4 hours.
119
+ 5. Train and validate the model
120
+ bashpython scripts/final_mlp_embedding_model.py
121
+ python scripts/lpocv_validation.py
122
+ Trains the MLP classifier and runs leave-protein-out cross-validation. StandardScaler and PCA are fitted exclusively on the training fold — no test-set leakage.
123
+ 6. Baseline model comparison
124
+ bashpython scripts/model_comparison_features_vs_esm2.py
125
+ python scripts/train_baseline_classical_model.py
126
+ Evaluates logistic regression and random forest baselines on the same feature set under the same LPOCV framework.
127
+
128
+ Model Architecture
129
+ ComponentDetailsInput features173 (128 PCA-reduced embedding dimensions + 45 biophysical)ArchitectureMLP: Input → 256 → 128 → 1 (sigmoid)ActivationReLU + Dropout (0.3, 0.2)OptimizerAdam (lr = 0.001, weight decay = 1×10⁻⁴)LossBinary cross-entropyEpochs30–50ValidationLeave-protein-out cross-validationPreprocessingStandardScaler + PCA fitted on training fold only
130
+ Baseline comparison
131
+ ModelAUC–ROCLogistic Regression + ESM-20.864Random Forest + ESM-20.882MLP + ESM-2 (proposed)0.899
132
+
133
+ Dataset
134
+ PropertyValueTotal variants11,928Pathogenic / likely pathogenic6,882 (57.7%)Benign / likely benign5,046 (42.3%)Proteins639SourceClinVar release 2024/12Protein sequencesUniProt release 2024_05Mitochondrial annotationMitoCarta 3.0 + OMIM
135
+ The frozen dataset (data/frozen/) is MD5-checksummed for reproducibility.
136
+
137
+ Benchmarking
138
+ ToolN variantsAUC–ROCAUC–PROur model (MLP + ESM-2)11,7630.8990.923AlphaMissense11,2320.9420.954PolyPhen-27,3040.8450.799SIFT6,9970.8260.749
139
+ AlphaMissense scores retrieved from the public bulk file (AlphaMissense_hg38.tsv.gz). PolyPhen-2 and SIFT scores retrieved via the UniProt Proteins variation API.
140
+
141
+ Data Availability
142
+ Raw data sources:
143
+
144
+ ClinVar: https://www.ncbi.nlm.nih.gov/clinvar/
145
+ UniProt: https://www.uniprot.org/
146
+ MitoCarta 3.0: https://www.broadinstitute.org/mitocarta
147
+ DisProt: https://disprot.org/
148
+ MobiDB: https://mobidb.org/
149
+ AlphaMissense scores: https://storage.googleapis.com/dm_alphamissense/AlphaMissense_hg38.tsv.gz
150
+
151
+ Processed datasets and model checkpoints are available upon reasonable request to the corresponding author.
152
+
153
+ Citation
154
+ Harrizi S., Nait Idraha I., Mostafa K., Arnoult D. (2025).
155
+ Mechanistically informed machine learning for pathogenicity prediction
156
+ of mitochondrial missense variants. Bioinformatics (submitted).
157
+
158
+ Authors
159
+ Saad Harrizi — Laboratoire Santé, Environnement et Biotechnologie, Faculté Des Sciences Ain Chock, Université Hassan II de Casablanca, Maroc.
160
+ Imane Nait Idraha — Laboratoire Santé, Environnement et Biotechnologie, Université Hassan II de Casablanca, Maroc.
161
+ Kabine Mostafa — Laboratoire Santé, Environnement et Biotechnologie, Université Hassan II de Casablanca, Maroc.
162
+ Damien Arnoult (Corresponding author) — INSERM UMR-S-MD 1193, Université Paris Saclay, Villejuif, France; INSERM-U1124, Université Paris Cité, Paris, France; CNRS Research Director (DR2).
163
+ ✉ damien.arnoult@inserm.fr
164
+
165
+ License
166
+ This repository is released for academic and research use. Please contact the corresponding author for commercial use inquiries.