Replace with audited BioFormBench-Real (49 rows, sourced) and new BioFormBench-Marketed (165 rows, 80 sequenced antibodies); remove dev scaffolding and unsourced placeholder data
Browse filesFiles changed (11)
- README.md+203-230
- bioformbench_extracted_real_20260903.csvDeleted-9
- bioformbench_extracted_real_batch2_20260903.csvDeleted-17
- bioformbench_extracted_real_batch3_20260903.csvDeleted-15
- bioformbench_extracted_real_batch4_20260903.csvDeleted-4
- bioformbench_marketed.csvAdded
- bioformbench_seed.csv → bioformbench_real.csvRenamed+27-45
- bioformbench_seed_backup_20260903.csvDeleted-27
- synthetic_generator.pyDeleted-363
- synthetic_training_data.csvDeleted-3
- synthetic_training_data.parquetDeleted-3
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230---dataset_info:features:- name: protein_namedtype: stringdescription: Protein identifier (e.g., P1_IgG, P2_scFv, P3_Fab)- name: protein_mwdtype: float32description: Molecular weight in kDa- name: protein_pidtype: float32description: Isoelectric point (pH)- name: protein_tm_baselinedtype: float32description: Baseline melting temperature (°C)- name: buffer_speciesdtype: stringdescription: Buffer type (histidine, phosphate, acetate, citrate)- name: buffer_phdtype: float32description: Buffer pH value- name: ionic_strength_mmdtype: float32description: Ionic strength in mM- name: stabilizer_typedtype: stringdescription: Stabilizer chemical name (trehalose, sucrose, sorbitol, glycerol, etc.)- name: stabilizer_conc_percentdtype: float32description: Stabilizer concentration (% w/v)- name: stability_outcomedtype: float32description: Measured stability score (0-1 scale, higher = more stable)- name: stability_metricdtype: stringdescription: Measurement type (DSF_Tm_shift, SEC_aggregation_percent, turbidity)- name: temperature_Cdtype: float32description: Storage temperature condition (°C)- name: timepoint_daysdtype: int32description: Measurement timepoint (days)- name: source_paperdtype: stringdescription: Literature source citationsplits:- name: trainnum_examples: 49- name: test_loponum_examples: 18- name: fullnum_examples: 67license: cc-by-4.0---# BioFormBench: Benchmark for Generative Biologics Formulation Design## Dataset Description**BioFormBench** is a curated, open-access benchmark of **67 real biologics formulations** extracted from peer-reviewed literature. It enables rigorous evaluation of generative models for de novo formulation design under extreme data scarcity.### Dataset Statistics| Property | Value ||----------|-------|| **Total formulations** | 67 || **LOPO evaluation set** | 18 (3 proteins × 6 each) || **Proteins** | 15+ distinct biologics (IgGs, scFvs, Fabs, etc.) || **Buffer species** | 6 types (histidine, phosphate, acetate, citrate, etc.) || **Stabilizers** | 8+ types (trehalose, sucrose, sorbitol, glycerol, etc.) || **pH range** | 4.5–7.5 || **Ionic strength range** | 50–300 mM || **Stability metrics** | DSF Tm-shift, SEC % aggregation, turbidity |## Use Cases1. **Train generative formulation design models** on synthetic data, evaluate on real BioFormBench2. **Leave-one-protein-out (LOPO) cross-validation** to test few-shot adaptation3. **Benchmark predictive baselines** (Random Forest, SVM, MLP) against generative approaches4. **Ablation studies** to measure impact of architecture components5. **Open-science resource** for formulation design research community## Dataset Construction### Curation Process1. **Literature mining:** Systematic search of peer-reviewed papers on biologics formulation screening2. **Extraction:** DSF (differential scanning fluorimetry), SEC (size-exclusion chromatography), turbidity data from supplementary materials3. **Validation:** Cross-check protein properties (MW, pI, Tm) against UniProt; discard inconsistent entries4. **Standardization:** Normalize all measurements to 0–1 scale (higher = more stable)### Data Quality- ✅ **Zero errors:** All 67 entries manually verified- ✅ **Reproducible:** Linked to original papers via DOI- ✅ **Balanced:** 3–6 formulations per protein (average 4.5)- ✅ **Diverse:** Multiple buffer types, pH values, stabilizer choices per protein### Proteins Included (LOPO Evaluation Set)| Protein | Type | MW (kDa) | pI | # Formulations | Source ||---------|------|----------|-----|---|---|| **P1** | IgG (humanized) | 150 | 6.2 | 6 | Lit. mining || **P2** | scFv (single-chain Fv) | 27 | 5.8 | 6 | Lit. mining || **P3** | Fab (fragment antigen-binding) | 50 | 5.5 | 6 | Lit. mining |## Data Format### CSV Structure```csvprotein_name,protein_mw,protein_pi,protein_tm_baseline,buffer_species,buffer_ph,ionic_strength_mm,stabilizer_type,stabilizer_conc_percent,stability_outcome,stability_metric,temperature_C,timepoint_days,source_paperP1_IgG,150,6.2,70.0,phosphate,6.5,150,trehalose,50,0.92,DSF_Tm_shift,4,365,Arakawa2007_JPS100_1692P1_IgG,150,6.2,70.0,histidine,6.0,100,sucrose,100,0.88,SEC_aggregation,4,180,Arakawa2007_JPS100_1692P2_scFv,27,5.8,65.0,acetate,5.5,80,sorbitol,75,0.85,turbidity,25,90,Smith2023_PharmaRes40_2341...```### Column Descriptions- **protein_name:** Identifier combining type and name- **protein_mw:** Molecular weight in kDa- **protein_pi:** Isoelectric point (pH at zero net charge)- **protein_tm_baseline:** Melting temperature without stabilizers- **buffer_species:** Buffer chemical (histidine, phosphate, acetate, citrate)- **buffer_ph:** pH value of formulation- **ionic_strength_mm:** Salt concentration (mM)- **stabilizer_type:** Osmolyte/excipient (trehalose, sucrose, sorbitol, glycerol, etc.)- **stabilizer_conc_percent:** Stabilizer concentration (% w/v)- **stability_outcome:** Normalized score [0-1] where 1 = most stable- **stability_metric:** Measurement method (DSF, SEC, turbidity, etc.)- **temperature_C:** Storage temperature (°C)- **timepoint_days:** Duration of storage (days)- **source_paper:** Original publication cite key## Splits### Train Split (49 formulations)- Proteins with 1-3 formulations per protein- Used for **baseline training** and **model pretraining validation**- Sparse but real data### Test Split: LOPO (18 formulations)- Exactly 3 proteins × 6 formulations each- **Leave-one-protein-out cross-validation:**- Fold 1: Train on P2+P3 (12 formulations), test on P1 (6 formulations)- Fold 2: Train on P1+P3 (12 formulations), test on P2 (6 formulations)- Fold 3: Train on P1+P2 (12 formulations), test on P3 (6 formulations)- Evaluates **few-shot adaptation** to novel proteins### Full Split (67 formulations)- All collected formulations- Used for exploratory analysis, future expansion## Benchmark ResultsModels evaluated on BioFormBench LOPO:| Model | Recall@10 | Calibration (r) | Coverage (%) ||-------|-----------|---|---|| **BioForm-LM (full)** | 0.167 | 0.267 ± 0.660 | 35.3% || Random Forest (baseline) | 0.08 | 0.15 | 12.5% || SVM (baseline) | 0.05 | 0.10 | 8.3% || Random sampling | — | — | 7.5% |## Ethical Considerations- ✅ **Public data only:** All formulations from published, peer-reviewed literature- ✅ **No proprietary data:** No private pharmaceutical data included- ✅ **Academic use:** Designed for research, not commercial deployment- ✅ **Computational only:** No real protein/drug data, only published propertiesGenerated formulations are **research hypotheses**, not clinical recommendations.## Citation```bibtex@dataset{kumar2026bioformbench,title={BioFormBench: Benchmark for Generative Biologics Formulation Design},author={Kumar, Bonthada Sravan},year={2026},publisher={Hugging Face Datasets},url={https://huggingface.co/datasets/Sravankumarbonthada/BioFormBench}}```## Download & Access### Via Hugging Face Datasets```pythonfrom datasets import load_dataset# Load full datasetdataset = load_dataset("Sravankumarbonthada/BioFormBench")# Load specific splittrain_data = load_dataset("Sravankumarbonthada/BioFormBench", split="train")test_data = load_dataset("Sravankumarbonthada/BioFormBench", split="test_lopo")```### Via GitHub```bashgit clone https://github.com/Maheshbonthada/bioform-lm.gitcd bioform-lm# See data/bioformbench_extracted_real_*.csv```## Future Expansion**Planned scalings:**- Target: 200+ formulations across 8-10 proteins- Systematic literature mining of supplementary materials- Inclusion of immunogenicity + manufacturability data- Temporal stability curves (not just endpoint measurements)## Contact**Dataset Curator:** Bonthada Sravan KumarEmail: sravansaijohn@gmail.comQuestions: Open issue on GitHub (Maheshbonthada/bioform-lm)## License**CC-BY-4.0** - Attribution required for academic/commercial use---**Last Updated:** September 7, 2026**Status:** ✅ Released | 🔄 Accepting contributions via GitHub123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203---dataset_info:- config_name: bioformbench_realfeatures:- name: protein_iddtype: stringdescription: Protein identifier (traceable to source_id)- name: protein_mw_kdadtype: float32description: Molecular weight (kDa)- name: protein_pidtype: float32description: Isoelectric point- name: protein_tm_baseline_cdtype: float32description: Baseline melting temperature (C), no stabilizer- name: buffer_speciesdtype: stringdescription: Buffer chemical- name: buffer_conc_mmdtype: float32description: Buffer concentration (mM)- name: phdtype: float32description: Formulation pH- name: ionic_strength_mmdtype: float32description: Ionic strength (mM)- name: osmolarity_mosm_kgdtype: float32description: Osmolarity (mOsm/kg)- name: stabilizers_jsondtype: stringdescription: JSON dict of stabilizer name to concentration- name: temperature_cdtype: float32description: Storage/measurement temperature (C)- name: stability_scoredtype: float32description: Normalized stability outcome, 0-1, higher = more stable- name: measured_aggregation_percentdtype: float32description: SEC percent aggregation, where reported- name: measured_tm_shift_cdtype: float32description: DSF Tm shift versus baseline, where reported- name: source_titledtype: stringdescription: Title of the primary literature source (required; unsourced rows are excluded, see Data Integrity)- name: source_iddtype: stringdescription: PubMed Central identifier of the primary sourcesplits:- name: fullnum_examples: 49- config_name: bioformbench_marketedfeatures:- name: inndtype: stringdescription: Antibody International Nonproprietary Name- name: titledtype: stringdescription: FDA label title (product name, manufacturer)- name: phdtype: float32description: Formulation pH parsed from the label- name: buffer_speciesdtype: stringdescription: Buffer chemical, where fully resolved- name: buffer_conc_mmdtype: float32description: Buffer concentration (mM), where fully resolved- name: surfactantdtype: stringdescription: Surfactant identity, where present- name: fv_pidtype: float32description: Isoelectric point computed from the VH+VL Fv sequence (Biopython ProtParam)- name: fv_mw_kdadtype: float32description: Fv molecular weight computed from sequence- name: source_textdtype: stringdescription: Verbatim label sentence(s) the row was parsed fromsplits:- name: fullnum_examples: 165license: cc-by-4.0---# BioFormBench: Two Open Benchmarks for Biologics Formulation ResearchThis release contains **two** datasets, kept separate because they answer differentquestions and neither should be read as a substitute for the other.## Data integrity note (please read before using either dataset)An earlier internal draft of BioFormBench-Real contained 67 rows. Auditing`source_title`/`source_id` provenance found that **18 of those rows had nocitation** and used placeholder identifiers (`protein_1`–`protein_5`) withround, unverified descriptors (50.0 kDa / pI 7.2 / Tm 65.0 C) repeated acrossotherwise-different molecules. Those rows have been **removed**. The 49 rows inthis release all trace to a PubMed Central ID and were checked against theirsource text. If you have a copy of the 67-row file, discard it and use this one.## 1. BioFormBench-Real (49 rows, 13 proteins)Literature-mined formulation-outcome measurements (DSF Tm-shift, SEC %aggregation, turbidity) for 13 real proteins across 11 primary papers, each rowtraceable to its source. This is the dataset to use for any claim about*stability-optimal* formulation, but at n=13 proteins (9 with enoughper-protein data for leave-one-protein-out evaluation) it is underpowered for adefinitive protein-conditionality verdict — see the companion paper'sDiscussion for what scaling this further would require.## 2. BioFormBench-Marketed (165 rows, 80 antibodies) — new in this release165 formulation presentations for 80 FDA-approved antibody therapeutics,deterministically parsed from FDA Structured Product Labeling (DailyMed) andlinked to real VH/VL variable-domain sequences from Thera-SAbDab. Every parsedfield keeps its verbatim source sentence (`source_text`) for audit. To ourknowledge this is the first open dataset connecting therapeutic antibodysequence to marketed formulation composition at this scale.This dataset encodes **what was chosen** for an approved product, not what isnecessarily stability-optimal — marketed choices are also shaped bymanufacturability, prior platform investment and regulatory precedent. Used atfull sample size (n=80) with proper multiple-comparison correction andleave-one-protein-out validation, protein sequence identity does **not**detectably predict the chosen pH or buffer beyond a constant "platform"baseline (all sign-flip p > 0.8) — see the companion paper for the fullstatistical analysis, including a worked example of how a naive n=27subsample of this same data produces a spurious, non-reproducible positiveresult (Spearman rho=-0.464, p=0.015, uncorrected) that a full-sample,corrected, out-of-sample analysis overturns.## Use cases1. Test protein-conditional formulation hypotheses at adequate statisticalpower, with the selection-artifact and platform-baseline results in thecompanion paper as a required comparison point, not merely a possible one.2. Train/evaluate predictive or generative formulation models against adocumented platform baseline rather than only random/uniform baselines.3. Audit other mechanistic formulation simulators using the diagnosticdescribed in the companion paper (dead-slot spread, interior-argmaxfraction) against these real formulations.4. Sequence-to-formulation representation learning (BioFormBench-Marketedincludes Fv-derived descriptors so no additional sequence processing isrequired to get started).## Files- `bioformbench_real.csv` — 49 rows, BioFormBench-Real (see schema above).- `bioformbench_marketed.csv` — 165 rows, BioFormBench-Marketed (see schemaabove; full computed-descriptor and label-parse columns included).## Known limitations- BioFormBench-Real: n=13 proteins (9 LOPO-eligible) is small; treat anyper-protein result as illustrative, and prefer the aggregate statistics withtheir reported confidence intervals.- BioFormBench-Marketed: pH is extracted with a confidence flag(`ph_is_range`/composition-sentence provenance in the full release columns);the low-confidence stratum is retained rather than silently dropped, and thecompanion paper shows the main finding (no sequence effect) holds in thehigh-confidence stratum alone. Only 27–28 of 80 molecules have a fullyresolved buffer species *and* concentration; buffer-level analyses shoulduse that subset and are correspondingly lower-powered.- Neither dataset should be used to generate or select actual formulations forlaboratory or clinical use without independent verification; see thecompanion paper's Ethics statement.## Citation```bibtex@dataset{kumar2026bioformbench,title={BioFormBench: Two Open Benchmarks for Biologics Formulation Research},author={Kumar, Bonthada Sravan},year={2026},publisher={Hugging Face Datasets},url={https://huggingface.co/datasets/Sravankumarbonthada/BioFormBench}}```## SourcesBioFormBench-Marketed is built from public FDA Structured Product Labeling(DailyMed) and Thera-SAbDab (Raybould et al., Nucleic Acids Research 2020).BioFormBench-Real is mined from 11 open-access PubMed Central articles, eachcited per-row via `source_id`.## ContactBonthada Sravan Kumar — sravansaijohn@gmail.com — issues via GitHub(Maheshbonthada/bioform-lm)## LicenseCC-BY-4.0---**Last updated:** September 8, 2026
123456789protein_id,protein_mw_kda,protein_pi,protein_tm_baseline_c,buffer_species,buffer_conc_mm,ph,ionic_strength_mm,osmolarity_mosm_kg,stabilizers_json,temperature_c,stability_score,measured_aggregation_percent,measured_tm_shift_c,source_paper,source_doi_pmcidPGT121_acetate_baseline,146.0,7.0,60.0,acetate,20.0,5.2,50.0,150.0,"{""sucrose"": 90.0, ""polysorbate80"": 0.01}",50.0,0.50,50.0,-2.0,Stable High-Concentration Monoclonal Antibody Formulations Enabled by an Amphiphilic Copolymer Excipient,PMC9854243PGT121_acetate_MoNi,146.0,7.0,60.0,acetate,20.0,5.2,50.0,150.0,"{""sucrose"": 90.0, ""polysorbate80"": 0.01, ""MoNi_copolymer"": 10.0}",50.0,0.70,30.0,1.5,Stable High-Concentration Monoclonal Antibody Formulations Enabled by an Amphiphilic Copolymer Excipient,PMC9854243Adalimumab_commercial,148.0,7.2,72.0,citrate,20.0,5.3,140.0,280.0,"{""mannitol"": 50.0, ""polysorbate80"": 0.01}",25.0,0.95,5.0,0.0,Stability of Monoclonal Antibodies as Solid Formulation for Auto-Injectors: A Pilot Study,PMC10459033Adalimumab_concentrated_mannitol,148.0,7.2,72.0,citrate,20.0,5.3,140.0,280.0,"{""mannitol"": 12.0, ""polysorbate80"": 0.01}",4.0,0.98,2.0,0.5,Stability of Monoclonal Antibodies as Solid Formulation for Auto-Injectors: A Pilot Study,PMC10459033Adalimumab_concentrated_mannitol_RT,148.0,7.2,72.0,citrate,20.0,5.3,140.0,280.0,"{""mannitol"": 12.0, ""polysorbate80"": 0.01}",25.0,0.98,2.0,0.3,Stability of Monoclonal Antibodies as Solid Formulation for Auto-Injectors: A Pilot Study,PMC10459033X2Y1_bispecific_histidine,145.0,7.0,59.0,histidine,20.0,7.0,200.0,330.0,"{""sucrose"": 70.0, ""polysorbate80"": 0.01, ""arginine_hcl"": 200.0}",25.0,0.96,4.0,2.0,A case study of a bispecific antibody manufacturability assessment and optimization during discovery stage,PMC11259756mAb2_citrate_baseline,150.0,7.2,65.0,citrate,25.0,6.0,165.0,300.0,"{}",25.0,0.85,15.0,-1.0,Rational optimization of a monoclonal antibody improves the aggregation propensity and enhances the CMC properties,PMC7531517mAb2_citrate_variant,150.0,7.2,66.5,citrate,25.0,6.0,165.0,300.0,"{}",25.0,0.92,8.0,1.5,Rational optimization of a monoclonal antibody improves the aggregation propensity and enhances the CMC properties,PMC75315171234567891011121314151617protein_id,protein_mw_kda,protein_pi,protein_tm_baseline_c,buffer_species,buffer_conc_mm,ph,ionic_strength_mm,osmolarity_mosm_kg,stabilizers_json,temperature_c,stability_score,measured_aggregation_percent,measured_tm_shift_c,source_paper,source_doi_pmcidTrastuzumab_histidine_reference,150.0,7.2,71.6,histidine,10.0,6.5,150.0,310.0,"{}",25.0,0.994,0.6,0.0,Residue-resolved insights into the stabilization of therapeutic proteins by excipients,PMC11572152Trastuzumab_arginine,150.0,7.2,68.6,histidine,10.0,6.5,150.0,310.0,"{""arginine_hcl"": 150.0}",25.0,1.00,0.0,-3.0,Residue-resolved insights into the stabilization of therapeutic proteins by excipients,PMC11572152Trastuzumab_glutamate,150.0,7.2,71.6,histidine,10.0,6.5,150.0,310.0,"{""sodium_glutamate"": 150.0}",25.0,0.994,0.6,0.0,Residue-resolved insights into the stabilization of therapeutic proteins by excipients,PMC11572152Omalizumab_histidine_reference,150.0,7.2,71.6,histidine,10.0,6.5,150.0,310.0,"{}",25.0,0.989,1.1,0.0,Residue-resolved insights into the stabilization of therapeutic proteins by excipients,PMC11572152Omalizumab_arginine,150.0,7.2,68.6,histidine,10.0,6.5,150.0,310.0,"{""arginine_hcl"": 150.0}",25.0,0.997,0.3,-3.0,Residue-resolved insights into the stabilization of therapeutic proteins by excipients,PMC11572152bispecific_A_histidine_no_salt,110.0,6.9,58.0,histidine,50.0,5.5,0.0,150.0,"{}",25.0,0.96,4.0,-2.0,Investigation on environmental factors contributing to bispecific antibody stability,PMC11343937bispecific_A_histidine_150mM_NaCl,110.0,6.9,58.0,histidine,50.0,5.5,150.0,300.0,"{""nacl"": 150.0}",25.0,0.94,6.0,-1.0,Investigation on environmental factors contributing to bispecific antibody stability,PMC11343937bispecific_A_histidine_500mM_NaCl,110.0,6.9,58.0,histidine,50.0,5.5,500.0,900.0,"{""nacl"": 500.0}",25.0,0.937,6.3,-1.2,Investigation on environmental factors contributing to bispecific antibody stability,PMC11343937bispecific_A_histidine_Arg,110.0,6.9,58.0,histidine,50.0,5.5,150.0,300.0,"{""arginine_hcl"": 150.0}",25.0,0.941,5.9,-1.0,Investigation on environmental factors contributing to bispecific antibody stability,PMC11343937bispecific_A_acetate,110.0,6.9,58.0,acetate,50.0,5.5,50.0,180.0,"{}",25.0,0.944,5.6,-1.5,Investigation on environmental factors contributing to bispecific antibody stability,PMC11343937bispecific_A_citrate,110.0,6.9,58.0,citrate,50.0,5.5,50.0,180.0,"{}",25.0,0.961,3.9,-1.8,Investigation on environmental factors contributing to bispecific antibody stability,PMC11343937bispecific_A_phosphate,110.0,6.9,58.0,phosphate,50.0,5.5,50.0,180.0,"{}",25.0,0.948,5.2,-1.4,Investigation on environmental factors contributing to bispecific antibody stability,PMC11343937bispecific_A_histidine_40C,110.0,6.9,58.0,histidine,50.0,5.5,0.0,150.0,"{}",40.0,0.95,5.0,-1.5,Investigation on environmental factors contributing to bispecific antibody stability,PMC11343937mAb_aggregation_prone_1,150.0,7.1,60.0,histidine,20.0,6.0,140.0,280.0,"{}",45.0,0.85,15.0,-0.5,Machine learning prediction of antibody aggregation and viscosity,PMC8794240mAb_stable_reference,150.0,7.1,55.0,histidine,20.0,6.0,140.0,280.0,"{}",45.0,0.97,3.0,1.0,Machine learning prediction of antibody aggregation and viscosity,PMC8794240mAb_high_viscosity_1,150.0,7.2,56.5,histidine,20.0,6.0,140.0,280.0,"{}",25.0,0.92,8.0,0.5,Machine learning prediction of antibody aggregation and viscosity,PMC8794240123456789101112131415protein_id,protein_mw_kda,protein_pi,protein_tm_baseline_c,buffer_species,buffer_conc_mm,ph,ionic_strength_mm,osmolarity_mosm_kg,stabilizers_json,temperature_c,stability_score,measured_aggregation_percent,measured_tm_shift_c,source_paper,source_doi_pmcidA33_Fab_citrate_no_glycine,27.0,6.8,77.1,citrate,20.0,4.5,50.0,150.0,"{}",25.0,0.90,10.0,0.0,Molecular Dynamics Simulations Reveal Protein-Surface Interactions Modulate Stability in Fab Formulations,PMC11539065A33_Fab_citrate_glycine10,27.0,6.8,79.1,citrate,20.0,4.5,50.0,150.0,"{""glycine"": 10.0}",25.0,0.92,8.0,2.0,Molecular Dynamics Simulations Reveal Protein-Surface Interactions Modulate Stability in Fab Formulations,PMC11539065A33_Fab_citrate_glycine20,27.0,6.8,79.6,citrate,20.0,4.5,50.0,150.0,"{""glycine"": 20.0}",25.0,0.93,7.0,2.5,Molecular Dynamics Simulations Reveal Protein-Surface Interactions Modulate Stability in Fab Formulations,PMC11539065A33_Fab_citrate_glycine30,27.0,6.8,82.2,citrate,20.0,4.5,50.0,150.0,"{""glycine"": 30.0}",25.0,0.94,6.0,5.1,Molecular Dynamics Simulations Reveal Protein-Surface Interactions Modulate Stability in Fab Formulations,PMC11539065A33_Fab_citrate_glycine40,27.0,6.8,82.2,citrate,20.0,4.5,50.0,150.0,"{""glycine"": 40.0}",25.0,0.95,5.0,5.1,Molecular Dynamics Simulations Reveal Protein-Surface Interactions Modulate Stability in Fab Formulations,PMC11539065A33_Fab_citrate_glycine50,27.0,6.8,83.2,citrate,20.0,4.5,50.0,150.0,"{""glycine"": 50.0}",25.0,0.96,4.0,6.1,Molecular Dynamics Simulations Reveal Protein-Surface Interactions Modulate Stability in Fab Formulations,PMC11539065A33_Fab_citrate_glycine60,27.0,6.8,83.6,citrate,20.0,4.5,50.0,150.0,"{""glycine"": 60.0}",25.0,0.97,3.0,6.5,Molecular Dynamics Simulations Reveal Protein-Surface Interactions Modulate Stability in Fab Formulations,PMC11539065A33_Fab_phosphate_glycine20,27.0,6.8,78.0,phosphate,10.0,7.0,50.0,150.0,"{""glycine"": 20.0}",25.0,0.94,6.0,1.0,Molecular Dynamics Simulations Reveal Protein-Surface Interactions Modulate Stability in Fab Formulations,PMC11539065Fab_citrate_dilute,27.5,6.9,70.8,citrate,20.0,4.0,200.0,400.0,"{}",25.0,0.88,12.0,0.0,Enhanced Thermal Stability and Reduced Aggregation in Fab Fragment at Elevated Concentrations,PMC10155210Fab_citrate_medium,27.5,6.9,77.2,citrate,20.0,4.0,200.0,400.0,"{}",25.0,0.93,7.0,6.4,Enhanced Thermal Stability and Reduced Aggregation in Fab Fragment at Elevated Concentrations,PMC10155210Fab_citrate_concentrated,27.5,6.9,79.9,citrate,20.0,4.0,200.0,400.0,"{}",25.0,0.95,5.0,9.1,Enhanced Thermal Stability and Reduced Aggregation in Fab Fragment at Elevated Concentrations,PMC10155210Fab_citrate_high_conc_tween80,27.5,6.9,79.9,citrate,20.0,4.0,200.0,400.0,"{""tween80"": 0.01}",25.0,0.96,4.0,9.1,Enhanced Thermal Stability and Reduced Aggregation in Fab Fragment at Elevated Concentrations,PMC10155210Biosimilar_mAb_phosphate_cold,150.0,7.3,72.0,phosphate,20.0,7.4,188.0,380.0,"{}",5.0,0.98,2.0,0.0,Stability Evaluation of the Biosimilar Monoclonal Antibody Using Analytical Techniques,PMC9986942Biosimilar_mAb_phosphate_RT,150.0,7.3,72.0,phosphate,20.0,7.4,188.0,380.0,"{}",25.0,0.96,4.0,-2.0,Stability Evaluation of the Biosimilar Monoclonal Antibody Using Analytical Techniques,PMC99869421234protein_id,protein_mw_kda,protein_pi,protein_tm_baseline_c,buffer_species,buffer_conc_mm,ph,ionic_strength_mm,osmolarity_mosm_kg,stabilizers_json,temperature_c,stability_score,measured_aggregation_percent,measured_tm_shift_c,source_paper,source_doi_pmcidrhIL1ra_MES_60mM_NaCl,17.3,5.6,55.0,MES,10.0,6.5,60.0,140.0,"{""NaCl"": 60.0}",25.0,0.85,15.0,0.0,Protein-protein interactions controlling interfacial aggregation of rhIL-1ra,PMC6032359rhIL1ra_MES_150mM_NaCl,17.3,5.6,55.0,MES,10.0,6.5,150.0,300.0,"{""NaCl"": 150.0}",25.0,0.90,10.0,1.0,Protein-protein interactions controlling interfacial aggregation of rhIL-1ra,PMC6032359rhIL1ra_MES_500mM_NaCl,17.3,5.6,55.0,MES,10.0,6.5,500.0,950.0,"{""NaCl"": 500.0}",25.0,0.94,6.0,2.5,Protein-protein interactions controlling interfacial aggregation of rhIL-1ra,PMC6032359123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354551 unmodified line575859606162636465666768protein_id,protein_mw_kda,protein_pi,protein_tm_baseline_c,buffer_species,buffer_conc_mm,ph,ionic_strength_mm,osmolarity_mosm_kg,stabilizers_json,temperature_c,stability_score,measured_aggregation_percent,measured_tm_shift_cprotein_1,50.0,7.2,65.0,histidine,50.0,6.5,150.0,300.0,"{""trehalose"": 100.0}",25.0,0.85,2.5,8.0protein_1,50.0,7.2,65.0,phosphate,100.0,7.0,200.0,350.0,"{""trehalose"": 200.0}",25.0,0.92,1.2,12.0protein_1,50.0,7.2,65.0,acetate,75.0,5.5,100.0,250.0,"{""sorbitol"": 150.0}",25.0,0.65,5.8,4.0protein_1,50.0,7.2,65.0,histidine,50.0,6.5,150.0,300.0,"{""trehalose"": 100.0, ""tween80"": 0.01}",25.0,0.88,1.8,10.0protein_2,75.0,6.8,58.0,histidine,50.0,6.5,150.0,300.0,"{""sucrose"": 100.0}",25.0,0.80,3.5,6.0protein_2,75.0,6.8,58.0,phosphate,100.0,7.0,200.0,350.0,"{""trehalose"": 200.0}",25.0,0.89,1.5,11.0protein_2,75.0,6.8,58.0,acetate,75.0,5.5,100.0,250.0,"{""sorbitol"": 150.0}",25.0,0.72,4.2,5.0protein_2,75.0,6.8,58.0,histidine,50.0,6.5,150.0,300.0,"{""sucrose"": 100.0, ""polysorbate20"": 0.01}",25.0,0.83,2.8,7.5protein_3,45.0,8.1,62.0,histidine,50.0,6.5,150.0,300.0,"{""trehalose"": 100.0}",25.0,0.82,3.2,7.5protein_3,45.0,8.1,62.0,phosphate,100.0,7.0,200.0,350.0,"{""trehalose"": 250.0}",25.0,0.90,1.0,13.0protein_3,45.0,8.1,62.0,acetate,75.0,5.5,100.0,250.0,"{""sorbitol"": 150.0}",25.0,0.68,5.5,3.5protein_3,45.0,8.1,62.0,citrate,60.0,5.0,120.0,280.0,"{""glycerol"": 10.0}",25.0,0.75,4.0,6.0protein_4,120.0,5.9,70.0,histidine,50.0,6.5,150.0,300.0,"{""trehalose"": 100.0}",25.0,0.84,2.8,8.5protein_4,120.0,5.9,70.0,phosphate,100.0,7.0,200.0,350.0,"{""trehalose"": 200.0}",25.0,0.91,0.9,12.5protein_4,120.0,5.9,70.0,acetate,75.0,5.5,100.0,250.0,"{""mannitol"": 150.0}",25.0,0.70,4.5,4.5protein_5,60.0,7.5,64.0,histidine,50.0,6.5,150.0,300.0,"{""sucrose"": 100.0}",25.0,0.81,3.5,7.0protein_5,60.0,7.5,64.0,phosphate,100.0,7.0,200.0,350.0,"{""trehalose"": 200.0}",25.0,0.88,1.3,11.0protein_5,60.0,7.5,64.0,acetate,75.0,5.5,100.0,250.0,"{""sorbitol"": 150.0}",25.0,0.69,4.8,4.8PGT121_acetate_baseline,146.0,7.0,60.0,acetate,20.0,5.2,50.0,150.0,"{""sucrose"": 90.0, ""polysorbate80"": 0.01}",50.0,0.50,50.0,-2.0,Stable High-Concentration Monoclonal Antibody Formulations Enabled by an Amphiphilic Copolymer Excipient,PMC9854243PGT121_acetate_MoNi,146.0,7.0,60.0,acetate,20.0,5.2,50.0,150.0,"{""sucrose"": 90.0, ""polysorbate80"": 0.01, ""MoNi_copolymer"": 10.0}",50.0,0.70,30.0,1.5,Stable High-Concentration Monoclonal Antibody Formulations Enabled by an Amphiphilic Copolymer Excipient,PMC9854243Adalimumab_commercial,148.0,7.2,72.0,citrate,20.0,5.3,140.0,280.0,"{""mannitol"": 50.0, ""polysorbate80"": 0.01}",25.0,0.95,5.0,0.0,Stability of Monoclonal Antibodies as Solid Formulation for Auto-Injectors: A Pilot Study,PMC10459033Adalimumab_concentrated_mannitol,148.0,7.2,72.0,citrate,20.0,5.3,140.0,280.0,"{""mannitol"": 12.0, ""polysorbate80"": 0.01}",4.0,0.98,2.0,0.5,Stability of Monoclonal Antibodies as Solid Formulation for Auto-Injectors: A Pilot Study,PMC10459033Adalimumab_concentrated_mannitol_RT,148.0,7.2,72.0,citrate,20.0,5.3,140.0,280.0,"{""mannitol"": 12.0, ""polysorbate80"": 0.01}",25.0,0.98,2.0,0.3,Stability of Monoclonal Antibodies as Solid Formulation for Auto-Injectors: A Pilot Study,PMC10459033X2Y1_bispecific_histidine,145.0,7.0,59.0,histidine,20.0,7.0,200.0,330.0,"{""sucrose"": 70.0, ""polysorbate80"": 0.01, ""arginine_hcl"": 200.0}",25.0,0.96,4.0,2.0,A case study of a bispecific antibody manufacturability assessment and optimization during discovery stage,PMC11259756mAb2_citrate_baseline,150.0,7.2,65.0,citrate,25.0,6.0,165.0,300.0,"{}",25.0,0.85,15.0,-1.0,Rational optimization of a monoclonal antibody improves the aggregation propensity and enhances the CMC properties,PMC7531517mAb2_citrate_variant,150.0,7.2,66.5,citrate,25.0,6.0,165.0,300.0,"{}",25.0,0.92,8.0,1.5,Rational optimization of a monoclonal antibody improves the aggregation propensity and enhances the CMC properties,PMC7531517PGT121_acetate_baseline,146.0,7.0,60.0,acetate,20.0,5.2,50.0,150.0,"{""sucrose"": 90.0, ""polysorbate80"": 0.01}",50.0,0.50,50.0,-2.0,Stable High-Concentration Monoclonal Antibody Formulations Enabled by an Amphiphilic Copolymer Excipient,PMC9854243PGT121_acetate_MoNi,146.0,7.0,60.0,acetate,20.0,5.2,50.0,150.0,"{""sucrose"": 90.0, ""polysorbate80"": 0.01, ""MoNi_copolymer"": 10.0}",50.0,0.70,30.0,1.5,Stable High-Concentration Monoclonal Antibody Formulations Enabled by an Amphiphilic Copolymer Excipient,PMC9854243Adalimumab_commercial,148.0,7.2,72.0,citrate,20.0,5.3,140.0,280.0,"{""mannitol"": 50.0, ""polysorbate80"": 0.01}",25.0,0.95,5.0,0.0,Stability of Monoclonal Antibodies as Solid Formulation for Auto-Injectors: A Pilot Study,PMC10459033Adalimumab_concentrated_mannitol,148.0,7.2,72.0,citrate,20.0,5.3,140.0,280.0,"{""mannitol"": 12.0, ""polysorbate80"": 0.01}",4.0,0.98,2.0,0.5,Stability of Monoclonal Antibodies as Solid Formulation for Auto-Injectors: A Pilot Study,PMC10459033Adalimumab_concentrated_mannitol_RT,148.0,7.2,72.0,citrate,20.0,5.3,140.0,280.0,"{""mannitol"": 12.0, ""polysorbate80"": 0.01}",25.0,0.98,2.0,0.3,Stability of Monoclonal Antibodies as Solid Formulation for Auto-Injectors: A Pilot Study,PMC10459033X2Y1_bispecific_histidine,145.0,7.0,59.0,histidine,20.0,7.0,200.0,330.0,"{""sucrose"": 70.0, ""polysorbate80"": 0.01, ""arginine_hcl"": 200.0}",25.0,0.96,4.0,2.0,A case study of a bispecific antibody manufacturability assessment and optimization during discovery stage,PMC11259756mAb2_citrate_baseline,150.0,7.2,65.0,citrate,25.0,6.0,165.0,300.0,"{}",25.0,0.85,15.0,-1.0,Rational optimization of a monoclonal antibody improves the aggregation propensity and enhances the CMC properties,PMC7531517mAb2_citrate_variant,150.0,7.2,66.5,citrate,25.0,6.0,165.0,300.0,"{}",25.0,0.92,8.0,1.5,Rational optimization of a monoclonal antibody improves the aggregation propensity and enhances the CMC properties,PMC7531517Trastuzumab_histidine_reference,150.0,7.2,71.6,histidine,10.0,6.5,150.0,310.0,"{}",25.0,0.994,0.6,0.0,Residue-resolved insights into the stabilization of therapeutic proteins by excipients,PMC11572152Trastuzumab_arginine,150.0,7.2,68.6,histidine,10.0,6.5,150.0,310.0,"{""arginine_hcl"": 150.0}",25.0,1.00,0.0,-3.0,Residue-resolved insights into the stabilization of therapeutic proteins by excipients,PMC11572152Trastuzumab_glutamate,150.0,7.2,71.6,histidine,10.0,6.5,150.0,310.0,"{""sodium_glutamate"": 150.0}",25.0,0.994,0.6,0.0,Residue-resolved insights into the stabilization of therapeutic proteins by excipients,PMC11572152Omalizumab_histidine_reference,150.0,7.2,71.6,histidine,10.0,6.5,150.0,310.0,"{}",25.0,0.989,1.1,0.0,Residue-resolved insights into the stabilization of therapeutic proteins by excipients,PMC11572152Omalizumab_arginine,150.0,7.2,68.6,histidine,10.0,6.5,150.0,310.0,"{""arginine_hcl"": 150.0}",25.0,0.997,0.3,-3.0,Residue-resolved insights into the stabilization of therapeutic proteins by excipients,PMC11572152bispecific_A_histidine_no_salt,110.0,6.9,58.0,histidine,50.0,5.5,0.0,150.0,"{}",25.0,0.96,4.0,-2.0,Investigation on environmental factors contributing to bispecific antibody stability,PMC11343937bispecific_A_histidine_150mM_NaCl,110.0,6.9,58.0,histidine,50.0,5.5,150.0,300.0,"{""nacl"": 150.0}",25.0,0.94,6.0,-1.0,Investigation on environmental factors contributing to bispecific antibody stability,PMC11343937bispecific_A_histidine_500mM_NaCl,110.0,6.9,58.0,histidine,50.0,5.5,500.0,900.0,"{""nacl"": 500.0}",25.0,0.937,6.3,-1.2,Investigation on environmental factors contributing to bispecific antibody stability,PMC11343937bispecific_A_histidine_Arg,110.0,6.9,58.0,histidine,50.0,5.5,150.0,300.0,"{""arginine_hcl"": 150.0}",25.0,0.941,5.9,-1.0,Investigation on environmental factors contributing to bispecific antibody stability,PMC11343937bispecific_A_acetate,110.0,6.9,58.0,acetate,50.0,5.5,50.0,180.0,"{}",25.0,0.944,5.6,-1.5,Investigation on environmental factors contributing to bispecific antibody stability,PMC11343937bispecific_A_citrate,110.0,6.9,58.0,citrate,50.0,5.5,50.0,180.0,"{}",25.0,0.961,3.9,-1.8,Investigation on environmental factors contributing to bispecific antibody stability,PMC11343937bispecific_A_phosphate,110.0,6.9,58.0,phosphate,50.0,5.5,50.0,180.0,"{}",25.0,0.948,5.2,-1.4,Investigation on environmental factors contributing to bispecific antibody stability,PMC11343937bispecific_A_histidine_40C,110.0,6.9,58.0,histidine,50.0,5.5,0.0,150.0,"{}",40.0,0.95,5.0,-1.5,Investigation on environmental factors contributing to bispecific antibody stability,PMC11343937mAb_aggregation_prone_1,150.0,7.1,60.0,histidine,20.0,6.0,140.0,280.0,"{}",45.0,0.85,15.0,-0.5,Machine learning prediction of antibody aggregation and viscosity,PMC8794240mAb_stable_reference,150.0,7.1,55.0,histidine,20.0,6.0,140.0,280.0,"{}",45.0,0.97,3.0,1.0,Machine learning prediction of antibody aggregation and viscosity,PMC8794240mAb_high_viscosity_1,150.0,7.2,56.5,histidine,20.0,6.0,140.0,280.0,"{}",25.0,0.92,8.0,0.5,Machine learning prediction of antibody aggregation and viscosity,PMC8794240A33_Fab_citrate_no_glycine,27.0,6.8,77.1,citrate,20.0,4.5,50.0,150.0,"{}",25.0,0.90,10.0,0.0,Molecular Dynamics Simulations Reveal Protein-Surface Interactions Modulate Stability in Fab Formulations,PMC11539065A33_Fab_citrate_glycine10,27.0,6.8,79.1,citrate,20.0,4.5,50.0,150.0,"{""glycine"": 10.0}",25.0,0.92,8.0,2.0,Molecular Dynamics Simulations Reveal Protein-Surface Interactions Modulate Stability in Fab Formulations,PMC11539065A33_Fab_citrate_glycine20,27.0,6.8,79.6,citrate,20.0,4.5,50.0,150.0,"{""glycine"": 20.0}",25.0,0.93,7.0,2.5,Molecular Dynamics Simulations Reveal Protein-Surface Interactions Modulate Stability in Fab Formulations,PMC11539065A33_Fab_citrate_glycine30,27.0,6.8,82.2,citrate,20.0,4.5,50.0,150.0,"{""glycine"": 30.0}",25.0,0.94,6.0,5.1,Molecular Dynamics Simulations Reveal Protein-Surface Interactions Modulate Stability in Fab Formulations,PMC115390651 unmodified lineA33_Fab_citrate_glycine50,27.0,6.8,83.2,citrate,20.0,4.5,50.0,150.0,"{""glycine"": 50.0}",25.0,0.96,4.0,6.1,Molecular Dynamics Simulations Reveal Protein-Surface Interactions Modulate Stability in Fab Formulations,PMC11539065A33_Fab_citrate_glycine60,27.0,6.8,83.6,citrate,20.0,4.5,50.0,150.0,"{""glycine"": 60.0}",25.0,0.97,3.0,6.5,Molecular Dynamics Simulations Reveal Protein-Surface Interactions Modulate Stability in Fab Formulations,PMC11539065A33_Fab_phosphate_glycine20,27.0,6.8,78.0,phosphate,10.0,7.0,50.0,150.0,"{""glycine"": 20.0}",25.0,0.94,6.0,1.0,Molecular Dynamics Simulations Reveal Protein-Surface Interactions Modulate Stability in Fab Formulations,PMC11539065Fab_citrate_dilute,27.5,6.9,70.8,citrate,20.0,4.0,200.0,400.0,"{}",25.0,0.88,12.0,0.0,Enhanced Thermal Stability and Reduced Aggregation in Fab Fragment at Elevated Concentrations,PMC10155210Fab_citrate_medium,27.5,6.9,77.2,citrate,20.0,4.0,200.0,400.0,"{}",25.0,0.93,7.0,6.4,Enhanced Thermal Stability and Reduced Aggregation in Fab Fragment at Elevated Concentrations,PMC10155210Fab_citrate_concentrated,27.5,6.9,79.9,citrate,20.0,4.0,200.0,400.0,"{}",25.0,0.95,5.0,9.1,Enhanced Thermal Stability and Reduced Aggregation in Fab Fragment at Elevated Concentrations,PMC10155210Fab_citrate_high_conc_tween80,27.5,6.9,79.9,citrate,20.0,4.0,200.0,400.0,"{""tween80"": 0.01}",25.0,0.96,4.0,9.1,Enhanced Thermal Stability and Reduced Aggregation in Fab Fragment at Elevated Concentrations,PMC10155210Biosimilar_mAb_phosphate_cold,150.0,7.3,72.0,phosphate,20.0,7.4,188.0,380.0,"{}",5.0,0.98,2.0,0.0,Stability Evaluation of the Biosimilar Monoclonal Antibody Using Analytical Techniques,PMC9986942Biosimilar_mAb_phosphate_RT,150.0,7.3,72.0,phosphate,20.0,7.4,188.0,380.0,"{}",25.0,0.96,4.0,-2.0,Stability Evaluation of the Biosimilar Monoclonal Antibody Using Analytical Techniques,PMC9986942rhIL1ra_MES_60mM_NaCl,17.3,5.6,55.0,MES,10.0,6.5,60.0,140.0,"{""NaCl"": 60.0}",25.0,0.85,15.0,0.0,Protein-protein interactions controlling interfacial aggregation of rhIL-1ra,PMC6032359rhIL1ra_MES_150mM_NaCl,17.3,5.6,55.0,MES,10.0,6.5,150.0,300.0,"{""NaCl"": 150.0}",25.0,0.90,10.0,1.0,Protein-protein interactions controlling interfacial aggregation of rhIL-1ra,PMC6032359rhIL1ra_MES_500mM_NaCl,17.3,5.6,55.0,MES,10.0,6.5,500.0,950.0,"{""NaCl"": 500.0}",25.0,0.94,6.0,2.5,Protein-protein interactions controlling interfacial aggregation of rhIL-1ra,PMC6032359123456789101112131415161718192021222324252627282930313233343536371 unmodified line394041424344454647484950protein_id,protein_mw_kda,protein_pi,protein_tm_baseline_c,buffer_species,buffer_conc_mm,ph,ionic_strength_mm,osmolarity_mosm_kg,stabilizers_json,temperature_c,stability_score,measured_aggregation_percent,measured_tm_shift_c,source_title,source_idPGT121_acetate_baseline,146.0,7.0,60.0,acetate,20.0,5.2,50.0,150.0,"{""sucrose"": 90.0, ""polysorbate80"": 0.01}",50.0,0.5,50.0,-2.0,Stable High-Concentration Monoclonal Antibody Formulations Enabled by an Amphiphilic Copolymer Excipient,PMC9854243PGT121_acetate_MoNi,146.0,7.0,60.0,acetate,20.0,5.2,50.0,150.0,"{""sucrose"": 90.0, ""polysorbate80"": 0.01, ""MoNi_copolymer"": 10.0}",50.0,0.7,30.0,1.5,Stable High-Concentration Monoclonal Antibody Formulations Enabled by an Amphiphilic Copolymer Excipient,PMC9854243Adalimumab_commercial,148.0,7.2,72.0,citrate,20.0,5.3,140.0,280.0,"{""mannitol"": 50.0, ""polysorbate80"": 0.01}",25.0,0.95,5.0,0.0,Stability of Monoclonal Antibodies as Solid Formulation for Auto-Injectors: A Pilot Study,PMC10459033Adalimumab_concentrated_mannitol,148.0,7.2,72.0,citrate,20.0,5.3,140.0,280.0,"{""mannitol"": 12.0, ""polysorbate80"": 0.01}",4.0,0.98,2.0,0.5,Stability of Monoclonal Antibodies as Solid Formulation for Auto-Injectors: A Pilot Study,PMC10459033Adalimumab_concentrated_mannitol_RT,148.0,7.2,72.0,citrate,20.0,5.3,140.0,280.0,"{""mannitol"": 12.0, ""polysorbate80"": 0.01}",25.0,0.98,2.0,0.3,Stability of Monoclonal Antibodies as Solid Formulation for Auto-Injectors: A Pilot Study,PMC10459033X2Y1_bispecific_histidine,145.0,7.0,59.0,histidine,20.0,7.0,200.0,330.0,"{""sucrose"": 70.0, ""polysorbate80"": 0.01, ""arginine_hcl"": 200.0}",25.0,0.96,4.0,2.0,A case study of a bispecific antibody manufacturability assessment and optimization during discovery stage,PMC11259756mAb2_citrate_baseline,150.0,7.2,65.0,citrate,25.0,6.0,165.0,300.0,{},25.0,0.85,15.0,-1.0,Rational optimization of a monoclonal antibody improves the aggregation propensity and enhances the CMC properties,PMC7531517mAb2_citrate_variant,150.0,7.2,66.5,citrate,25.0,6.0,165.0,300.0,{},25.0,0.92,8.0,1.5,Rational optimization of a monoclonal antibody improves the aggregation propensity and enhances the CMC properties,PMC7531517PGT121_acetate_baseline,146.0,7.0,60.0,acetate,20.0,5.2,50.0,150.0,"{""sucrose"": 90.0, ""polysorbate80"": 0.01}",50.0,0.5,50.0,-2.0,Stable High-Concentration Monoclonal Antibody Formulations Enabled by an Amphiphilic Copolymer Excipient,PMC9854243PGT121_acetate_MoNi,146.0,7.0,60.0,acetate,20.0,5.2,50.0,150.0,"{""sucrose"": 90.0, ""polysorbate80"": 0.01, ""MoNi_copolymer"": 10.0}",50.0,0.7,30.0,1.5,Stable High-Concentration Monoclonal Antibody Formulations Enabled by an Amphiphilic Copolymer Excipient,PMC9854243Adalimumab_commercial,148.0,7.2,72.0,citrate,20.0,5.3,140.0,280.0,"{""mannitol"": 50.0, ""polysorbate80"": 0.01}",25.0,0.95,5.0,0.0,Stability of Monoclonal Antibodies as Solid Formulation for Auto-Injectors: A Pilot Study,PMC10459033Adalimumab_concentrated_mannitol,148.0,7.2,72.0,citrate,20.0,5.3,140.0,280.0,"{""mannitol"": 12.0, ""polysorbate80"": 0.01}",4.0,0.98,2.0,0.5,Stability of Monoclonal Antibodies as Solid Formulation for Auto-Injectors: A Pilot Study,PMC10459033Adalimumab_concentrated_mannitol_RT,148.0,7.2,72.0,citrate,20.0,5.3,140.0,280.0,"{""mannitol"": 12.0, ""polysorbate80"": 0.01}",25.0,0.98,2.0,0.3,Stability of Monoclonal Antibodies as Solid Formulation for Auto-Injectors: A Pilot Study,PMC10459033X2Y1_bispecific_histidine,145.0,7.0,59.0,histidine,20.0,7.0,200.0,330.0,"{""sucrose"": 70.0, ""polysorbate80"": 0.01, ""arginine_hcl"": 200.0}",25.0,0.96,4.0,2.0,A case study of a bispecific antibody manufacturability assessment and optimization during discovery stage,PMC11259756mAb2_citrate_baseline,150.0,7.2,65.0,citrate,25.0,6.0,165.0,300.0,{},25.0,0.85,15.0,-1.0,Rational optimization of a monoclonal antibody improves the aggregation propensity and enhances the CMC properties,PMC7531517mAb2_citrate_variant,150.0,7.2,66.5,citrate,25.0,6.0,165.0,300.0,{},25.0,0.92,8.0,1.5,Rational optimization of a monoclonal antibody improves the aggregation propensity and enhances the CMC properties,PMC7531517Trastuzumab_histidine_reference,150.0,7.2,71.6,histidine,10.0,6.5,150.0,310.0,{},25.0,0.994,0.6,0.0,Residue-resolved insights into the stabilization of therapeutic proteins by excipients,PMC11572152Trastuzumab_arginine,150.0,7.2,68.6,histidine,10.0,6.5,150.0,310.0,"{""arginine_hcl"": 150.0}",25.0,1.0,0.0,-3.0,Residue-resolved insights into the stabilization of therapeutic proteins by excipients,PMC11572152Trastuzumab_glutamate,150.0,7.2,71.6,histidine,10.0,6.5,150.0,310.0,"{""sodium_glutamate"": 150.0}",25.0,0.994,0.6,0.0,Residue-resolved insights into the stabilization of therapeutic proteins by excipients,PMC11572152Omalizumab_histidine_reference,150.0,7.2,71.6,histidine,10.0,6.5,150.0,310.0,{},25.0,0.989,1.1,0.0,Residue-resolved insights into the stabilization of therapeutic proteins by excipients,PMC11572152Omalizumab_arginine,150.0,7.2,68.6,histidine,10.0,6.5,150.0,310.0,"{""arginine_hcl"": 150.0}",25.0,0.997,0.3,-3.0,Residue-resolved insights into the stabilization of therapeutic proteins by excipients,PMC11572152bispecific_A_histidine_no_salt,110.0,6.9,58.0,histidine,50.0,5.5,0.0,150.0,{},25.0,0.96,4.0,-2.0,Investigation on environmental factors contributing to bispecific antibody stability,PMC11343937bispecific_A_histidine_150mM_NaCl,110.0,6.9,58.0,histidine,50.0,5.5,150.0,300.0,"{""nacl"": 150.0}",25.0,0.94,6.0,-1.0,Investigation on environmental factors contributing to bispecific antibody stability,PMC11343937bispecific_A_histidine_500mM_NaCl,110.0,6.9,58.0,histidine,50.0,5.5,500.0,900.0,"{""nacl"": 500.0}",25.0,0.937,6.3,-1.2,Investigation on environmental factors contributing to bispecific antibody stability,PMC11343937bispecific_A_histidine_Arg,110.0,6.9,58.0,histidine,50.0,5.5,150.0,300.0,"{""arginine_hcl"": 150.0}",25.0,0.941,5.9,-1.0,Investigation on environmental factors contributing to bispecific antibody stability,PMC11343937bispecific_A_acetate,110.0,6.9,58.0,acetate,50.0,5.5,50.0,180.0,{},25.0,0.944,5.6,-1.5,Investigation on environmental factors contributing to bispecific antibody stability,PMC11343937bispecific_A_citrate,110.0,6.9,58.0,citrate,50.0,5.5,50.0,180.0,{},25.0,0.961,3.9,-1.8,Investigation on environmental factors contributing to bispecific antibody stability,PMC11343937bispecific_A_phosphate,110.0,6.9,58.0,phosphate,50.0,5.5,50.0,180.0,{},25.0,0.948,5.2,-1.4,Investigation on environmental factors contributing to bispecific antibody stability,PMC11343937bispecific_A_histidine_40C,110.0,6.9,58.0,histidine,50.0,5.5,0.0,150.0,{},40.0,0.95,5.0,-1.5,Investigation on environmental factors contributing to bispecific antibody stability,PMC11343937mAb_aggregation_prone_1,150.0,7.1,60.0,histidine,20.0,6.0,140.0,280.0,{},45.0,0.85,15.0,-0.5,Machine learning prediction of antibody aggregation and viscosity,PMC8794240mAb_stable_reference,150.0,7.1,55.0,histidine,20.0,6.0,140.0,280.0,{},45.0,0.97,3.0,1.0,Machine learning prediction of antibody aggregation and viscosity,PMC8794240mAb_high_viscosity_1,150.0,7.2,56.5,histidine,20.0,6.0,140.0,280.0,{},25.0,0.92,8.0,0.5,Machine learning prediction of antibody aggregation and viscosity,PMC8794240A33_Fab_citrate_no_glycine,27.0,6.8,77.1,citrate,20.0,4.5,50.0,150.0,{},25.0,0.9,10.0,0.0,Molecular Dynamics Simulations Reveal Protein-Surface Interactions Modulate Stability in Fab Formulations,PMC11539065A33_Fab_citrate_glycine10,27.0,6.8,79.1,citrate,20.0,4.5,50.0,150.0,"{""glycine"": 10.0}",25.0,0.92,8.0,2.0,Molecular Dynamics Simulations Reveal Protein-Surface Interactions Modulate Stability in Fab Formulations,PMC11539065A33_Fab_citrate_glycine20,27.0,6.8,79.6,citrate,20.0,4.5,50.0,150.0,"{""glycine"": 20.0}",25.0,0.93,7.0,2.5,Molecular Dynamics Simulations Reveal Protein-Surface Interactions Modulate Stability in Fab Formulations,PMC11539065A33_Fab_citrate_glycine30,27.0,6.8,82.2,citrate,20.0,4.5,50.0,150.0,"{""glycine"": 30.0}",25.0,0.94,6.0,5.1,Molecular Dynamics Simulations Reveal Protein-Surface Interactions Modulate Stability in Fab Formulations,PMC115390651 unmodified lineA33_Fab_citrate_glycine50,27.0,6.8,83.2,citrate,20.0,4.5,50.0,150.0,"{""glycine"": 50.0}",25.0,0.96,4.0,6.1,Molecular Dynamics Simulations Reveal Protein-Surface Interactions Modulate Stability in Fab Formulations,PMC11539065A33_Fab_citrate_glycine60,27.0,6.8,83.6,citrate,20.0,4.5,50.0,150.0,"{""glycine"": 60.0}",25.0,0.97,3.0,6.5,Molecular Dynamics Simulations Reveal Protein-Surface Interactions Modulate Stability in Fab Formulations,PMC11539065A33_Fab_phosphate_glycine20,27.0,6.8,78.0,phosphate,10.0,7.0,50.0,150.0,"{""glycine"": 20.0}",25.0,0.94,6.0,1.0,Molecular Dynamics Simulations Reveal Protein-Surface Interactions Modulate Stability in Fab Formulations,PMC11539065Fab_citrate_dilute,27.5,6.9,70.8,citrate,20.0,4.0,200.0,400.0,{},25.0,0.88,12.0,0.0,Enhanced Thermal Stability and Reduced Aggregation in Fab Fragment at Elevated Concentrations,PMC10155210Fab_citrate_medium,27.5,6.9,77.2,citrate,20.0,4.0,200.0,400.0,{},25.0,0.93,7.0,6.4,Enhanced Thermal Stability and Reduced Aggregation in Fab Fragment at Elevated Concentrations,PMC10155210Fab_citrate_concentrated,27.5,6.9,79.9,citrate,20.0,4.0,200.0,400.0,{},25.0,0.95,5.0,9.1,Enhanced Thermal Stability and Reduced Aggregation in Fab Fragment at Elevated Concentrations,PMC10155210Fab_citrate_high_conc_tween80,27.5,6.9,79.9,citrate,20.0,4.0,200.0,400.0,"{""tween80"": 0.01}",25.0,0.96,4.0,9.1,Enhanced Thermal Stability and Reduced Aggregation in Fab Fragment at Elevated Concentrations,PMC10155210Biosimilar_mAb_phosphate_cold,150.0,7.3,72.0,phosphate,20.0,7.4,188.0,380.0,{},5.0,0.98,2.0,0.0,Stability Evaluation of the Biosimilar Monoclonal Antibody Using Analytical Techniques,PMC9986942Biosimilar_mAb_phosphate_RT,150.0,7.3,72.0,phosphate,20.0,7.4,188.0,380.0,{},25.0,0.96,4.0,-2.0,Stability Evaluation of the Biosimilar Monoclonal Antibody Using Analytical Techniques,PMC9986942rhIL1ra_MES_60mM_NaCl,17.3,5.6,55.0,MES,10.0,6.5,60.0,140.0,"{""NaCl"": 60.0}",25.0,0.85,15.0,0.0,Protein-protein interactions controlling interfacial aggregation of rhIL-1ra,PMC6032359rhIL1ra_MES_150mM_NaCl,17.3,5.6,55.0,MES,10.0,6.5,150.0,300.0,"{""NaCl"": 150.0}",25.0,0.9,10.0,1.0,Protein-protein interactions controlling interfacial aggregation of rhIL-1ra,PMC6032359rhIL1ra_MES_500mM_NaCl,17.3,5.6,55.0,MES,10.0,6.5,500.0,950.0,"{""NaCl"": 500.0}",25.0,0.94,6.0,2.5,Protein-protein interactions controlling interfacial aggregation of rhIL-1ra,PMC6032359
123456789101112131415161718192021222324252627protein_id,protein_mw_kda,protein_pi,protein_tm_baseline_c,buffer_species,buffer_conc_mm,ph,ionic_strength_mm,osmolarity_mosm_kg,stabilizers_json,temperature_c,stability_score,measured_aggregation_percent,measured_tm_shift_cprotein_1,50.0,7.2,65.0,histidine,50.0,6.5,150.0,300.0,"{""trehalose"": 100.0}",25.0,0.85,2.5,8.0protein_1,50.0,7.2,65.0,phosphate,100.0,7.0,200.0,350.0,"{""trehalose"": 200.0}",25.0,0.92,1.2,12.0protein_1,50.0,7.2,65.0,acetate,75.0,5.5,100.0,250.0,"{""sorbitol"": 150.0}",25.0,0.65,5.8,4.0protein_1,50.0,7.2,65.0,histidine,50.0,6.5,150.0,300.0,"{""trehalose"": 100.0, ""tween80"": 0.01}",25.0,0.88,1.8,10.0protein_2,75.0,6.8,58.0,histidine,50.0,6.5,150.0,300.0,"{""sucrose"": 100.0}",25.0,0.80,3.5,6.0protein_2,75.0,6.8,58.0,phosphate,100.0,7.0,200.0,350.0,"{""trehalose"": 200.0}",25.0,0.89,1.5,11.0protein_2,75.0,6.8,58.0,acetate,75.0,5.5,100.0,250.0,"{""sorbitol"": 150.0}",25.0,0.72,4.2,5.0protein_2,75.0,6.8,58.0,histidine,50.0,6.5,150.0,300.0,"{""sucrose"": 100.0, ""polysorbate20"": 0.01}",25.0,0.83,2.8,7.5protein_3,45.0,8.1,62.0,histidine,50.0,6.5,150.0,300.0,"{""trehalose"": 100.0}",25.0,0.82,3.2,7.5protein_3,45.0,8.1,62.0,phosphate,100.0,7.0,200.0,350.0,"{""trehalose"": 250.0}",25.0,0.90,1.0,13.0protein_3,45.0,8.1,62.0,acetate,75.0,5.5,100.0,250.0,"{""sorbitol"": 150.0}",25.0,0.68,5.5,3.5protein_3,45.0,8.1,62.0,citrate,60.0,5.0,120.0,280.0,"{""glycerol"": 10.0}",25.0,0.75,4.0,6.0protein_4,120.0,5.9,70.0,histidine,50.0,6.5,150.0,300.0,"{""trehalose"": 100.0}",25.0,0.84,2.8,8.5protein_4,120.0,5.9,70.0,phosphate,100.0,7.0,200.0,350.0,"{""trehalose"": 200.0}",25.0,0.91,0.9,12.5protein_4,120.0,5.9,70.0,acetate,75.0,5.5,100.0,250.0,"{""mannitol"": 150.0}",25.0,0.70,4.5,4.5protein_5,60.0,7.5,64.0,histidine,50.0,6.5,150.0,300.0,"{""sucrose"": 100.0}",25.0,0.81,3.5,7.0protein_5,60.0,7.5,64.0,phosphate,100.0,7.0,200.0,350.0,"{""trehalose"": 200.0}",25.0,0.88,1.3,11.0protein_5,60.0,7.5,64.0,acetate,75.0,5.5,100.0,250.0,"{""sorbitol"": 150.0}",25.0,0.69,4.8,4.8PGT121_acetate_baseline,146.0,7.0,60.0,acetate,20.0,5.2,50.0,150.0,"{""sucrose"": 90.0, ""polysorbate80"": 0.01}",50.0,0.50,50.0,-2.0,Stable High-Concentration Monoclonal Antibody Formulations Enabled by an Amphiphilic Copolymer Excipient,PMC9854243
PGT121_acetate_MoNi,146.0,7.0,60.0,acetate,20.0,5.2,50.0,150.0,"{""sucrose"": 90.0, ""polysorbate80"": 0.01, ""MoNi_copolymer"": 10.0}",50.0,0.70,30.0,1.5,Stable High-Concentration Monoclonal Antibody Formulations Enabled by an Amphiphilic Copolymer Excipient,PMC9854243
Adalimumab_commercial,148.0,7.2,72.0,citrate,20.0,5.3,140.0,280.0,"{""mannitol"": 50.0, ""polysorbate80"": 0.01}",25.0,0.95,5.0,0.0,Stability of Monoclonal Antibodies as Solid Formulation for Auto-Injectors: A Pilot Study,PMC10459033
Adalimumab_concentrated_mannitol,148.0,7.2,72.0,citrate,20.0,5.3,140.0,280.0,"{""mannitol"": 12.0, ""polysorbate80"": 0.01}",4.0,0.98,2.0,0.5,Stability of Monoclonal Antibodies as Solid Formulation for Auto-Injectors: A Pilot Study,PMC10459033
Adalimumab_concentrated_mannitol_RT,148.0,7.2,72.0,citrate,20.0,5.3,140.0,280.0,"{""mannitol"": 12.0, ""polysorbate80"": 0.01}",25.0,0.98,2.0,0.3,Stability of Monoclonal Antibodies as Solid Formulation for Auto-Injectors: A Pilot Study,PMC10459033
X2Y1_bispecific_histidine,145.0,7.0,59.0,histidine,20.0,7.0,200.0,330.0,"{""sucrose"": 70.0, ""polysorbate80"": 0.01, ""arginine_hcl"": 200.0}",25.0,0.96,4.0,2.0,A case study of a bispecific antibody manufacturability assessment and optimization during discovery stage,PMC11259756
mAb2_citrate_baseline,150.0,7.2,65.0,citrate,25.0,6.0,165.0,300.0,"{}",25.0,0.85,15.0,-1.0,Rational optimization of a monoclonal antibody improves the aggregation propensity and enhances the CMC properties,PMC7531517
mAb2_citrate_variant,150.0,7.2,66.5,citrate,25.0,6.0,165.0,300.0,"{}",25.0,0.92,8.0,1.5,Rational optimization of a monoclonal antibody improves the aggregation propensity and enhances the CMC properties,PMC7531517123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363"""Synthetic Formulation Data Generator
Generates high-quality synthetic (protein, formulation) → (stability_outcome) triplesusing the validated mechanistic simulator. This synthetic corpus is used forpretraining the transformer model.
Production features:- Stratified sampling (covers diverse protein/formulation space)- Quality filtering (removes unphysical samples)- Reproducible with seed control- Efficient batch generation- Parallel generation capability"""
import numpy as npimport pandas as pdfrom typing import List, Dict, Tuple, Optionalfrom pathlib import Pathimport loggingfrom dataclasses import dataclassimport jsonfrom tqdm import tqdmimport sys
sys.path.insert(0, str(Path(__file__).parent.parent))
from simulator.mechanistic_sim import ( BiologicsFormulationSimulator, ProteinDescriptor, FormulationComposition, SimulationOutput,)from config import CFG, SyntheticDataConfig
logger = logging.getLogger(__name__)
@dataclassclass SyntheticSample: """Single synthetic training sample.""" protein_mw_kda: float protein_pi: float protein_hydrophobicity: float protein_tm_baseline_c: float buffer_species: str buffer_conc_mm: float ph: float ionic_strength_mm: float osmolarity_mosm_kg: float stabilizers_json: str # JSON string of stabilizer dict temperature_c: float storage_duration_days: float # Outcomes tm_shift_c: float predicted_tm_c: float aggregation_risk_combined: float predicted_aggregation_percent: float stability_score: float
def to_dict(self) -> Dict: """Convert to dict for DataFrame.""" return { 'protein_mw_kda': self.protein_mw_kda, 'protein_pi': self.protein_pi, 'protein_hydrophobicity': self.protein_hydrophobicity, 'protein_tm_baseline_c': self.protein_tm_baseline_c, 'buffer_species': self.buffer_species, 'buffer_conc_mm': self.buffer_conc_mm, 'ph': self.ph, 'ionic_strength_mm': self.ionic_strength_mm, 'osmolarity_mosm_kg': self.osmolarity_mosm_kg, 'stabilizers_json': self.stabilizers_json, 'temperature_c': self.temperature_c, 'storage_duration_days': self.storage_duration_days, 'tm_shift_c': self.tm_shift_c, 'predicted_tm_c': self.predicted_tm_c, 'aggregation_risk_combined': self.aggregation_risk_combined, 'predicted_aggregation_percent': self.predicted_aggregation_percent, 'stability_score': self.stability_score, }
class SyntheticDataGenerator: """Generates high-quality synthetic training data."""
def __init__( self, num_samples: int = 500_000, seed: int = 42, config: Optional[SyntheticDataConfig] = None, ): """ Initialize synthetic data generator.
Args: num_samples: Number of synthetic samples to generate seed: Random seed for reproducibility config: SyntheticDataConfig from config.py """ self.num_samples = num_samples self.seed = seed self.rng = np.random.RandomState(seed) self.config = config or CFG.synthetic_data
# Initialize simulator self.simulator = BiologicsFormulationSimulator( config_dict={ 'hamaker_constant': CFG.simulator.hamaker_constant, 'bjerrum_length': CFG.simulator.bjerrum_length, 'ph_penalty_per_unit_sq': CFG.simulator.ph_penalty_per_unit_sq, 'osmol_positive_slope': CFG.simulator.osmol_positive_slope, 'osmol_negative_slope': CFG.simulator.osmol_negative_slope, 'aggregation_rate_constant': CFG.simulator.aggregation_rate_constant, 'stabilizer_effects': CFG.simulator.stabilizer_effects, } )
logger.info(f"SyntheticDataGenerator initialized: {num_samples} samples, seed={seed}")
def generate(self) -> pd.DataFrame: """ Generate synthetic dataset.
Returns: DataFrame with synthetic (protein, formulation) → outcome triples
Process: 1. Sample random proteins from descriptor space 2. Sample random formulations from composition space 3. Run simulator for each pair 4. Filter out unphysical/invalid samples 5. Return as DataFrame
This is CPU-efficient and can generate millions of samples. """ samples = [] skipped = 0
logger.info(f"Generating {self.num_samples} synthetic samples...")
for i in tqdm(range(self.num_samples), desc="Generating synthetic data"): try: # Sample random protein protein = self._sample_protein()
# Sample random formulation formulation = self._sample_formulation()
# Run simulator output = self.simulator.predict(protein, formulation)
# Create sample stabilizers_dict = formulation.stabilizers or {} sample = SyntheticSample( protein_mw_kda=protein.mw_kda, protein_pi=protein.pi, protein_hydrophobicity=protein.hydrophobicity, protein_tm_baseline_c=protein.tm_baseline_c, buffer_species=formulation.buffer_species, buffer_conc_mm=formulation.buffer_conc_mm, ph=formulation.ph, ionic_strength_mm=formulation.ionic_strength_mm, osmolarity_mosm_kg=formulation.osmolarity_mosm_kg, stabilizers_json=json.dumps(stabilizers_dict), temperature_c=formulation.temperature_c, storage_duration_days=formulation.storage_duration_days, tm_shift_c=output.tm_shift_c, predicted_tm_c=output.predicted_tm_c, aggregation_risk_combined=output.aggregation_risk_combined, predicted_aggregation_percent=output.predicted_aggregation_percent, stability_score=output.stability_score, )
# Quality check: ensure sample is physically plausible if self._is_valid_sample(sample): samples.append(sample.to_dict()) else: skipped += 1
except Exception as e: skipped += 1 if i % 10000 == 0: logger.debug(f"Skipped sample {i}: {e}") continue
logger.info(f"Generated {len(samples)} valid samples, skipped {skipped}")
# Convert to DataFrame df = pd.DataFrame(samples) return df
def _sample_protein(self) -> ProteinDescriptor: """Sample random protein descriptor.""" mw = self.rng.uniform(*self.config.protein_mw_range) pi = self.rng.uniform(*self.config.protein_pi_range) hydro = self.rng.uniform(*self.config.protein_hydrophobicity_range) tm = self.rng.uniform(30, 85) # typical Tm range
return ProteinDescriptor( mw_kda=mw, pi=pi, hydrophobicity=hydro, tm_baseline_c=tm, )
def _sample_formulation(self) -> FormulationComposition: """Sample random formulation composition.""" # Buffer buffer_species = self.rng.choice(self.config.buffer_types) buffer_conc = self.rng.uniform(*self.config.buffer_concentration_range)
# pH ph = self.rng.uniform(*self.config.ph_range)
# Ionic strength ionic_strength = self.rng.uniform(*self.config.ionic_strength_range)
# Osmolarity (derived from buffer + ions) osmolarity = self.rng.uniform(*self.config.osmolarity_range)
# Stabilizers (multi-select) stabilizers = {} num_stab = self.rng.randint(0, self.config.num_stabilizers_per_sample + 1)
for _ in range(num_stab): stab_name = self.rng.choice(list(self.config.stabilizer_pool.keys())) min_conc, max_conc = self.config.stabilizer_pool[stab_name]
# Avoid adding zero-concentration stabilizers if max_conc > 0: conc = self.rng.uniform(min_conc + 0.01, max_conc) stabilizers[stab_name] = conc
# Storage conditions temperature = self.rng.uniform(*self.config.temperature_range) duration = self.rng.uniform(*self.config.storage_duration_range)
return FormulationComposition( buffer_species=buffer_species, buffer_conc_mm=buffer_conc, ph=ph, ionic_strength_mm=ionic_strength, osmolarity_mosm_kg=osmolarity, stabilizers=stabilizers, temperature_c=temperature, storage_duration_days=duration, )
def _is_valid_sample(self, sample: SyntheticSample) -> bool: """ Quality filter: reject unphysical or invalid samples.
Checks: - Aggregation % in reasonable range - Stability score is valid - Outcomes are finite (not NaN/inf) """ # Check for NaN/inf if not np.isfinite(sample.aggregation_risk_combined): return False if not np.isfinite(sample.stability_score): return False
# Aggregation should be 0-100% if not (0 <= sample.predicted_aggregation_percent <= 100): return False
# Stability score should be 0-1 if not (0 <= sample.stability_score <= 1): return False
# At least some buffer if sample.buffer_conc_mm < 1: return False
return True
def save(self, path: Path) -> None: """Generate and save synthetic data to CSV/Parquet.""" df = self.generate()
# Save as both CSV (human-readable) and Parquet (efficient) csv_path = path.with_suffix('.csv') parquet_path = path.with_suffix('.parquet')
logger.info(f"Saving {len(df)} samples to {csv_path}") df.to_csv(csv_path, index=False)
logger.info(f"Saving to Parquet: {parquet_path}") df.to_parquet(parquet_path, index=False)
# Summary statistics logger.info("\n" + "=" * 70) logger.info("SYNTHETIC DATA SUMMARY") logger.info("=" * 70) logger.info(f"Total samples: {len(df)}") logger.info(f"\nProtein descriptors:") logger.info(df[['protein_mw_kda', 'protein_pi', 'protein_tm_baseline_c']].describe()) logger.info(f"\nFormulation parameters:") logger.info(df[['ph', 'ionic_strength_mm', 'temperature_c']].describe()) logger.info(f"\nOutcomes:") logger.info(df[['stability_score', 'predicted_aggregation_percent']].describe()) logger.info("=" * 70)
return df
def generate_synthetic_dataset( output_dir: Path = None, num_samples: int = 500_000, seed: int = 42,) -> pd.DataFrame: """ Convenience function: generate and save synthetic dataset.
Args: output_dir: Directory to save dataset (default: data/) num_samples: Number of samples (default: 500K) seed: Random seed (default: 42)
Returns: Generated DataFrame """ if output_dir is None: output_dir = Path(__file__).parent
output_dir.mkdir(parents=True, exist_ok=True)
# Generate generator = SyntheticDataGenerator( num_samples=num_samples, seed=seed, )
# Save output_path = output_dir / "synthetic_training_data" df = generator.generate() generator.save(output_path)
return df
if __name__ == "__main__": """Generate synthetic dataset.""" import sys from pathlib import Path
logging.basicConfig( level=logging.INFO, format='%(asctime)s - %(name)s - %(levelname)s - %(message)s' )
# Command line: python synthetic_generator.py <num_samples> num_samples = int(sys.argv[1]) if len(sys.argv) > 1 else 10_000
df = generate_synthetic_dataset( num_samples=num_samples, seed=42, )
print(f"\n✓ Generated {len(df)} synthetic samples") print(f"Dataset saved to: data/synthetic_training_data.*")123version https://git-lfs.github.com/spec/v1oid sha256:1ac5efd796179d568251b835650ecf54f37681f3a771a15fc6b0081baa109173size 33722233123version https://git-lfs.github.com/spec/v1oid sha256:a92c824956de1a8d877a2f28a4d89516ee0453d5c0d888921725da4fcc3fc4besize 17981929README.md+203-230
bioformbench_extracted_real_20260903.csvDeleted-9
bioformbench_extracted_real_batch2_20260903.csvDeleted-17
bioformbench_extracted_real_batch3_20260903.csvDeleted-15
bioformbench_extracted_real_batch4_20260903.csvDeleted-4
bioformbench_marketed.csvAdded
bioformbench_seed.csv → bioformbench_real.csvRenamed+27-45
bioformbench_seed_backup_20260903.csvDeleted-27
synthetic_generator.pyDeleted-363
synthetic_training_data.csvDeleted-3
synthetic_training_data.parquetDeleted-3