DepMap Cancer Dependency Analysis

DepMap Cancer Dependency Analysis

Guides an AI agent to download and analyse DepMap cancer dependency data, finding selective dependencies, co-essentiality and candidate synthetic lethality with release-aware checks.

Skill files3 files

references/

scripts/

SKILL.md234 lines
1
---
2
name: depmap
3
description: Retrieves and analyzes Cancer Dependency Map (DepMap) release data, including CRISPR Chronos gene effects, cancer model annotations, omics biomarkers, and PRISM drug sensitivity. Supports cancer-selective dependency, co-essentiality, and candidate synthetic-lethality analyses with release-aware identifiers and statistical checks.
4
license: CC-BY-4.0
5
compatibility: Requires Python 3.10+ with numpy, pandas, and scipy>=1.11 for the bundled helpers. Network access is needed for release discovery; downloading current data may require browser verification through the DepMap portal.
6
metadata:
7
version: "1.2"
8
skill-author: Kuan-lin Huang
9
last-reviewed: "2026-09-30"
10
---
11
12
# DepMap — Cancer Dependency Map
13
14
## When to use
15
16
Use this skill to rank dependencies in cancer models, compare prespecified biomarker
17
cohorts, inspect co-essentiality, or relate genetic dependencies to PRISM compound
18
response. These analyses generate target and synthetic-lethality hypotheses; they
19
do not establish clinical efficacy, a therapeutic window, or a causal interaction.
20
21
DepMap integrates Broad and Sanger CRISPR screens and hosts independent RNAi and
22
drug-screen datasets. Match each question to its assay and pinned release. RNAi
23
DEMETER2 is a different perturbation modality, not an older CRISPR scoring method.
24
25
## 1. Discover a release, then obtain its files
26
27
Use [DepMap Downloads](https://depmap.org/portal/data_page/) and the selected
28
release's README and release notes. On review, the live catalogue's latest
29
`DepMap Public` release was **26Q1**, dated 2026-04-01. Rediscover before new work;
30
a release name or expected quarter is not evidence a release is available.
31
32
### Verified public endpoint
33
34
`GET https://depmap.org/portal/api/no-captcha/download/files` returns a complete
35
CSV catalogue, with no request body, API key, or pagination parameters. Required
36
metadata columns are `release`, `release_date`, `filename`, and `md5_hash`.
37
The live response also has `url`: **older files can have links, while recent
38
release rows have blank links**. All 85 entries for 26Q1 had blank `url` values at
39
review. Treat availability per row, not per endpoint.
40
41
The [staff announcement](https://forum.depmap.org/t/provide-an-open-endpoint-for-latest-version-retrieval/4652)
42
introduced this metadata route in July 2026. The older
43
`https://depmap.org/portal/api/download/files` catalogue can supply download links
44
but returned an HTML verification page during review, including with HTTP 200.
45
Validate content before parsing. Obtain current files through the portal when
46
verification is required. Refresh expiring signed links immediately before use;
47
do not fabricate storage URLs or assume every new release is on Figshare.
48
49
No supported contract was verified for the former `/api/gene?gene_id=...` or
50
`/api/data/gene_dependency` examples. Use local release matrices for gene slices.
51
Do not assume a Python package named `depmap` is an official portal client.
52
53
From the skill root, use the bundled [helpers](scripts/depmap_data.py):
54
55
```python
56
from scripts.depmap_data import fetch_catalogue, select_file, verify_md5
57
58
catalogue = fetch_catalogue()
59
public = catalogue[catalogue["release"].str.startswith("DepMap Public ")]
60
print(public[["release", "release_date"]].drop_duplicates()
61
.sort_values("release_date", ascending=False).head(12))
62
63
# Explicit example pin; inspect discovery output before selecting your release.
64
release = "DepMap Public 26Q1"
65
record = select_file(catalogue, release, "CRISPRGeneEffect.csv")
66
print(record[["release", "filename", "md5_hash"]])
67
# After obtaining this file from the portal:
68
# verify_md5("CRISPRGeneEffect.csv", record["md5_hash"])
69
```
70
71
Save the selected metadata, retrieval date, release citation, local checksum, and
72
README alongside analysis outputs. Record source dataset terms separately from
73
this skill's license; newer release terms differ from older Figshare releases.
74
For a missing published checksum, retain a local SHA-256 and explicitly state
75
that it was not compared with a publisher checksum.
76
77
## 2. Inspect file contracts before joining
78
79
The following names were verified in the 26Q1 catalogue. Check that release's
80
README for units and identifier level before treating a file as a numeric matrix.
81
82
| File | Use and important contract |
83
|---|---|
84
| `CRISPRGeneEffect.csv` | Integrated, model-level Chronos effects; rows are ModelID, columns preserve `Symbol (EntrezID)` |
85
| `CRISPRGeneEffectUncorrected.csv` | Uncorrected effects; not interchangeable with corrected effects |
86
| `CRISPRGeneDependency.csv` | Release-specific dependency statistics; confirm probability/FDR definition and direction in the README |
87
| `Model.csv` | Model metadata keyed by `ModelID` |
88
| `ModelCondition.csv` | Growth/treatment conditions keyed by `ModelConditionID`, mapping to `ModelID` |
89
| `ScreenGeneEffect.csv`, `ScreenSequenceMap.csv`, `CRISPRScreenMap.csv` | Screen-level effects and mappings; multiple screens can belong to one model |
90
| `OmicsExpressionTPMLogp1HumanProteinCodingGenes.csv` | Expression output with sequencing/model metadata and default-entry flags; exclude metadata columns from expression calculations |
91
| `OmicsSomaticMutationsMatrixDamaging.csv`, `OmicsSomaticMutationsMatrixHotspot.csv` | Distinct mutation annotations; damaging and hotspot calls answer different biological questions |
92
| `OmicsCNGeneWGS.csv`, `OmicsCNGeneMC_WES.csv` | Separate WGS/WES copy-number products; do not concatenate as one uniformly processed cohort |
93
| `PortalOmicsCNGeneLog2.csv` | Transformed portal copy-number product; establish the exact transform before inversion |
94
| `OmicsProfiles.csv`, `Gene.csv` | Omics provenance/mappings and gene annotations |
95
| `AchillesScreenQCReport.csv`, `AchillesSequenceQCReport.csv` | Screen/sequence QC; apply documented eligibility rules rather than invented universal cutoffs |
96
97
Current model annotations include `CellLineName`, `OncotreeLineage`,
98
`OncotreePrimaryDisease`, and `OncotreeSubtype`. Legacy `sample_info.csv` fields
99
(`DepMap_ID`, `lineage`, `primary_disease`) require an explicit conversion.
100
`Model.csv` includes models without CRISPR measurements: absence from the effect
101
matrix is not a nondependency score.
102
103
Omics may be indexed by `SequencingID`, `ModelConditionID`, or `ModelID`. For a
104
basal model analysis, use the release's `IsDefaultEntryForModel == Yes` flag,
105
then require one row per `ModelID`. The condition-level flag
106
`IsDefaultEntryForMC` answers a different question. Subset the assay/datatype
107
before selecting defaults from a mapping table. Never average repeated conditions
108
or count them as independent models without an explicit scientific design.
109
110
See the [mapping guide source](https://github.com/broadinstitute/depmap-portal/blob/master/frontend/packages/portal-frontend/src/dataPage/components/MapSection.tsx)
111
and [metadata definitions](https://forum.depmap.org/t/depmap-metadata/3694).
112
113
## 3. Interpret Chronos and inspect a target
114
115
Chronos gene effect is continuous and unbounded. More negative values indicate
116
stronger loss of fitness. In the normalized release matrix, approximately 0 is
117
the nonessential-control anchor and −1 is the common-essential-control anchor;
118
−1 is not a dependency boundary. A filter such as ≤ −0.5 is exploratory, not a
119
p-value, FDR, or probability cutoff. Positive effects may reflect growth advantage
120
or technical noise and need validation.
121
122
For binary calls, inspect the selected file's statistic and direction. A high
123
dependency probability and a low FDR are different rules. Do not silently convert
124
between them. Use release-matched positive/negative control lists and QC outputs.
125
See [score and QC caveats](references/dependency_analysis.md).
126
127
The following local-data examples are illustrative until run against your chosen
128
files. Helper behavior is tested using synthetic fixtures; current bulk matrices
129
were not downloaded during this review.
130
131
```python
132
from scripts.depmap_data import load_gene_effect, load_models, gene_profile
133
134
effects = load_gene_effect("CRISPRGeneEffect.csv")
135
models = load_models("Model.csv")
136
profile = gene_profile(effects, models, "KRAS (3845)")
137
print(profile[["CellLineName", "OncotreeLineage", "gene_effect"]].head(20))
138
139
# Inspect actual annotation values, then choose an exact cohort.
140
print(profile["OncotreeLineage"].value_counts())
141
known = profile.dropna(subset=["OncotreeLineage"])
142
lung = known.loc[known["OncotreeLineage"].eq("Lung"), "gene_effect"]
143
other = known.loc[~known["OncotreeLineage"].eq("Lung"), "gene_effect"]
144
if lung.empty or other.empty:
145
raise ValueError("Both cohorts require observed effects and known lineage")
146
print({"n_lung": len(lung), "n_other": len(other),
147
"other_minus_lung_mean": other.mean() - lung.mean(),
148
"lung_fraction_below_exploratory_cutoff": (lung <= -0.5).mean()})
149
```
150
151
This is a descriptive comparison against other cancer models, not against normal
152
tissue. Keep the denominator and missingness counts. Preserve complete gene labels;
153
a symbol can be ambiguous, and the helper refuses ambiguous symbol resolution.
154
155
## 4. Test biomarker associations
156
157
1. Define the alteration before inspecting target scores. A damaging-call matrix
158
does not establish biallelic loss; activating KRAS hotspots require a different
159
definition from generic damaging mutations.
160
2. Map profiles to the correct model/condition. Use `0` only for an assayed negative,
161
`1` for the prespecified biomarker, and missing for unknown status.
162
3. Restrict to scientifically comparable models (lineage, culture conditions,
163
screen source and related-patient structure). Inspect confounding before testing.
164
4. Test every eligible gene in the planned family, then adjust all its p-values
165
before selecting hits. Report group sizes, effect sizes, p-values, and q-values.
166
5. Validate candidate synthetic lethality with matched/isogenic perturbations and
167
rescue or orthogonal evidence; association alone is insufficient.
168
169
```python
170
import pandas as pd
171
from scripts.depmap_data import biomarker_scan
172
173
# User-prepared, release-matched annotation after the mapping and curation above.
174
status = pd.read_csv("curated_biomarker_status.csv", index_col="ModelID")["status"]
175
results = biomarker_scan(effects, status, min_n=5)
176
# Positive effect_size means stronger dependency in biomarker-positive models.
177
candidates = results.loc[(results["qval"] < 0.1) & (results["effect_size"] > 0)]
178
```
179
180
This one-sided Mann–Whitney screen is exploratory and does not adjust for
181
covariates. `min_n=5` is an explicit example floor, not a power guarantee. For
182
inference across lineages, fit an appropriate adjusted model and inspect effect
183
stability within lineages; do not report the helper's q-value as confounder-adjusted.
184
185
## 5. Co-essentiality and drug sensitivity
186
187
```python
188
from scripts.depmap_data import coessentiality
189
190
correlates = coessentiality(effects, "KRAS (3845)", min_n=500)
191
print(correlates[["gene", "n", "r", "pval", "qval"]].head(20))
192
```
193
194
`min_n` is configurable and should be prespecified for the analysis. Sparse genes
195
can dominate rankings with spurious correlations; always retain the pairwise
196
sample count. The helper uses pairwise complete observations and skips constant
197
genes. Pearson/BH output still needs lineage, library, and screen-quality checks;
198
co-essentiality is not proof of a physical interaction or shared pathway.
199
The [DepMap team's discussion](https://forum.depmap.org/t/crispr-co-depency-top-hits-obscured-by-newly-added-screens/4503)
200
documents this specific sparse-coverage failure mode.
201
202
For PRISM, first select the exact screen/release and endpoint. Treatment-info CSVs
203
are annotations, not sensitivity values. The original primary screen's
204
`primary-screen-replicate-collapsed-logfold-change.csv` has response rows keyed by
205
cell-line `row_name` and columns keyed by treatment `column_name`. Join the
206
corresponding cell-line and treatment-info files; retain compound, dose, and
207
screen identity. Lower log2 fold change indicates greater loss of viability.
208
Secondary-screen AUC comes from dose-response curve parameters and is not the
209
same quantity as single-dose log fold change. See the
210
[PRISM workflow](references/dependency_analysis.md) before loading these files.
211
212
## Validation and sources
213
214
Before reporting: verify release/file identity, unique joins, identifier level,
215
complete gene labels, cohort membership, missingness, screen eligibility, score
216
units/direction, multiple-testing family, and whether evidence is observational.
217
Expression, copy number, and CRISPR can share technical confounders; low expression
218
does not guarantee a measured score of zero. Broad essentiality motivates normal
219
cell/selectivity studies; it does not by itself prove a target is undruggable.
220
221
- [26Q1 release notes](https://forum.depmap.org/t/announcing-the-26q1-release/4606): library correction and updated annotations.
222
- [25Q2 release notes](https://forum.depmap.org/t/announcing-the-25q2-release/4257): omics/default mapping and WGS/WES changes.
223
- [Chronos upstream](https://github.com/broadinstitute/chronos): normalization, copy-number correction, and hit-calling definitions.
224
- [Dempster et al., Genome Biology 22:343 (2021)](https://doi.org/10.1186/s13059-021-02540-7): Chronos method, PMID 34930405.
225
- [Original PRISM Repurposing resource](https://depmap.org/repurposing/): release-specific data and READMEs.
226
227
The live no-captcha catalogue and original PRISM READMEs were fetched successfully.
228
The helper uses Python urllib, which succeeded at review; the same public endpoint
229
returned HTTP 403 with a default requests client. Surface access failures instead
230
of treating an error page as data.
231
Protected portal endpoints returned verification pages; authenticated downloads
232
and current-matrix end-to-end analysis remain unverified. This review makes no
233
claim of a working bearer-token API or undocumented gene-query endpoints.
234

© Kuan-lin Huang · CC BY 4.0 · source · posted by @OpenSourceBuffGuy on promptparty.com

@OpenSourceBuffGuy

I find openly licensed prompts and post them here.

0 followers · 6,373 prompts

More by @OpenSourceBuffGuy

See all
Website Clone Architect prompt image

Website Clone Architect

Reverse-engineers a website section by section, writes component specs, and hands them to parallel builder agents in git worktrees to rebuild it.

agent-skill, orchestrator, parallel-agents, multi-agent, plan-then-execute, web-development, frontend, codebase-analysis, scaffolding, css, html, nextjs, typescript, git, mcp, claude-code, for-developers, for-designers, long-form, advanced, technical-spec, task-decomposition, structured-output, design-systems, ui-ux, tool-use, checklist, report, vibe-coding

Italian Terrace Cafe Candid Portrait prompt image

Italian Terrace Cafe Candid Portrait

Generates a photorealistic candid shot of a woman in a white corset dress laughing at a sunny hotel terrace cafe, written as detailed JSON.

image-prompt, json-prompt, structured-output, photorealistic, portrait, woman, candid, fashion, cottagecore, natural-light, golden-hour, bokeh, summer, travel, cityscape, mountains, medium-shot, vibrant-colors, for-photographers, nano-banana, fashion-shoot, luxury

Night Street Photo With Leashed Cat prompt image

Night Street Photo With Leashed Cat

Generates a flash-lit night street photo of a blonde woman in a retro track jacket walking a hissing tabby cat on a leash.

image-prompt, json-prompt, nano-banana, structured-output, portrait, woman, animals, pet-portrait, night-scene, street-photography, candid, editorial, fashion, dramatic-lighting, photorealistic, vertical-format, medium-shot, graffiti, for-photographers, for-content-creators

1 view

Reviews

Loading reviews…

Discussion

Loading comments…