Linear probe#5
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…F components. Add evaluation metrics. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…mutation null. Add rank-scatter and AUC scatter plots with rho. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…eudo-cells. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…r loading. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds the harness to evaluate whether Stack-generated treated transcriptomes predict
PDTO drug response (AUC), with published methods and baselines to compare against.
What's here
stack_panel.py,build_stack_panel.py,prep_stack_input.py) — map CoderData genes onto Stack's 15,012-gene vocabulary andwrite organoid/cell-line cohorts as pseudo-cells for embedding/generation.
signatures.py,fetch_hallmark.py,data/static/hallmark_signatures.gmt) — curated death/proliferation sets and a loaderfor the MSigDB Hallmark sets (p53/apoptosis up, E2F/G2-M down), scored with a
random-gene-set negative control + within-drug label-permutation null.
l1000.py,validate_bridge_readout.py,bridge_generated_to_auc.py,build_l1000_context.py) — one shared code path that(a) pairs real L1000 treated−DMSO deltas with GDSC2 AUC and (b) turns Stack-generated organoid deltas into AUC
predictions. The
.gctxis read in chunks (bounded memory); cmapPy is lazy-imported.adapters.py,score_viability_adapters.py) — threepublished transcriptome→viability methods, selectable (
--methods, default all), eachcarrying its citation:
hallmark— single-sample signature scoring (Liberzon et al. 2015; Barbie et al. 2009)szalai— L2 linear regression on the perturbation signature (Szalai et al., NAR 2019)xgboost— elastic-net gene selection + gradient-boosted trees (Lu, Chen & Qin,BMC Bioinformatics 2021)
Supervised adapters train on real L1000Δ→GDSC2 AUC and transfer to the generated
organoid deltas (each cohort z-scored to cross the platform gap).
baselines_soragni.py,predict_expression_baselines.py, transferscripts) — drug-mean floor, GDSC2→Soragni transfer, and expression-prediction
baselines, scored identically (global + interaction rho).
Notes
src/tests).xgboostdependency (needs OpenMP/libomplocally).