Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

target-prioritization

БесплатноЗапускает вложенные скриптыНе проверен

Prioritize drug targets from a ranked gene list (e.g., scRNA-seq DE output) by orchestrating parallel API queries against UniProt, OpenTargets (with…

Agents365-aiот Agents365-ai★ 108 звёзд на GitHub1 установка в других каталогах

Об этом скилле

Target Prioritization

A multi-source drug-target due-diligence pipeline for ranked gene lists.

When this skill triggers

The user has a list of candidate genes (typically from a DE / DEG / scRNA-seq analysis) and wants a per-gene dossier across multiple evidence dimensions plus a composite re-ranking. The DE statistical rank is just the entry point; the final priority is informed by protein biology, genetics, druggability, and research maturity.

Common input shapes:

  • A CSV with a gene column (DE output like expression_table_pass_either_1s.csv)
  • A plain-text gene list (one symbol per line)
  • A list of symbols inline in the user's message

Output

Four files inside <output_dir>/:

  1. targets_report.md — one section per gene, sorted by composite score, with a short LLM-written rationale and recommended next step
  2. targets_report.html — self-contained interactive report (sortable + searchable summary table, tier-filterable per-gene cards, score-component bars, UniProt links). Built from the .md and .csv as the final step, after Claude has filled the rationale slots and executive summary.
  3. targets_summary.csv — flat table for sorting/filtering in Excel/pandas
  4. raw_data/<source>.json — raw API responses (audit trail, reusable across future re-scorings)

Pipeline

input gene list
   │
   ▼
scripts/orchestrate.py
   │
   ├─► fetch_uniprot.py        → protein localization, surface, MHC, coding
   ├─► fetch_opentargets.py    → tractability, approved drugs, associated
   │                              diseases (subsumes GWAS Catalog via OT's
   │                              integrated genetics evidence), DepMap CRISPR
   │                              essentiality, gnomAD LOEUF / pLI constraint
   ├─► fetch_pubmed.py         → paper counts (total + focus_disease + cell_context)
   ├─► fetch_hpa.py            → HPA tissue / single-cell specificity + nCPM,
   │                              expression cluster, cancer prognostics
   └─► fetch_chembl.py         → top-potency tool compounds per gene (pIC50,
                                  IC50 nM, mechanism) — dossier-only, no score
   │
   ▼
scripts/aggregate.py
   │
   ▼
output_dir/
  ├─ raw_data/*.json
  ├─ targets_summary.csv       ← composite-score-ranked
  └─ targets_report.md         ← Claude fills the rationale sections
   │
   ▼
scripts/build_html_report.py   ← run AFTER Claude fills rationales
   │
   ▼
output_dir/targets_report.html ← self-contained interactive report

How to invoke

python3 ~/myagents/myskills/target-prioritization/scripts/orchestrate.py \
    --input <gene_list.csv_or_txt> \
    --output <output_dir> \
    [--gene-col gene] \
    [--top 50]
  • --input accepts a CSV (with --gene-col, default gene), a .txt/.tsv, or any file where the first column has gene symbols. Skips header if first cell is gene/symbol/case-insensitive.
  • --top limits the dossier to the top N input genes (default 50) — input order is preserved up to that cut, then composite-score re-ranks within.

orchestrate.py runs the five fetchers in parallel (Python threads, since all calls are I/O-bound). Each writes a self-contained JSON to <output_dir>/raw_data/<source>.json. Then aggregate.py merges them, computes the composite score using weights.yaml, writes targets_summary.csv, and emits a targets_report.md skeleton with one section per gene — the rationale and risks fields are left blank for Claude to fill.

Composite score

Weights live in weights.yaml and can be overridden per-run with --weights. Defaults aim for "find druggable, genetically supported targets with clean therapeutic window and expression in the cell of interest":

composite_score = w1 * druggability_score          (approved drugs, tractability, clin trials)
                + w2 * disease_genetics_score      (OpenTargets disease associations + focus-disease bonus)
                + w3 * tractability_bonus          (surface or secreted vs intracellular)
                + w4 * tissue_specificity          (HPA tissue tag — narrow expression = cleaner window)
                + w5 * cell_context_score          (HPA single-cell nCPM rank in FOCUS_CELL_TYPES)
                + w6 * essentiality_score          (DepMap CRISPR % essential, pan-essentials capped)
                + w7 * safety_constraint_score     (gnomAD LOEUF — high = LoF tolerated → safer to inhibit)
                + w8 * expression_score            (from input DE if present)
                + w9 * novelty_bonus               (favors moderately studied)
                - w10 * over_studied_penalty       (PubMed total > cap → diminishing returns)

ChEMBL contributes dossier columns (chembl_target_id, chembl_best_pchembl, chembl_best_ic50_nm, chembl_top_compounds) but no score component — its job is to surface concrete tool compounds for the "Suggested next step" slot.

Each component is normalized to

Полный SKILL.md на GitHub

Установить target-prioritization в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

prompts/rationale_template.mdreferences/api_endpoints.mdscripts/aggregate.pyscripts/build_html_report.pyscripts/fetch_chembl.pyscripts/fetch_hpa.pyscripts/fetch_opentargets.pyscripts/fetch_pubmed.pyscripts/fetch_uniprot.pyscripts/orchestrate.pyweights.yaml

FAQ

Что делает скилл target-prioritization?

Prioritize drug targets from a ranked gene list (e.g., scRNA-seq DE output) by orchestrating parallel API queries against UniProt, OpenTargets (with integrated DepMap CRISPR essentiality + gnomAD constraint), PubMed, the Human Protein Atlas (HPA), and ChEMBL tool compounds, then re-ranking by a composite score combining protein localization, druggability, disease genetics, tissue specificity (safety), focus-cell-type expression, CRISPR essentiality, LoF safety constraint, and research maturity. Use whenever the user wants to filter, triage, prioritize, or "do due diligence" on a list of candidate genes for drug discovery, especially after a DE / DEG analysis when they say things like "which of these should I follow up on", "filter for druggable targets", "make a target dossier", "rank these for tractability", "annotate these genes for druggability", or "build a target report". Trigger even when the user says just "filter these candidate genes" or hands over a CSV from a DE pipeline.

Как установить скилл target-prioritization?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл target-prioritization запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить target-prioritization с