OpenIslet

scripts/rank_islet1_stacks.py

Step 5 & 6: Project Islet-1 Sign-Sensitive, Endpoint-Oriented & Locus-Penalized Evaluator (v0.6.9).

script Release v0.8.0 gen-eb955f8266035aba 638 KB · 42 sections

Use this file in any AI chat (paste-only or attachment-capable):

Download as text (.txt) Download section (.txt)

Pinned raw file: https://openislet.org/files/gen-eb955f8266035aba/scripts/rank_islet1_stacks.py · SHA-256: c05d5fe606219e88…

                    "X1:X4": "347/3232 (0.107364)",
                    "X3:X4": "191/808 (0.236386)",
                },
                "mode1_23col_mean_2fi_var_beta_over_sigma2_across_15_pairs": "2097/8080 (0.259530; sum = 12582/3232; vs 6-main-effect mean 137/2424 = 0.056518)",
                "mode1_23col_mean_main_effect_var_beta_over_sigma2_across_6_factors": "137/2424 (0.056518; sum = 137/404 = 1096/3232)",
                "mode1_23col_half_effect_se_pp_at_sigma_run_5p4314": {
                    "X1:X4": 1.7797,
                    "X3:X4": 2.6407,
                    "mean_across_15_2fi_pairs": 2.7669,
                    "arithmetic_mean_across_15_2fi_pairs": 2.5924,
                    "arithmetic_mean_across_15_2fi_pairs_exact": 2.5915,
                    "mean_across_6_main_effects": 1.2912,
                    "arithmetic_mean_across_6_main_effects": 1.2910,
                },
                "mode1_23col_full_contrast_2beta_se_pp_at_sigma_run_5p4314": {
                    "X1:X4": 3.5593,
                    "X3:X4": 5.2814,
                    "mean_across_15_2fi_pairs": 5.5338,
                    "arithmetic_mean_across_15_2fi_pairs": 5.1848,
                    "arithmetic_mean_across_15_2fi_pairs_exact": 5.1831,
                    "mean_across_6_main_effects": 2.5824,
                    "arithmetic_mean_across_6_main_effects": 2.5819,
                },
                "mode1_23col_difference_in_differences_4beta_se_pp_at_sigma_run_5p4314": {
                    "X1:X4": 7.1187,
                    "X3:X4": 10.5629,
                },
                "clustered_covariance_half_effect_se_pp": {
                    "X1:X4": {"mode1_donor_block_se_pp": 1.8872, "mode2_crossed_clone_donor_se_pp": 2.1427},
                    "X3:X4": {"mode1_donor_block_se_pp": 2.8332, "mode2_crossed_clone_donor_se_pp": 2.9847},
                },
                "biological_rationale": (
                    "Elevates beta_{X1:X4} (B2M::HLA-E x TYK2; exact (X^T X)^-1 diagonal 347/3232 = 0.107364, half-effect SE = 1.7797 pp, 2*beta contrast SE = 3.5593 pp, 4*beta DiD SE = 7.1187 pp) "
                    "and beta_{X3:X4} (CXCL10::SERPINB9/PD-L1 x TYK2; exact (X^T X)^-1 diagonal 191/808 = 0.236386, half-effect SE = 2.6407 pp, 2*beta contrast SE = 5.2814 pp, 4*beta DiD SE = 10.5629 pp; "
                    "where 2097/8080 = 0.259530 [sum = 12582/3232, RMS half-effect SE = 2.7669 pp, arithmetic mean = 2.5915 pp exact / 2.5924 pp from 4-decimal rounded diagonals] is the mean variance multiplier across all 15 2FI pairs and 137/2424 = 0.056518 [sum = 137/404 = 1096/3232 across [187/3232, 187/3232, 187/3232, 23/404, 167/3232, 23/404], RMS half-effect SE = 1.2912 pp, arithmetic mean = 1.2910 pp, full-contrast RMS SE = 2.5824 pp; retracting the prior 215/1616 = 0.133045 typo] is the 6-main-effect mean variance multiplier) to co-primary interaction estimands "
                    "in the 36-run HIP-Core regression alongside the 6 main effects, directly testing whether TYK2 loss/hypomorphism blunts ISRE-driven "
                    "HLA-E and SERPINB9/PD-L1 induction under Type-I-IFN-dominant early autoimmune attack (AUDIT-REF, Rule S8, AUDIT-REF, AUDIT-REF, AUDIT-REF & AUDIT-REF)."
                ),
                "isogenic_tyk2_p1104a_by_l3_bfb_hybrid_promoter_satellite_sol61_r4": {
                    "design_id": "STAGE0_TYK2_GENOTYPE_BY_LOCUS3_PROMOTER_3X2_SATELLITE",
                    "factors": {
                        "Factor_1_TYK2_Genotype": ["TYK2_WT", "TYK2_P1104A_HOMOZYGOUS_PRIME_EDIT", "TYK2_KO_BIALLELIC"],
                        "Factor_2_Locus3_Promoter": ["Canonical_Syn_5xISRE_minP", "L3_BF_B_Hybrid_Syn_3xISRE_2xNFkB_hPGK1_Sp1_basalfloor_230"],
                    },
                    "l3_bfb_materialized_construct_binding_kimi31_r4": {
                        "construct_id": "ISLET1_A4_L3_BFB_BASALFLOOR",
                        "donor_length_bp": 4078,
                        "packaged_aav6_length_bp": 4368,
                        "donor_sequence_sha256": "0a5f714d536cfb427039e50966fbc88cc6f7dbec8252f26bf43f32a359017c7e",
                        "promoter_element_composition": "Syn_3xISRE_2xNFkB_enhancer_126bp + hPGK1_Sp1_basal_core_104bp (230 bp driving SERPINB9; paired with 148-bp Syn_5xISRE_minP driving PD-L1)",
                    },
                    "canonical_syn5xisre_comparator_construct_bindings_astra6_r4": {
                        "matched_2afree_comparator": {
                            "comparator_id": "ISLET1_A4_L3_SYN5XISRE_2AFREE_COMPARATOR_3996",
                            "donor_length_bp": 3996,
                            "packaged_aav6_length_bp": 4286,
                            "donor_sequence_sha256": "afae235efdf6bd013f6bb690ac53f7d0ebbf5a6590e441d225debb1bb42f85ba",
                            "duplicated_50mer_windows": 108,
                            "architecture": "Matched 2A-free Locus-3 comparator identical to ISLET1_A4_L3_BFB_BASALFLOOR except the 230-bp L3-BF-B promoter is replaced by the 148-bp Syn_5xISRE_minP element (isolating the pure promoter swap without confounding against tPT2A; carries a 160-bp inter-cistron Syn_5xISRE_minP + Kozak + ATG direct repeat [108 duplicated 50-mers], so paired with the repeat-free 3,799-bp CXCL10p::SERPINB9 + Syn_5xISRE_minP::PD-L1 comparator)",
                        },
                        "canonical_scarfree_3799_comparator": {
                            "construct_id": "ISLET1_A4_L3_SCARFREE_3799",
                            "donor_length_bp": 3799,
                            "packaged_aav6_length_bp": 4089,
                            "donor_sequence_sha256": "3d6bf68e2f0b70911cfea69255e4733db2862ce3baa2b92ae4206561e284bcf7",
                            "pam_shielded_3799bp_donor_sequence_sha256": "13cccea841fbb056c1c5f8ab3f083e6729dd35817436c7788d6b294a6e3508c4",
                            "duplicated_50mer_windows": 4,
                            "inter_unit_promoter_duplications": 0,
                            "architecture": "Canonical Locus-3 scar-free SERPINB9 (endogenous CXCL10 promoter) + Syn_5xISRE_minP -> PD-L1 donor (zero inter-cistron promoter repeat)",
                        },
                    },
                    "replication_and_interaction_estimand_specification_kimi31_r4": {
                        "n_arms": 6,
                        "biological_clones_per_arm_r": 3,
                        "total_independent_clones": 18,
                        "cytokine_regimes_per_clone": 4,
                        "total_clone_by_regime_evaluations": 72,
                        "formal_interaction_estimands": {
                            "DeltaDelta_P1104A_vs_WT_by_Promoter": "((mu[P1104A, L3_BF_B] - mu[P1104A, Syn_5xISRE]) - (mu[WT, L3_BF_B] - mu[WT, Syn_5xISRE])) under Combined_IFN_alpha_1000U_plus_low_IFN_gamma_10U_plus_TNFa_10ng_mL_24h",
                            "DeltaDelta_KO_vs_P1104A_by_Promoter": "((mu[KO, L3_BF_B] - mu[KO, Syn_5xISRE]) - (mu[P1104A, L3_BF_B] - mu[P1104A, Syn_5xISRE])) under IFN_alpha_1000U_mL_24h_early_TypeI_flare",
                            "mechanistic_loss_of_typeI_ifn_control_cell": "TYK2_KO_BIALLELIC x Canonical_Syn_5xISRE_minP serves as the pre-registered negative-induction control for pure Type-I IFN (IFN-alpha) stimulation, isolating NF-kB + basal-floor rescue on L3-BF-B.",
                        },
                    },
                    "cytokine_regimes_tested": [
                        "Unstimulated_Hour0",
                        "IFN_alpha_1000U_mL_24h_early_TypeI_flare",
                        "IFN_gamma_100U_mL_24h_CTL_NK_synapse",
                        "Combined_IFN_alpha_1000U_plus_low_IFN_gamma_10U_plus_TNFa_10ng_mL_24h",
                    ],
                    "pass_criteria": (
                        "Directly resolves the TYK2 P1104A vs KO and L3-BF-B (Syn_3xISRE_2xNFkB + hPGK1_Sp1_basal_core, 4,078-bp donor SHA-256 0a5f714d536cfb427039e50966fbc88cc6f7dbec8252f26bf43f32a359017c7e) vs matched 2A-free Syn_5xISRE (3,996-bp donor SHA-256 afae235efdf6bd013f6bb690ac53f7d0ebbf5a6590e441d225debb1bb42f85ba and repeat-free 3,799-bp CXCL10p::SERPINB9 + Syn_5xISRE_minP::PD-L1 comparator SHA-256 3d6bf68e2f0b70911cfea69255e4733db2862ce3baa2b92ae4206561e284bcf7 / PAM-shielded 13cccea841fbb056c1c5f8ab3f083e6729dd35817436c7788d6b294a6e3508c4) contrast across r = 3 independent clones/arm (18 clones total) outside the 36-run main factorial (which tests TYK2 KO vs WT and canonical Locus 3 vs KO): "
                        "requires Hour-0 [SERPINB9]_0 >= 0.30 uM and >= 70% shield induction under combined IFN-alpha + low IFN-gamma + TNF-alpha, while testing whether human SC-beta TYK2 P1104A retains WT-like IFN-alpha/beta sensitivity at high cytokine concentrations as observed in human primary leukocytes (Boisson-Dupuis et al. 2018 PMID:30578352; Howard et al. 2026 PMID:42268925; AUDIT-REF, AUDIT-REF, AUDIT-REF, AUDIT-REF & AUDIT-REF)."
                    ),
                },
            },
            "endogenous_5tm_cd47_tsp1_axis_and_ectodomain_protease_shedding_gate0a_audit_astra6_r4": {
                "primary_citations": ["PMID:40133488", "PMID:37820008", "PMID:38508139", "PMID:29345283", "PMID:39508879", "PMID:30951669"],
                "gate_0a_tsp1_and_protease_shedding_panel": (
                    "Propagates Layer 3 endogenous 5-TM CD47 TSP-1 sensitivity (Ghimire et al. 2023 PMID:37820008; Kale et al. 2025 PMID:40133488; Xu et al. 2024 PMID:38508139) "
                    "and inflammatory protease ectodomain shedding (Hira-Miyazawa et al. 2018 PMID:29345283) directly into the Stage-0 protocol: "
                    "(1) Decision Experiment #5 adds a recombinant human TSP-1 (1-5 ug/mL) perifusion challenge and an exploratory endogenous CD47 5-TM KO + pure CD47-IgV-GPI replacement satellite arm; "
                    "(2) Gate 0A-surface / Gate 0C-kinetic adds a 4-h neutrophil elastase (100 nM) + recombinant MMP-7/MMP-9/MMP-13 challenge requiring >= 80% surface epitope retention by QuantiBRITE flow and < 10% soluble sPD-L1/sCD47 decoy accumulation by ELISA (AUDIT-REF & AUDIT-REF)."
                ),
                "cell_free_product_effluent_pdl1_functional_screen_iip_0005": {
                    "iip_id": "IIP-0005",
                    "decision_id": "DEC-083",
                    "affects_tests": ["Gate_2B", "Gate_4"],
                    "affects_designs": ["Design_A", "Design_B", "Design_X"],
                    "primary_citations": ["PMID:39508879", "PMID:30951669", "PMID:29345283"],
                    "related_graveyard_rules": ["GY-008", "GY-001", "GY-010"],
                    "scope_and_non_conflation_note": (
                        "Supplements post-protease soluble sPD-L1/sCD47 abundance ELISA (Hira-Miyazawa et al. 2018 PMID:29345283) and Gate 0d graft-antigen/exosome recipient-APC assays "
                        "with a staged, bounded screen of minimally processed cell-free medium conditioned by the product's cells (distinct from Readout 5 CaO2 hydrolysis effluent) on an independently stimulated PD-1-responsive assay "
                        "(Rao et al. 2025 PMID:39508879; Poggio et al. 2019 PMID:30951669). Leaves all construct sequences, ranking weights, Stage-0 COMPLETE/PASS rules, and acceptable shedding percentages unchanged."
                    ),
                    "staged_protocol_clauses": [
                        "1. Dedicated post-washout conditioned-medium harvest from the materialised lead and a named matched parental or package-minus comparator under resting and one planned inflammatory condition, documenting viable input, conditioning time/volume, and maintained product PD-L1 state without reusing protease-challenge supernatant or antigen lysate.",
                        "2. Minimally processed cell-free effluent with a verified cell-free collection boundary and qualified clarification/filtration and matrix recovery for biologically relevant carrier forms so a fixed 0.45-um filter does not silently remove membrane/vesicle carriers.",
                        "3. One validated independently stimulated PD-1-responsive assay with stimulation/medium controls, matched control effluent, responder viability, active anti-PD-L1 blockade vs isotype (measured in blanks, control effluent, and lead effluent), and a form-relevant functional positive reference recovered through the actual processing train, reported as functional effects with uncertainty across independent preparations rather than inferred ng/mL PD-L1 equivalents.",
                        "4. Inflammatory cytokine carryover quantification and lot-matched cytokine-spiked unconditioned blanks (plus neutralisation or source/receiver controls where needed), reporting anti-PD-L1 rescue as PD-L1-pathway-dependent activity until receiver/accessory-cell PD-L1 induction and product-side source attribution are resolved.",
                        "5. Staged follow-up rule: a reproducible, source-attributed positive directs one decision-limiting follow-up (primary-human responder, carrier attribution, or extra-graft concentration-time bound); a sensitive controlled negative deprioritises further work within the tested product, state, processing method, and exposure bound; failed recovery, insensitive responder, carryover, or induction decay remains unresolved and triggers targeted calibration."
                    ],
                },
            },
            "dealiasing_note": dalg["dealiasing_note"],
        },
        "whole_product_clonogenic_safety_model": whole_product_safety_model,
        "bounded_intermediate_endocrine_mixture_comparison_substudy_iip_0006": {
            "iip_id": "IIP-0006",
            "decision_id": "DEC-084",
            "affects_tests": ["Gate_1", "Gate_5"],
            "affects_designs": ["Design_A", "Design_B", "Design_X"],
            "primary_citations": ["PMID:39169271", "PMID:40782792", "PMID:31068696"],
            "related_graveyard_rules": ["GY-003", "GY-004", "GY-007", "GY-005", "GY-009"],
            "reference_recipe_retained": "R = 60:30:10 (beta:alpha:delta)",
            "candidate_recipes_beta_alpha_delta": {
                "M1": "70:20:10",
                "M2": "70:25:5",
                "M3": "80:15:5",
                "M4": "80:10:10",
                "lower_perturbation_screen_priorities": ["M1", "M2"],
            },
            "nominal_allocation_illustration_4_blocks_at_1p60M_viable_post_aggregation_cells_per_1000_ieq": {
                "four_candidates_fixed_total_cells_millions": 25.60,
                "four_candidates_plus_common_reference_fixed_total_cells_millions": 32.00,
                "deferred_four_candidate_fixed_beta_arms_cells_millions": 20.57,
                "four_candidates_fixed_total_plus_fixed_beta_cells_millions": 46.17,
                "total_including_common_reference_and_fixed_beta_cells_millions": 52.57,
                "candidate_only_allocation_reduction_pct_by_deferring_fixed_beta": 44.55,
                "reference_inclusive_allocation_reduction_pct_by_deferring_fixed_beta": 39.13,
                "note": "Nominal allocation illustration assuming stated beta fractions are achieved before beta-only controls, assay allocation, and process losses; recalculate actual cell budget from measured composition and recovery. Not a power analysis.",
            },
            "scope_and_non_conflation_note": (
                "Supplements the 60:30:10 reference and fixed-beta / fixed-total beta-only boundary controls (ISLET-1-BLUEPRINT.md:244-246) "
                "with a bounded, staged intermediate-mixture comparison motivated by Perez-Frances et al. 2024 PMID:39169271 "
                "(human primary beta-cell pseudoislets in vitro GSIS/OCR in Figure 7 and adult-mouse in vivo regulation) and counter-balanced by "
                "Meng et al. 2025 PMID:40782792 (reconstructed endocrine-subtype-complete human PSC-islets). "
                "Changes neither the 60:30:10 reference recipe nor any existing dynamic-function gate (scripts/wetlab_contract.py:1855-1867) or release threshold."
            ),
            "staged_protocol_clauses": [
                "1. Screen at fixed total input first: use blocked, randomised sibling preparations of R=60:30:10 and M1=70:20:10, M2=70:25:5, M3=80:15:5, M4=80:10:10 (M1/M2 lower-perturbation priorities if capacity-limited) with existing beta-only boundary controls; keep assigned recipe primary while directly measuring input-stream purity (up to 80% live beta enrichment in Veres et al. 2019 PMID:31068696 is an enrichment step, not measured purity or a universal ceiling), achieved composition, post-handling recovery, aggregate size/volume, and process losses.",
                "2. Measure whole-preparation function and burden: under the same declared glucose/oxygen waveform, retain raw traces, incremental insulin/C-peptide output U, absolute low-glucose glucagon output G, basal secretion, stimulation/first-phase measures, both t50 and t90 shut-off, and identity/processing readouts (per preparation and per starting/surviving beta and alpha populations), alongside total tissue volume V, state-qualified oxygen consumption Q, and starting-cell/process burden H.",
                "3. Select once; confirm independently: advance at most one candidate from the blocked screen on the measured functional/burden trade-off and confirm on new independent differentiation blocks at fixed viable-beta input and at a directly measured equal-output dose (verified on new preparations, not inferred from beta fraction, SI, or the selected screen), without multiplying mixture dose savings by unqualified folded-area credit.",
                "4. Predeclare the decision before confirmation: state the binding problem, material benefit, and functional precision required to change the recipe; retain existing dynamic gates and 60:30:10 if a justified functional margin is unavailable rather than treating an imprecise non-significant difference as equivalence.",