scripts/run_layer2_perturbation_and_regulatory_plane.py
Use this file in any AI chat (paste-only or attachment-capable):
Pinned raw file: https://openislet.org/files/gen-eb955f8266035aba/scripts/run_layer2_perturbation_and_regulatory_plane.py · SHA-256: 3220e68f97203dbc…
"biological_context": "Adult human population genetics (germline natural SLC30A8 loss-of-function heterozygotes and homozygotes)",
"finding_scope": "Lower adult type 2 diabetes risk in natural LoF carriers; argues against universal adult knockout harm without certifying in-vitro hPSC-to-beta differentiation yield.",
},
{
"citation": "Dwivedi et al. 2019 PMID:31676859",
"biological_context": "Human stem-cell beta-like differentiation in clones with premature stop codons in SLC30A8 alongside adult/physiological assays",
"finding_scope": "Reduced INS- and SLC30A8-transcript-expressing cell formation in particular premature-stop differentiation experiments alongside beneficial physiological insulin-secretion effects.",
},
{
"citation": "Balke et al. 2018 PMID:29679103",
"biological_context": "Recipient rs13266634 genotyping in n = 40 immunosuppressed clinical islet transplant recipients (not donor SLC30A8 knockout)",
"finding_scope": "Recipient CT/TT genotypes associated with failure to achieve insulin independence in multivariate analysis; does not test donor SC-islet knockout.",
},
{
"citation": "Gasser et al. 2026 PMID:42078397 (non-peer-reviewed medRxiv preprint)",
"biological_context": "R138X human SC-islet differentiation preprint",
"finding_scope": "Reports normal differentiation and some improved identity/function measures in R138X SC-islets; as a non-peer-reviewed preprint, it qualifies Dwivedi 2019 rather than providing definitive product reassurance.",
},
],
"proposed_challenger_study_advancement_conditions": (
"Any optional donor SLC30A8 challenger study (distinct from established Blueprint A/X release thresholds) must predeclare: "
"(1) absolute viable Stage-7 INS+/NKX6-1+ cell yield per starting hPSC across independent differentiation blocks (never percentage among survivors alone), "
"(2) the 12-week in-vivo stimulated human C-peptide model, implanted starting-cell/IEQ dose denominator, justified non-inferiority margin, and one-sided confidence criterion "
"(never a pilot point estimate >= 90% or non-significant p-value), and "
"(3) full retention of Readout 2 dynamic low-glucose shut-off (t50 and t90), basal secretion, glucagon counterregulation, and cellular OCR headroom gates (GY-003, GY-004, GY-007)."
),
},
"endogenous_intracellular_cd59_iris_secretion_cross_reference": {
"status": "PRESERVED_IN_CANONICAL_DESIGNS_SEPARATE_SECRETION_AND_COMPLEMENT_READOUTS",
"primary_citation": "Golec et al. 2022 PMID:35666870",
"blueprint_anchor": "ISLET-1-BLUEPRINT.md Section 8 Row 3",
"qualification_scope": (
"Endogenous CD59 remains unedited so non-GPI-anchored intracellular isoforms (IRIS-1/IRIS-2) required for SNARE-mediated "
"insulin granule exocytosis are preserved and verified via Readout 2 dynamic GSIS/C-peptide perifusion separately from "
"Readout 3C cell-surface GPI-anchored complement (C3b/C5b-9) lysis attribution."
),
},
},
"stage0_post_adjunct_and_held_challenger_falsifier_gates_iip_0012": {
"decision_id": "DEC-091",
"contribution_id": "IIP-0012",
"core_scoring_impact": "ZERO_LAYER1_SCORE_CHANGE",
"post_adjunct_depletion_three_history_qualification_scope": {
"primary_citations": [
"Headen et al. 2018 PMID:29867165",
"Lei et al. 2022 PMID:35559682",
"Turan et al. 2024 PMID:38709159",
"Kazmi et al. 2026 PMID:41842939",
],
"protocol_summary": (
"Blocked sibling-aliquot three-history Stage-0 rechallenge on existing exact Stage-7 preparations without new genomic edits: "
"ARM1_NEVER_CONDITIONED vs ARM2_CONDITIONED_DEPLETED (verified carrier-bound + cell-free supernatant SA-FasL and SA-THBD bioactivity "
"depleted below predeclared assay LLOD/depletion limits, matched contemporaneous sham/age handling, declared adjunct_sa_fhl1_status "
"preventing active SA-FHL-1 lots from being misclassified as complete adjunct depletion, non-pooled NATURAL_AGING_DECAY vs PHYSICAL_WASHOUT "
"depletion modes, and explicit RETAINED_CONDITIONED_RESPONDERS vs FRESH_RECIPIENT_RESPONDERS / MHC-II CD4+ vs MHC-I CD8+ cross-presentation "
"separation) vs ARM3_CONTINUOUSLY_ACTIVE (directly verified ongoing functional bioactivity; noting Headen 2018 PMID:29867165 reported "
"3.0 +/- 0.8 d fluorescent SA-FasL retention rather than functional bioactivity half-life and used transient systemic rapamycin)."
),
},
"ectopic_cd55_scr14_unconfounded_satellite_scope": {
"status": "SEPARATE_EXPERIMENTAL_SATELLITE_NOT_CORE_CONSTRUCT",
"primary_citations": [
"Golec et al. 2022 PMID:35666870",
"van der Torren et al. 2017 PMID:27787618",
"Xu et al. 2024 PMID:38508139",
],
"primary_causal_contrast": (
"Exact same edited graft background + ectopic CD55(SCR1-4) (with declared GPI vs TM anchor, surface localization, QuantiBRITE density, "
"and PIGK GPI-biosynthesis non-competition against CD47-IgV-GPI and endogenous CD59) vs exact same edited graft background without "
"ectopic CD55 under matched delivery/mock treatment and intact endogenous CD59; unedited WT (already complement-resistant in mature "
"endocrine cells per van der Torren 2017 PMID:27787618) and CD59 loss-of-function (confounded by IRIS-1/2 SNARE secretion loss per "
"Golec 2022 PMID:35666870) serve strictly as supplementary references alongside the existing Layer-3 CD47-CD55 / 2A-free CD55+CD59 challenger."
),
},
"held_challenger_state_machine": {
"initial_state": "HOLD_FOR_PROSPECTIVE_FALSIFIER",
"on_falsifier_breach": "DISQUALIFIED_AT_FALSIFIER",
"on_missing_or_underpowered_data": "HOLD_FOR_PROSPECTIVE_FALSIFIER",
"on_independent_clearance": "ELIGIBLE_FOR_INDEPENDENT_D2_CONFIRMATION_PROPOSAL",
"promotion_guard": "Never triggers automatic or silent promotion into Scenario A, Scenario B, or Challenger X; requires independent multi-clone, multi-differentiation-block, and multi-donor confirmation plus a separate follow-on IIP.",
},
"held_challenger_families": [
{
"family_id": "TYMS_AUXOTROPHIC_DIVIDING_CELL_CONTAINMENT",
"status": "HOLD_FOR_PROSPECTIVE_FALSIFIER",
"transcript_and_locus_reconciliation": (
"Reconciles live Ensembl ENST00000323274.15 vs .9 (Exon 1 chr18:657653-657947, CDS start chr18:657743, antisense ENOSF1 "
"ENSG00000132199 start chr18:667671; chr18:657600-658000 spans noncoding sequence and is a target window rather than an exact KO allele; "
"Tummala et al. 2022 PMID:35931051 established ENOSF1-to-TYMS suppression rather than proving exon-5 KO damages ENOSF1). "
"Nuclease TYMS KO adds a K chromosomal cut rather than a B base edit under GY-006; biallelic pan-lineage AAVS1 iCasp9 remains mandatory "
"and functionally verified (GY-002); arrest across 0.1-20 uM supplemented 2'-deoxythymidine (dThd) is framed as an aggressive "
"salvage-vulnerability falsifier (Sartori-Maldonado et al. 2024 PMID:38867450 rescued KO proliferation at 20 uM dThd and noted dying-cell "
"salvage and 3D residual growth), paired with dTTP/dUTP balance, >=63,000x duplex-seq/CAST-seq, and shared iEC/iPericyte vascular bank checks."
),
},
{
"family_id": "DESIGN_B_NLRC5_ISRE_CIS_EDIT",
"status": "HOLD_FOR_PROSPECTIVE_FALSIFIER",
"candidate_allele_grch38": "chr16:56989556:C>G",
"qualification_requirements": (
"Must name the exact Design-B background modified (scored 6-locus ISLET1_CHASSIS_B_HLA_C_RETAINED_6LOCUS_HYPOTHESIS vs unscored "
"B'-SCT molecular hypotheses), quantify HLA-A, HLA-B, and retained HLA-C separately alongside trans HLA-E, PD-L1, and cis CETP, "
"and test matched KIR-defined (NKG2A+, NKG2C+, KIR2DL1/2/3+, KIR3DL1+) primary NK subsets under Playbook absolute lysis ceilings "
"(never generic CD56+ survival; GY-001, GY-005); notes >=75% HLA-A/B reduction with >=80% HLA-C/HLA-E/PD-L1 retention is an "
"aspirational engineering gate given ~50% HLA-I reduction under near-complete NLRC5 knockdown in Szymczak et al. 2022 PMID:36103539."
),
},
{
"family_id": "ENDOGENOUS_CD274_SPLICE_DONOR_PLUS6_EDIT",
"status": "HOLD_FOR_PROSPECTIVE_FALSIFIER",
"candidate_allele_grch38": "chr9:5457426:A>T (ENST00000381577.4 exon 3 end 5457420, ATG|GTAAGA donor +6)",
"qualification_requirements": (
"Notes Rao et al. 2026 PMID:42856285 is a non-peer-reviewed September 2026 bioRxiv preprint and neither Rao 2026 PMID:42856285 nor Yan et al. "
"2023 PMID:37175900 tested +6A>T (which could impair protective PD-L1). Requires isoform-specific junction assays distinguishing "
"endogenous Ex3-included vs Ex2->Ex4 skipped transcripts and endogenous surface/secreted PD-L1 contribution from the intronless "
"Locus-3 PD-L1 cDNA cassette, undisturbed cis PDCD1LG2, and functional PD-1 engagement (GY-001, GY-006, GY-008)."
),
},
{
"family_id": "TXNIP_CHORE_SINGLE_ALLELE_HYPOXIA_CHALLENGERS",
"status": "HOLD_FOR_PROSPECTIVE_FALSIFIER",
"candidate_alleles_grch38": [
"chr1:145996652:T>A",
"chr1:145996656:G>C",
"chr1:145996667:G>T",
],
"qualification_requirements": (
"Tested strictly as individual B = 1 single-allele experiments (never multiplexed B >= 3; GY-006), noting Bradley et al. 2026 "
"PMID:42120510 studied 48-h 1% O2 dysfunction in larger SC-islets without TXNIP editing or reoxygenation. Requires matched "
"cluster-size controls across 48-h 1% O2 plus reoxygenation recovery, absolute viable INS+NKX6-1+ beta-cell recovery per starting "
"input, alpha/delta survival, basal insulin secretion, dynamic GSIS, low-glucose shut-off (t50 and t90), and OCR without waiving "
"G6PC2/RNLS or Layer-4 oxygen-budget gates (GY-003, GY-004)."
),
},
],
},
"stage0_two_strand_splice_census_and_challenger_manifest_iip_0015": (
_iip_0015_manifest := _build_two_strand_splice_census_and_challenger_manifest_iip_0015(
ref=ref,
construct_verification=construct_verification,
arm1a_can=_canonical_fasta["ISLET1_LOCUS1_ARM1A_B2M_HLAE_SCT_GSGP2A_CD47_IGV_GPI_4880bp"],
arm1b_can=_canonical_fasta["ISLET1_LOCUS1_ARM1B_B2M_BIDIR_2AFREE_CD47_IGV_GPI_HLAE_SCT_3974bp"],
l3_can=_canonical_fasta["ISLET1_LOCUS3_CXCL10_SERPINB9_GSGP2A_PDL1_NO_FURIN_4090bp"],
l4_can=_canonical_fasta["ISLET1_LOCUS4_AAVS1_CHS4_455BP_CBX3_A2UCOE_EEF1A1_ICASP9_3457bp"],
)
),
"stage0_s10_hlae_comparator_panel_manifest_iip_0016": _build_s10_hlae_comparator_panel_manifest_iip_0016(
iip_0015_manifest=_iip_0015_manifest,
arm1b_can=_canonical_fasta["ISLET1_LOCUS1_ARM1B_B2M_BIDIR_2AFREE_CD47_IGV_GPI_HLAE_SCT_3974bp"],
),
"species_separated_proteome_subtracted_peptide_census_iip_0017": _build_species_separated_proteome_census_iip_0017(),
"stage0_locus3_multimir_and_cbe_needle_manifest_iip_0018": _build_locus3_multimir_and_cbe_needle_manifest_iip_0018(
iip_0015_manifest=_iip_0015_manifest,
),
"extracellular_biomaterial_foreign_peptide_census_iip_0020": _build_extracellular_biomaterial_census_iip_0020(),
"stage0_design_y_wildcard_manifest_iip_0023": _build_design_y_wildcard_manifest_iip_0023(),
"stage0_design_b_comparator_provenance_and_ins_retirement_manifest_iip_0026": (
_iip_0026_manifest := _build_design_b_comparator_provenance_and_ins_retirement_manifest_iip_0026(
ref=ref,
construct_verification=construct_verification,
arm1a_can=_canonical_fasta["ISLET1_LOCUS1_ARM1A_B2M_HLAE_SCT_GSGP2A_CD47_IGV_GPI_4880bp"],
arm1b_can=_canonical_fasta["ISLET1_LOCUS1_ARM1B_B2M_BIDIR_2AFREE_CD47_IGV_GPI_HLAE_SCT_3974bp"],
l3_can=_canonical_fasta["ISLET1_LOCUS3_CXCL10_SERPINB9_GSGP2A_PDL1_NO_FURIN_4090bp"],
l4_can=_canonical_fasta["ISLET1_LOCUS4_AAVS1_CHS4_455BP_CBX3_A2UCOE_EEF1A1_ICASP9_3457bp"],
)
),
"stage0_locus3_initiation_6pwm_and_aav_itr_audit_iip_0027": _build_locus3_initiation_6pwm_and_aav_itr_audit_iip_0027(
ref=ref,
construct_verification=construct_verification,
iip_0015_manifest=_iip_0015_manifest,
iip_0026_manifest=_iip_0026_manifest,
),
"stage0_p2_itm2b_nm021999_reserve_and_brichos_audit_iip_0028": _build_itm2b_nm021999_reserve_and_brichos_comparator_audit_iip_0028(
ref=ref,
l3_can=_canonical_fasta["ISLET1_LOCUS3_CXCL10_SERPINB9_GSGP2A_PDL1_NO_FURIN_4090bp"],
l4_can=_canonical_fasta["ISLET1_LOCUS4_AAVS1_CHS4_455BP_CBX3_A2UCOE_EEF1A1_ICASP9_3457bp"],
),
"stage0_locus2_ciita_modeb_comparators_v3_manifest_iip_0031": build_locus2_ciita_modeb_comparators_v3_manifest(
ref=ref,
),
}
if (REPO_ROOT / ".openislet_public_bundle").is_file() and ATLAS_OUT.is_file():
try:
prev_atlas = json.loads(ATLAS_OUT.read_text(encoding="utf-8"))
if "public_effects_provenance_rebinding" in prev_atlas:
atlas["public_effects_provenance_rebinding"] = prev_atlas["public_effects_provenance_rebinding"]
except Exception:
pass
ATLAS_OUT.parent.mkdir(parents=True, exist_ok=True)
with ATLAS_OUT.open("w", encoding="utf-8") as f:
json.dump(atlas, f, indent=2, ensure_ascii=not (REPO_ROOT / ".openislet_public_bundle").is_file())
f.write("\n")
print(f"[Layer 2 v0.8.0] Wrote {FASTA_OUT.relative_to(REPO_ROOT)} and {ATLAS_OUT.relative_to(REPO_ROOT)}")
for c in construct_verification["constructs"]:
print(
f" {c['construct_id']}: donor={c['total_length_bp']} bp, "
f"with_2xITRs={c['packaged_aav6_genome_with_2x145bp_itrs_bp']} bp "
f"(AAV6<=4.7kb={c['aav6_single_capsid_compatible_le_4700bp']}, headroom={c['aav6_packaging_headroom_including_itrs_bp']:+d} bp)"
)
if __name__ == "__main__":
main()