scripts/rank_islet1_stacks.py
Use this file in any AI chat (paste-only or attachment-capable):
Pinned raw file: https://openislet.org/files/gen-eb955f8266035aba/scripts/rank_islet1_stacks.py · SHA-256: c05d5fe606219e88…
"matched_combinatorial_search_id": emergent_x["combination_id"],
"global_rank": emergent_x["global_rank_among_all_combinations"],
"K": emergent_x["total_genomic_cuts_K"],
"B": emergent_x["total_base_edits_B"],
"composite_series_system_utility": emergent_x["composite_series_system_utility"],
"modules": emergent_x["modules"],
"triggered_graveyard_rules": emergent_x.get("triggered_graveyard_rules", []),
"stage0_molecular_product_variant_ids": [
"ISLET1_A4_X_MOL_RNLS_WT",
"ISLET1_A4_DXS_ARM1C_L4CD47",
"ISLET1_A4_L3_BFB_BASALFLOOR",
"ISLET1_COMP_R4_X_BFB_DXB_LOWLOAD1500",
],
},
},
"watchlist_qualification": "Prior-ranked candidates under declared filters, not experimentally established Pareto superiority",
"pareto_challenger_watchlist": {
"zero_graveyard_warn_challenger": watchlist_reference(zero_warn_x),
"gate4_er_amyloid_resilience_challenger": watchlist_reference(er_stress_x),
},
"blueprint_x_stage0_molecular_challenger_spec": {
"hypothesis_id": "ISLET1_X_STAGE0_MOLECULAR_HYPOTHESIS_K4_B0",
"distinct_from_grid_challenger": True,
"status": "UNMATERIALIZED_UNMEASURED_HYPOTHESIS",
"execution_supported": False,
"K": 4, "B": 0,
"engineering_complexity_discount": engineering_complexity_discount(4, 0),
"physical_manufacturing_yield": None,
"exact_donor_length_bp": None,
"packaged_length_bp": None,
"candidate_arithmetic_donor_length_derivation_bp": 4056,
"candidate_arithmetic_packaged_length_with_itrs_bp": 4346,
"fully_loaded_arm1x_donor_length_with_spa_maz4_and_20aa_l1_bp": 4225,
"fully_loaded_arm1x_packaged_length_with_itrs_bp": 4515,
"fully_loaded_arm1x_aav6_headroom_bp": 185,
"arm1x_part_sum_reconciliation_muse_r1": (
"Reconciles the two Arm 1X length figures across the architecture: (a) 4,056 bp donor (4,346 bp with 2x145 bp ITRs) "
"is the promoter-swap-only core (3,974 bp Arm 1B - 148 bp Syn_5xISRE_minP + 230 bp Syn_3xISRE_CpGminP_230bp_sense); "
"(b) 4,225 bp donor (4,515 bp packaged, +185 bp AAV6 headroom below 4,700 bp) is the fully loaded Arm 1X assembly "
"incorporating the 154-bp non-palindromic SPA+spacer+MAZ4 sense terminator (+154 bp), 20-aa (G4S)4 L1 linker (+15 bp), "
"and 4-nt S3 PAM+seed shield (+0 bp). In the 8-run (24-clone) 2^3 factorial, SPA+MAZ4 (+154 bp), 20-aa L1 (+15 bp), and "
"4-nt S3 shield are held fixed as common platform background across all 8 cells so W_P, W_D, and W_C remain orthogonal "
"(AUDIT-REF & Q2-X1)."
),
"external_de_novo_test_candidate_status": "UNMATERIALIZED_STAGE0_PROPOSAL_AWAITING_DE_NOVO_SYNTHESIS (arithmetic donor derivation: 3,974 bp Arm 1B - 148 bp Syn_5xISRE_minP + 230 bp sense Syn_3xISRE_CpGminP_230bp_sense [or 230 bp EEF1A1_core comparator] = 4,056 bp promoter-only core / 4,225 bp fully loaded with 154-bp SPA+MAZ4 + 15-bp 20-aa L1; exact_donor_length_bp remains None until nucleotide sequence is materialized on disk)",
"resting_hlae_surface_density_molecules_per_cell": None,
"resting_cd47_surface_density_molecules_per_cell": None,
"composite_series_system_utility": None,
"off_grid_molecular_design_x_locus1_and_lamina_counterfactual_projection_muse_r1": {
"computation_mode": "LIVE_EVALUATOR_DERIVED_KIMI31_R3",
"grid_champion_a_gate3_pediatric": a_g3_disp,
"grid_champion_a_composite_utility": a_comp_disp,
"off_grid_design_x_constitutive_hlae_gate3_pediatric_projection": x_g3_disp,
"off_grid_design_x_constitutive_hlae_composite_utility_projection": x_comp_disp,
"off_grid_design_x_constitutive_hlae_composite_utility_projection_exact_unrounded_inputs": round(x_comp_unrounded, 4),
"unconditional_composite_utility_if_graveyard_009_retained": a_comp_disp,
"off_grid_projection_conditionality_status_sonnet55_r2": "CONDITIONAL_ON_HOUR0_HLAE_15000_MOLECULES_PER_CELL_GATE_REMOVING_GRAVEYARD_009_MINUS_0P20_LOGIT",
"relative_composite_gain_over_champion_a_pct": 7.06,
"legacy_rounded_relative_composite_gain_pct_reference": 7.07,
"relative_composite_gain_over_champion_a_exact_unrounded_inputs_pct": rel_gain_exact_pct,
"relative_composite_gain_from_4dec_gate3_ratio_pct": round(100.0 * (x_g3_disp / a_g3_disp - 1.0), 2),
"derivation_note": (
"While the 2,160-stack grid evaluates fixed locus indicators (where X-grid = ISLET1_CHASSIS_X_CONSERVATIVE_BASE_EDIT_CHALLENGER "
"has K=4, B=1, utility = 0.1046 [0.10463976892871349 exact unrounded / 0.10463977 8-dec / 0.1046 both direct 4-dec and IEEE-754 binary64 cohort-rounded average round((0.1032 + 0.1061)/2, 4) = round(0.10464999999999999, 4) = 0.1046], inheriting the shared categorical NICHE_TRIHORMONAL_120UM_MVF_CAO2 indicator), unscored off-grid Stage-0 molecular/biophysical Design X (K=4, B=0, discount = 1.0000; IIP-0009 / DEC-087) replaces Arm 1B's resting-attenuated "
"Syn_5xISRE_minP promoter (10,890 molecules/cell at Hour 0 [< 15,000 NKG2A threshold; 0.6050x WT 18,000], incurring the -0.20 resting NK vulnerability penalty on Gate 3) "
"with constitutive HLA-E expression (Arm 1C promoter-trapped B2M::HLA-E SCT in DX-S or Arm 1A-lite EEF1A1_core) plus "
"AAVS1::iCasp9-GSG-P2A-CD47-IgV-GPI and the 100 um PDMS-CaO2 lamina (125 um cell bands, 46.39 wt% CaO2, eps = 0.42, <=100 um clusters; evaluated in dedicated Layer-4 PDE scenarios without altering the 2,160-stack Gate 5 prior). Removing the "
"-0.20 Hour-0 resting HLA-E discount (GRAVEYARD_009; sigma(0.5594227 + 0.20) = 0.681228 vs 0.636319 while GRAVEYARD_010's -0.25 stays) increases Gate 3 pediatric survival from 0.6363 to 0.6812 (+4.49 pp) and lifts "
f"projected off-grid K=4, B=0 composite utility from 0.1084 ({a_comp_unrounded:.8f} unrounded) to 0.1160 (0.1084 * 0.6812 / 0.6363 = 0.116050 from displayed 4-decimal inputs; 0.1161 [{x_comp_unrounded:.8f}] from exact unrounded evaluator inputs; exact relative gain is +7.06% [7.0577% unrounded / 7.0564% from 0.6812/0.6363; legacy +7.07% retained in legacy_rounded_relative_composite_gain_pct_reference]; strictly conditional on passing Decision Experiment #1 Hour-0 HLA-E >= 15,000 molecules/cell; unconditional baseline equals 0.1084; AUDIT-REF, D1-02, Q2-X4, L1B-F2 [DEC-077], IIP-0008 [DEC-086] & IIP-0009 [DEC-087])."
),
},
"genomic_budget": "Proposed K=4, B=0; utility discount 1 is not measured manufacturing yield",
"locus1_arm_1x_challenger": "Proposed bidirectional synthetic-promoter HLA-E/CD47 cassette with WT alpha3 Asp227/Thr228 conditional default (W_D = -1 in the 8-run 2^3 Stage-0 factorial) vs optional HLA-E mature-heavy-chain D227K/T228A CD8-null satellite coupon (W_D = +1; activated only if Gate 0A-NK SPR CD8 K_D > 1,000 uM, CD94/NKG2A K_D <= 2.5 uM, 0/6 CMV+ UL40 CTL donors > 5.0% lysis, and >= 80% CD8+ Treg suppression retention all pass; R9-S1-L3A-01 [DEC-077]) and CD47 mature-IgV C15G substitution. No exact Arm 1X donor ledger, structural qualification or expression measurement is available. CD8-null and improved surface-density function remain hypotheses.",
"seed_line_and_perigraft_shield": "Proposed genotype-selected seed line and spatial SA-THBD/SA-FHL-1 plus conditional SA-FasL/CXCL12 microgels. INS rs3842752 identity, allele direction and functional transfer require independent qualification; seed selection is not an editing event, but does not establish ER-stress or DRiP reduction.",
"gate5_annular_lamina_topology": "Layout B is a conditional Layer 4 geometry scenario. Its simulated oxygen values do not validate this molecular product or change the grid score; use the regenerated Layer 4 artifact for scenario parameters and numerical outputs.",
"pending_assay_gates": ["Exact nucleotide and edited-allele ledger", "Lineage-specific expression and HLA-E receptor function", "INS allele/function qualification", "Spatial immune and complement assays", "Matched physical oxygen and viability qualification"],
"stage0_arm1x_2cubed_deconfounding_subdesign_astra_r1": {
"design_id": "STAGE0_ARM1X_2CUBED_COMPONENT_DECONFOUNDING_FACTORIAL",
"runs": 8,
"clones_per_run": 3,
"total_clonal_evaluations": 24,
"external_unmodified_3974bp_arm1b_reference_control_clones": 3,
"fixed_platform_background_across_all_8_cells": (
"154-bp SPA+spacer+MAZ4 sense pause/terminator + 20-aa (G4S)4 L1 linker + 4-nt S3 PAM+seed silent shield "
"(anchored against 3 parallel clones of unmodified 3,974 bp canonical Arm 1B so the +169 bp platform shift is directly measured; AUDIT-REF)"
),
"factors_coded_minus1_plus1": {
"W_P": "-1 = Syn_5xISRE_minP_148bp (Arm 1B / Embodiment A* baseline, 4,143 bp donor background; represented in the product registry by materialized ISLET1_A4_X_MOL_RNLS_WT) vs +1 = Syn_3xISRE_CpGminP_230bp_sense (unmaterialized Arm 1X hybrid constitutive-floor sense promoter challenger, 4,056 bp promoter-only core / 4,225 bp fully loaded donor; optional constitutive EEF1A1_core_230 sense comparator; DEC-078)",
"W_D": "-1 = HLA-E WT alpha3 D227/T228 vs +1 = HLA-E alpha3 D227K/T228A CD8-null substitution",
"W_C": "-1 = CD47 WT Cys15 vs +1 = CD47 C15G (C33G precursor) free-thiol substitution",
},
"orthogonal_variance_multiplier_in_plus_minus_1_coding": 0.125,
"full_contrast_2beta_variance_multiplier": 0.500,
"main_effect_and_interaction_se_pp_at_sigma_run_4p6188": 1.6330,
"main_effect_and_interaction_mde_80pct_power_two_sided_alpha05_df13_pp": 4.95,
"full_biological_contrast_2beta_se_pp_at_sigma_run_4p6188": 3.2660,
"full_biological_contrast_2beta_mde_80pct_power_two_sided_alpha05_df13_pp": 9.90,
"two_batch_hip_core_matched_sigma_run_pp": 5.4314,
"main_effect_and_interaction_se_pp_at_two_batch_sigma_run_5p4314": 1.9203,
"main_effect_and_interaction_mde_80pct_power_two_sided_alpha05_df16_at_5p4314_pp": 5.82,
"main_effect_mde_exact_df16_noncentral_t_at_5p4314_pp": 5.7312,
"full_biological_contrast_2beta_se_pp_at_two_batch_sigma_run_5p4314": 3.8406,
"full_biological_contrast_2beta_mde_80pct_power_two_sided_alpha05_df16_at_5p4314_pp": 11.64,
"full_biological_contrast_2beta_mde_exact_df16_noncentral_t_at_5p4314_pp": 11.4624,
"standalone_two_sided_power_for_5pp_full_contrast_at_n8_two_batch": 0.2558,
"standalone_two_sided_power_exact_df16_noncentral_t_for_5pp_full_contrast": 0.2318,
"standalone_two_sided_power_approximation_note_muse_r2": {
"exact_df16_noncentral_t_power": 0.2318,
"normal_approx_power_unrounded_sigma_run_sqrt_177_over_6_5p431390": 0.2558,
"normal_approx_power_3dec_z_rounded_minus0p658": 0.2558,
"normal_approx_power_rounded_sigma_run_5p43_exact": 0.2559,
"normal_approx_power_rounded_sigma_run_5p43": 0.2559,
"noncentrality_parameter_delta_5pp_over_3p840573": 1.301889,
"clone_only_sigma_eps_zero_sigma_run_sqrt_64_over_3_pp": 4.6188,
"single_batch_with_assay_residual_sigma_run_sqrt_113_over_3_pp": 6.1373,
"note": (
"Reconciles the power and variance-component figures: 0.2318 is the exact df = 16 two-sided noncentral-t power at alpha = 0.05 "
"(t_crit = 2.119905, delta = 5.0 / sqrt(177/12) = 1.301889), 0.2558 (0.255779 unrounded; 0.255815 at 3-decimal z-rounding 1.302 - 1.960 = -0.658) is the standard normal approximation at unrounded "
"sigma_run = sqrt(177/6) = 5.431390 pp, 0.2559 (0.255905) is the exact normal approximation at 2-decimal rounded sigma_run = 5.43 pp, and sigma_run = 4.6188 pp (sqrt(64/3)) is the "
"clone-only (sigma_eps = 0) lower-bound reference whereas a single batch with sigma_eps = 7.0 pp has sigma_run = sqrt(113/3) = 6.1373 pp "
"(half-effect SE = 2.1699 pp, full-contrast SE = 4.3397 pp; AUDIT-REF, AUDIT-REF & AUDIT-REF)."
),
},
"clones_per_cell_required_for_standalone_80pct_power_on_5pp_full_contrast": 15,
"clones_per_cell_if_batch_and_assay_residual_omitted_legacy_r9": 9,
"clones_per_cell_exact_power_at_r9_under_two_batch_variance_model": 0.6030,
"clones_per_cell_required_for_exact_80pct_power_under_two_batch_variance_model_r15": 15,
"clones_per_cell_exact_power_at_r15_df112_under_two_batch_variance_model": 0.8228,
"arm1x_tier_endpoint_role_distinction_sonnet55_r2": {
"tier1_r3_molecular_screen_24_clones": (
"r = 3 clones/cell (24 factorial clones + 3 unmodified 3,974-bp Arm 1B controls + 3 mandatory 15-aa L1 controls = 30 clones) "
"serves as the Stage-0 molecular-endpoint screen for high-SNR biochemical readouts (W_P: QuantiBRITE Hour-0 HLA-E >= 15,000 molecules/cell; "
"W_D: recombinant CD8alpha/beta SPR K_D > 1,000 uM; W_C: DTNB/maleimide-PEG2-biotin free-thiol elimination & SIRPa avidity)."
),
"tier2_r15_functional_lysis_confirmation": (
"r = 15 clones/cell (df = 112, 82.28% exact noncentral-t power at two-batch sigma_run = 5.4314 pp) is required only for "
"standalone 5.0-pp functional immune-evasion / lysis contrast confirmation on surviving parsimonious sub-combinations (AUDIT-REF)."
),
"external_control_pairwise_two_sample_se_note_kimi31_r3": (
"Note on contrast topology (AUDIT-REF & AUDIT-REF): because sigma_run(r)^2 = (64 + 49/2)/r = 88.5 / r already divides by the within-cell clone count r, "
"SE(2*beta_j) = sqrt(88.5 / (2*r)) = 3.8406 pp at r = 3 (df = 16, 23.18% power) or 1.7176 pp at r = 15 (df = 112, 82.28% power) "
"applies to each orthogonal 4-cell vs 4-cell main/interaction contrast within the 2^3 factorial, whereas pairwise two-sample comparisons between a single "
"factorial cell (r_cell clones) and an external reference arm (r_ctrl clones of unmodified 3,974-bp Arm 1B or canonical 15-aa L1) "
"have SE_pairwise = sqrt(sigma_run(r_cell)^2 + sigma_run(r_ctrl)^2) = sqrt(88.5 * (1/r_cell + 1/r_ctrl)): at r_cell = r_ctrl = 3, SE_pairwise = sqrt(88.5 * 2/3) = 7.6811 pp "
"(two-sample t df = 4, power = 8.04% for 5.0 pp); at r_cell = 15 with r_ctrl = 3, SE_pairwise = sqrt(88.5 * (1/15 + 1/3)) = 5.9498 pp (df = 16, power = 12.41%); "
"and if the external reference arm is co-expanded to r_ctrl = 15 alongside r_cell = 15, SE_pairwise = sqrt(88.5 * 2/15) = 3.4351 pp (df = 28, exact noncentral-t power = 29.01% [0.290119; 29.07% is an earlier approximation]; AUDIT-REF)."
),
},
"matched_l1_linker_15aa_vs_20aa_satellite_contrast_astra_r2": (
"MANDATORY Stage-0 satellite arm (3 clones of 4,128-bp Arm 1B + SPA+MAZ4 + S3 with canonical 15-aa L1=(G4S)3 vs 3 clones of 4,143-bp L1-Run 1 with 20-aa L1=(G4S)4, "
"plus 3 clones on the promoted W_P/W_D/W_C background at 4,210 bp vs 4,225 bp) to deconfound the +15-bp 20-aa L1=(G4S)4 linker extension from the +154-bp SPA+MAZ4 "
"terminator shield and adopt L1=(G4S)4 as the default platform linker across A*, B-prime, and X unless 15-aa achieves >= 20-aa Hour-0 HLA-E density and NKG2A+ protection "
"(AUDIT-REF & AUDIT-REF)."
),
"mandatory_satellite_status": "MANDATORY_STAGE0_LINKER_DECONFOUNDING_CONTROL",
"estimand_scale_reconciliation_note_sol61_r2": (
"In {-1, +1} coding, beta_j = (mu_{+1} - mu_{-1}) / 2 is the regression half-effect (Var(beta_j) = sigma_run^2 / 8 = 0.125 * sigma_run^2, "
"SE = 1.6330 pp single-batch / 1.9203 pp two-batch, MDE_80%(beta_j) = 4.95 pp [df=13] / 5.7312 pp exact df=16 noncentral-t [5.82 pp conservative df=13 multiplier]), "
"whereas the full biological level difference Delta_j = mu_{+1} - mu_{-1} = 2 * beta_j has Var(2*beta_j) = sigma_run^2 / 2 = 0.500 * sigma_run^2, "
"SE(2*beta_j) = 3.2660 pp single-batch / 3.8406 pp two-batch, and MDE_80%(2*beta_j) = 9.90 pp (df=13) / 11.4624 pp exact df=16 noncentral-t (11.64 pp conservative df=13 multiplier). "
"A +5.0 pp full contrast corresponds to beta_j = +2.50 pp (23.18% exact df=16 noncentral-t / 25.58% normal-approx standalone two-sided power at r=3 clones/cell [N=8 runs, delta = 5.0 / 3.840573 = 1.301889]; "
"under sigma_run^2(r) = 64/r + 49/(2r) with df = 8(r-1), r = 9 clones/cell yields SE(2*beta_j) = 2.2174 pp and 60.30% power, while r = 15 clones/cell "
"[SE(2*beta_j) = 1.7176 pp, df = 112] achieves 82.28% >= 80% standalone power; AUDIT-REF, AUDIT-REF, & AUDIT-REF)."
),
"hierarchical_parsimony_promotion_rule": (
"Promote the full 3-change Arm 1X (+1, +1, +1) only if each positive factor improves its target "