bulkrna-batch-correcti…
Load when correcting batch effects in bulk expression using R sva ComBat or the legacy Python parametric approximation. Skip…
Load when scoring drug sensitivity per cluster on an annotated scRNA AnnData via simple-correlation
$ npx -y skills add tiangzlab/omicsclaw --skill sc-drug-response --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/sc-drug-responseContext preview
The summary Claude sees to decide when to auto-load this skill.
Load when scoring drug sensitivity per cluster on an annotated scRNA AnnData via simple-correlation
name: sc-drug-response description: Load when scoring drug sensitivity per cluster on an annotated scRNA AnnData via simple-correlation against drug-target signatures or via CaDRReS-Sc pretrained models (GDSC / PRISM). Skip when the AnnData has no cluster labels yet (use sc-clustering); predicting genetic-perturbation effects (use sc-in-silico-perturbation). tags: - singlecell - scrna - drug-response - pharmacogenomics - cadrres - gdsc - prism
Summarize drug-associated gene expression or apply supplied CaDRReS models. The default does not predict drug sensitivity or recommend treatment.
python skills/singlecell/scrna/sc-drug-response/sc_drug_response.py --demo --output /tmp/sc_drug_demo python skills/singlecell/scrna/sc-drug-response/sc_drug_response.py --input clustered.h5ad --cluster-key leiden --output results/drug_expression python skills/singlecell/scrna/sc-drug-response/sc_drug_response.py --input clustered.h5ad --cluster-key leiden --method cadrres --drug-db gdsc --model-dir /path/to/trusted/models --output results/cadrres
`simple_correlation` is a legacy CLI name for mean expression, not correlation. It averages available genes in each drug-associated gene set and cell group, reports `mean_target_expression`, and ranks those descriptive means. Built-in sets include targets, resistance and response-associated genes with no signed weights. More expression does not imply more sensitivity or clinical benefit.
`cadrres` requires the omicverse adapter, a local CaDRReS-Sc checkout and trusted pretrained model files. No models are bundled or downloaded. The old release download links are unavailable; no replacement source is claimed here. Returned `Score` is model output: inspect its units and direction, not just rank.
Upstream: `sc-preprocessing` and cluster/cell-type annotation. Downstream: inspect gene overlap and expression patterns before any experimental follow-up.
Input: normalized expression in `.h5ad` with gene symbols and a group column. PCA/neighbours are not required for scoring. The CLI writes `processed.h5ad`, `tables/drug_rankings.csv`, `report.md`, `result.json` and `reproducibility/commands.sh`. Bar/heatmap figures are written when scores are available; `figures/drug_sensitivity_umap.png` is a legacy filename and requires UMAP. `obs['drug_score_<drug>']` are legacy names for the same group-level values, not per-cell response predictions. Temporary CaDRReS CSV files are not public outputs.
<!-- api:begin generated from _api.py; regenerate with run.py api <skill dir> --write -->
Return mean_target_expression for each drug-associated gene set and group.
Averages X over available genes and cells, rounding to four decimals to preserve the CLI table. No model is fitted; this is neither correlation nor drug sensitivity, and high expression does not establish benefit. Pass normalized expression and a group key; None summarizes all cells together.
Return a copy of 15 illustrative drug-associated gene sets.
These include targets, resistance and response-associated genes without direction or potency weights. They are not a validated response signature.
Return CaDRReS model scores using explicitly supplied trusted local models.
Requires omicverse's Drug_Response adapter and a CaDRReS-Sc checkout beside model_dir or under the home directory. Models are not bundled or downloaded; upstream download locations have not been validated. Temporary predictions do not modify model_dir. Score units and direction depend on the model.
Return score interpretation; keep=False removes the table's run record.
Return drug means across groups, ordered by decreasing descriptive/model score.
Ranking model scores this way preserves the CLI order, not clinical benefit.
Return a Figure labelled with expression or model-score units, without saving.
<!-- api:end -->
`anndata`, `matplotlib`, `numpy`, `omicverse`, `pandas`, `scanpy`, `scipy`, `seaborn`
omicverse is needed only for the model-backed method. The default and notebook example use local expression means without CaDRReS.
Conversational & memory-enabled AI research partner for multi-omics analysis. CLI + Desktop App (installers in Releases). From biological idea to full research paper.
Load when correcting batch effects in bulk expression using R sva ComBat or the legacy Python parametric approximation. Skip…
Load when discovering bulk gene co-expression modules and hub genes with R WGCNA. Skip direct expression contrasts (use…
Load when comparing gene expression between two conditions in bulk RNA-seq count data. Skip
Load when estimating cell-type proportions in bulk RNA-seq samples from a single-cell or
Load when running pathway / GO term enrichment on a bulk RNA-seq DE result list. Skip when
Load when converting Ensembl, Entrez or symbol IDs in a bulk RNA count matrix using an explicit mapping or a small human demo…