lorapop / code /work /split_compare.py
bryan7264's picture
Add files using upload-large-folder tool
36357ab verified
Raw History Blame Contribute Delete
637 Bytes
# MIT License, Bryan Cheng, 2026.
"""Overlap of the discovery split D between the primary scan and the family-threshold sensitivity scans, and naive
lambda_GC on D (from the per-trait summaries if present)."""
import json
P0 = json.load(open("results/scans/qwen05_rt/population.json"))
for d in ("sens_fam2", "sens_fam5"):
P = json.load(open(f"results/scans/{d}/population.json"))
assert P["names"] == P0["names"] if "names" in P else True
s0, s1 = P0["split"], P["split"]
same = sum(a == b for a, b in zip(s0, s1))
print(d, "n", len(s0), "same half", same, "share", round(same / len(s0), 3), "keys", sorted(P)[:8])