Skip to content

Commit 231b0b0

Browse files
committed
Update drug key in sample design to use PubChem CID for Soragni target
1 parent 919e46d commit 231b0b0

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

scripts/score_viability_adapters.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,12 @@ def main() -> None:
118118
else None
119119
)
120120

121-
_, design = build_sample_design(load_tranche("sarcoma", repo), "tumor", "viability")
121+
# Key the Soragni target by PubChem CID: the delta sources (additive / learned /
122+
# stack) all key drugs by CID, so the target must too or the merge below is empty.
123+
# (The native loader sets Soragni drug_id = drug name, unlike the old CoderData ids.)
124+
_, design = build_sample_design(
125+
load_tranche("sarcoma", repo), "tumor", "viability", drug_key="pubchem_cid"
126+
)
122127

123128
# train cohort: real L1000 deltas -> GDSC2 AUC (for the supervised adapters and the
124129
# additive baseline). Keep the full delta for the additive per-drug mean; fit the

0 commit comments

Comments
 (0)