"5. Keep model predictions subordinate to their calibration: Layer 4 recipe fractions (scripts/run_layer4_tissue_and_metabolic_twin.py:4220-4222,4643-4645) are recorded metadata that do not scale the ODE right-hand side as lineage masses, so modelled exercise nadirs and per-alpha glucagon multipliers (~1.3x to 4x across M1-M4 and paracrine-scaling variants at equal beta mass) remain sensitivity analyses rather than mandatory recipe-advancement gates." ], }, "primary_readouts": [ "Stage 0->7 Absolute Endocrine Yield & Lineage Purity: Absolute monohormonal NKX6-1+/C-peptide+ beta-cell yield per 10^6 starting hPSCs, % GCG+ alpha, % SST+ delta, % SLC18A1+ off-target enterochromaffin cells (<5% release gate after FACS re-aggregation into <=120 um 60:30:10 spheroids), and batch differentiation failure rate across constitutive TYK2-/- vs TYK2+/+ vs Stage 6/7 TYK2i (Chandra et al. 2022 PMID:36289205 ~32% INS+ reduction gate; Gate 1)", "Hour-0 and +IFN-gamma QuantiBRITE molecules/cell for HLA-E and CD47 (comparing bicistronic tPT2A vs 2A-free bidirectional vs CD47-IgV-GPI / CD47-dCT / CD47-WT) on Stage 7 CD49a+/NTPDase3+ beta-cells and iECs (Gate 3)", "Primary human innate immune evasion across two unconfounded sub-panels (3A Myeloid Phagocytosis Panel: CD14+ monocyte-derived macrophages genotyped for SIRPA V1/V1, V1/V2, and V2/V2 [n >= 3 donors per genotype, pHrodo-Red 4h engulfment < 5.0% confirmatory release gate, <= 8.0% Tier-1 36-run screening gate]; 3B Sorted Primary NK Subset Panel: purified CD3- CD56dim NK subsets stratified into HCMV-/NKG2A-high, NKG2A- KIR2DL1+/C2 & KIR2DL2/3+/C1 licensed, and HCMV+/NKG2C-high [>=25% NKG2C+ of CD56dim] donors [n >= 4 donors per subset for confirmatory release, >= 3 Tier-1 screen minimum; 4h specific lysis <= 8.0% in NKG2A+NKG2C- and <= 10.0% across all subsets, CD107a degranulation <= 10.0% confirmatory / <= 12.0% Tier-1 screen]; AUDIT-REF & AUDIT-REF; Gate 3)", "Autoreactive T1D CD8+ TCR (PPI/IGRP/GAD65) and allogeneic PBMC survival + HLA-DQ2/DQ8 DC indirect presentation bystander assay + cytokine-stimulated beta-cell Fas (CD95) incremental apoptosis screen (Delta_TUNEL+ <= +5.0 pp above cytokine-matched SA-THBD-only control AND anti-Fas ZB4 neutralizing mAb rescue <= 5.0 pp) under SA-FasL/SA-THBD microgels (Gate 2A/2B)", "Dynamic perifusion GSIS stimulation index, 16.7 -> 2.8 mM glucose 90% shut-off time (<3 min gate), and Seahorse basal/maximal OCR (Gate 1)", "Satellite 24h and 72h 10 nM AP1903 suicide-switch eradication depth (Two-Tier Gate: Tier-1 36-run bulk potency screen requiring >= 99.9% 24h kill and >= 4-log 72h kill across all 36 runs; Tier-2 lead/MCB clonogenic escape qualification across N_eff = N_clonogenic,input * eta_detection >= 2.996e8 detectable clonogenic opportunities calibrated with 1-, 10-, and 100-cell AP1903-resistant spike-in recovery controls; AUDIT-REF & 012; Gate 5)", ], "tier1_screening_16_runs": factorial_runs[:16], "tier2_dealiasing_augmentation_20_runs": factorial_runs[16:], "runs": factorial_runs, } protocols_dir = PROJECT_ROOT / "data" / "protocols" protocols_dir.mkdir(parents=True, exist_ok=True) direct_logit_sensitivity = compute_direct_output_logit_sensitivity_analysis( target_profiles, all_combos, studies=studies, omics=omics ) wetlab_calibration_link_status = dict(_WETLAB_CALIBRATION_STATUS) raw_edit_rows = [edit for study in studies for arm in study.get("arms", []) for edit in arm.get("gate2_3_4_genetic_and_epitope_edits", [])] expanded_edit_genes = [gene for edit in raw_edit_rows for gene in expand_gene_symbol_tokens(edit.get("gene_symbol_hgnc", ""))] aux_values = {key: value["parameter_value"] for key,value in COMPLETE_GATE_COEFFICIENT_REGISTRY["auxiliary_evaluator_hyperparameters"].items()} reg_entries = {f"{gate}.{key}": value for gate,group in COMPLETE_GATE_COEFFICIENT_REGISTRY.items() if gate.startswith("Gate") for key,value in group.items() if isinstance(value,dict) and "logit_value" in value} reference = json.loads((PROJECT_ROOT / "data/raw/layer2_genomic_and_jaspar_reference.json").read_text()) promoter = reference["ensembl_verified_homology_arms_and_elements"]["EEF1A1_core_promoter_230bp"]["sequence"].upper() reverse_promoter = promoter.translate(str.maketrans("ACGT", "TGCA"))[::-1] fasta_records = {} active_fasta = PROJECT_ROOT / "data/constructs/islet1_scenario_a_constructs_v0.7.0.fasta" for chunk in active_fasta.read_text().split(">"): if chunk.strip(): lines = chunk.splitlines() fasta_records[lines[0]] = "".join(lines[1:]).strip().upper() promoter_occurrences = [{"construct_id": cid, "forward_occurrences": seq.count(promoter), "reverse_complement_occurrences": seq.count(reverse_promoter)} for cid,seq in fasta_records.items() if promoter in seq or reverse_promoter in seq] layer1_audit_ledger = { "method": "Computed from this evaluation's source studies, graph, registry, exact design and diagnostics; not an audit closure assertion", "source_counts": {"studies": len(studies), "arms": sum(len(study.get("arms", [])) for study in studies), "atomic_effects": sum(len(study.get("atomic_effects", [])) for study in studies), "raw_edit_rows": len(raw_edit_rows), "expanded_edit_gene_occurrences": len(expanded_edit_genes)}, "corpus_eligibility": graph.get("corpus_epistemic_and_fidelity_diagnostics", {}), "profile_counts": {"genes": len(target_profiles), "candidate_target_profiles_with_typed_numeric_lrr": sum(profile.get("signed_lrr_weight_total",0)>0 for profile in target_profiles.values()), "independently_adjudicated_direction_effects": 0, "direction_method": "rule_based_heuristic; no independent adjudication dataset supplied"}, "native_eef1a1_promoter": {"length_bp": len(promoter), "cpg_dinucleotides": promoter.count("CG"), "gc_fraction": (promoter.count("G")+promoter.count("C"))/len(promoter), "sha256": hashlib.sha256(promoter.encode()).hexdigest(), "construct_occurrences": promoter_occurrences, "total_exact_or_rc_occurrences": sum(row["forward_occurrences"]+row["reverse_complement_occurrences"] for row in promoter_occurrences)}, "registry": {"source_literal_offset_terms": sum(len(re.findall(r"(?