Logotipo de Target Prioritization

Target Prioritization

Comunidad
Agents365-ai
target-prioritization

Prioriza dianas farmacológicas a partir de una lista ordenada de genes (p. ej., resultados de análisis DE de scRNA-seq) mediante consultas API paralelas a UniProt, OpenTargets (con esencialidad CRISPR de DepMap y restricciones de gnomAD integradas), PubMed, el Human Protein Atlas (HPA) y compuestos herramienta de ChEMBL. Después, vuelve a ordenarlas con una puntuación compuesta que combina localización de proteínas, capacidad de ser objeto de fármacos, genética de enfermedades, especificidad tisular (seguridad), expresión en el tipo celular de interés, esencialidad CRISPR, restricciones de seguridad de LoF y madurez de la investigación. Úsala siempre que el usuario quiera filtrar, clasificar, priorizar o «hacer una evaluación exhaustiva» de una lista de genes candidatos para descubrir fármacos, especialmente después de un análisis DE/DEG, cuando pregunte cosas como «¿cuáles de estos debería investigar más?», «filtra las dianas susceptibles de ser abordadas con fármacos», «prepara un dossier de dianas», «ordena estas según su viabilidad», «anota estos genes según su capacidad de ser objeto de fármacos» o «crea un informe de dianas». Actívala incluso si el usuario solo dice «filtra estos genes candidatos» o te pasa un CSV de una cadena de análisis DE.

Add to TypingMind

Descripción general

EditorAgents365-ai
Repositorio365-skills
Nombre de la habilidadtarget-prioritization
Estrellas
99
Forks
16
Archivos incluidos
11
Enlaces
  • Instrucciones en Markdown

    Un archivo SKILL.md que el modelo carga cuando lo necesita, de modo que solo consume tokens cuando la petición encaja con la habilidad.

  • Funciona con cualquier LLM

    Las habilidades de IA están en Markdown, no en código específico de un proveedor, por lo que funcionan con GPT, Claude, Gemini, Grok o un modelo local.

  • Archivos incluidos: 11

    Scripts, plantillas y referencias que el modelo puede leer mientras trabaja. Los archivos son de solo lectura y nunca se ejecutan.

  • Código abierto

    Publicada por Agents365-ai en GitHub. Revisa el contenido original antes de instalarla.

Instalación

Instala la habilidad de IA Target Prioritization en TypingMind para usarla con cualquier LLM, o añádela a otro agente que lea SKILL.md.

1

Instalar en TypingMind

TypingMind instala una habilidad directamente desde su carpeta de GitHub: lee SKILL.md, empaqueta los archivos de recursos y guarda el resultado localmente.

  1. Abre la aplicación y ve a Plugins → Habilidades.
  2. Elige «Instalar desde GitHub».
  3. Pega la URL de la carpeta de la habilidad que se muestra a continuación y confirma.
    https://github.com/Agents365-ai/365-skills/tree/main/plugins/target-prioritization/skills/target-prioritization
  4. Activa la habilidad en cada chat en el que quieras tenerla disponible.
Plugins → Habilidades → Añadir habilidad → URL de GitHub; después, pega la URL de la carpeta y pulsa Continuar.
2

Instalar en otro agente

Cualquier agente que lea el formato Agent Skills puede usar esta habilidad: copia la carpeta en el directorio de habilidades de ese agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Agents365-ai/365-skills.git /tmp/365-skills
mkdir -p .claude/skills
cp -r /tmp/365-skills/plugins/target-prioritization/skills/target-prioritization .claude/skills/target-prioritization
Reinicia Claude Code después de copiarla para que detecte la nueva habilidad.

Úsala en TypingMind

Activa Target Prioritization en cualquier chat de TypingMind y el modelo se encargará del resto. Su nombre y descripción se incluyen en el prompt del sistema y, en cuanto una petición encaja con la habilidad, el modelo carga las instrucciones completas por sí solo. No tienes que invocarla manualmente y no consume tokens hasta que se utiliza.

El modelo carga Target Prioritization automáticamente en cuanto una petición es relevante para esa habilidad.

Funciona con cualquier modelo de IA

Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que Target Prioritization no está vinculada al modelo para el que se creó. Instálala una sola vez en TypingMind y úsala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modelo local que ejecutes tú, todo con tus propias claves API.

  • Se carga solo cuando se necesita

    El prompt del sistema solo incluye el nombre y la descripción. Las instrucciones se cargan con la primera petición que encaja con la habilidad, por lo que una habilidad que no se usa no supone ningún coste.

  • Cambia de modelo durante el chat

    Como la habilidad contiene instrucciones y no código, cambiar de modelo no impide que funcione: el nuevo modelo lee el mismo archivo SKILL.md.

Instrucciones de la habilidad

Este es el contenido de SKILL.md que carga el modelo. Léelo antes de instalar la habilidad: contiene instrucciones que tu modelo seguirá.

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

bash
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 [0, 1]. The composite is therefore roughly in [-w7, sum(w1..w6)] and is min-max rescaled before reporting. Read weights.yaml for the current defaults.

Writing the rationale

After aggregate.py produces targets_report.md with blank rationale slots, Claude reads the per-gene dossier rows and writes a 2-3 sentence rationale per gene. Use the template in prompts/rationale_template.md — it specifies the structure (one line on the most compelling evidence, one line on the main risk, one line on the suggested next experimental step).

For the top 5–10 genes by composite score, also write a short executive summary at the top of the report. Keep it factual and grounded in the dossier data; do not hallucinate beyond what the JSONs contain.

Building the HTML report (final step)

Once targets_report.md has its rationale slots and executive summary filled in, run build_html_report.py to produce a self-contained interactive HTML report:

bash
python3 ~/myagents/myskills/target-prioritization/scripts/build_html_report.py \
    --report-dir <output_dir> \
    [--title "Target Prioritization Report"] \
    [--subtitle "<cohort / contrast description>"]

This is always the last step. It reads targets_summary.csv and targets_report.md from --report-dir and writes targets_report.html in the same directory. The output is a single file with no external dependencies: sortable summary table at top, live search + tier-filter buttons, one card per gene with chips (surface / secreted / MHC / focus-disease / approved-drug), full dossier grid, and horizontal bars for each score component. Open it directly in a browser; share it as-is.

If rationale slots are still blank when this runs, the per-gene cards will show "not yet written" in those spots — useful for previewing the layout, but the user should be told to fill rationales before sharing.

Data source notes

All free, no API key needed. Rate limits handled in fetchers:

  • UniProt REST — 100 req/sec, batched via accession query
  • OpenTargets GraphQL — generous, single endpoint; provides disease genetics signal via integrated associatedDiseases
  • PubMed E-utilities — 3 req/sec without key; fetchers respect this
  • Human Protein Atlas — search_download.php for symbol→ENSG, then per-ENSG /<ENSG>.json; no rate limit documented, fetcher sleeps 0.15s/gene
  • DepMap CRISPR essentiality — fetched via target.depMapEssentiality inside the OpenTargets call (no separate endpoint)
  • gnomAD constraint — fetched via target.geneticConstraint inside the OpenTargets call (avoids gnomAD's WAF on direct API access)
  • ChEMBL REST — target/search.json then activity.json; ~5 req/sec friendly, fetcher sleeps 0.2s/gene

For deeper API details and field mappings, see references/api_endpoints.md.

Retargeting the focus disease + cell context

The skill ships with an autoimmunity / T-cell default but is intentionally disease-agnostic. Three edits switch the focus:

  • scripts/fetch_opentargets.py and scripts/aggregate.py — change FOCUS_DISEASE_TERMS to the lowercased substrings that should mark a drug or disease association as "in-scope" (e.g. ("cancer", "carcinoma", "lymphoma") for oncology; ("alzheimer", "parkinson", "huntington", "als") for neurodegeneration; ("diabetes", "obesity", "fatty liver", "nash") for metabolic disease).
  • scripts/aggregate.py — change FOCUS_CELL_TYPES to the HPA single-cell type names that should drive cell_context_score. Must match HPA's exact strings (case-sensitive); see comment block above the tuple for examples per domain.
  • scripts/fetch_pubmed.py — adjust the focus_disease and cell_context queries in CONTEXTS (these power the PubMed counts in the dossier).

No other code changes are needed; the CSV column names already use the neutral focus_disease_* / cell_context prefixes.

When NOT to use this skill

  • Single-gene look-ups (overkill — just ask Claude to web-search)
  • Non-human genes (most APIs are human-only; fetchers will silently return empty)
  • Pure literature review without target ambition — use scholar-deep-research or literature-review instead

Iteration tips

The pipeline is designed to be re-runnable cheaply:

  • Raw JSON cache means re-scoring with different weights.yaml is a one-second aggregate.py rerun
  • To add a new evidence source, add scripts/fetch_<source>.py that writes raw_data/<source>.json with the same {gene: {fields}} shape, then add a corresponding term in aggregate.py::compute_composite_score.

Archivos incluidos

El modelo los lee según los necesita mientras la habilidad está cargada. Son archivos de solo lectura y nunca se ejecutan.

Preguntas frecuentes

¿Qué hace la habilidad de IA Target Prioritization?

Prioriza dianas farmacológicas a partir de una lista ordenada de genes (p. ej., resultados de análisis DE de scRNA-seq) mediante consultas API paralelas a UniProt, OpenTargets (con esencialidad CRISPR de DepMap y restricciones de gnomAD integradas), PubMed, el Human Protein Atlas (HPA) y compuestos herramienta de ChEMBL. Después, vuelve a ordenarlas con una puntuación compuesta que combina localización de proteínas, capacidad de ser objeto de fármacos, genética de enfermedades, especificidad tisular (seguridad), expresión en el tipo celular de interés, esencialidad CRISPR, restricciones de...

¿Por qué usar Target Prioritization en TypingMind?

Porque la instalas una vez y la usas con cualquier modelo. Target Prioritization está escrita en Markdown, no en código específico de un proveedor, por lo que la misma habilidad funciona con GPT-5, Claude, Gemini, Grok o un modelo local, y puedes cambiar de modelo en mitad del chat sin que deje de funcionar. TypingMind utiliza tus propias claves API, de modo que pagas directamente a los proveedores en lugar de pagar una suscripción por puesto, y tus habilidades y chats permanecen en tu propio almacenamiento.

¿Cómo instalo Target Prioritization en TypingMind?

Abre Plugins → Habilidades → Instalar desde GitHub en TypingMind y pega https://github.com/Agents365-ai/365-skills/tree/main/plugins/target-prioritization/skills/target-prioritization. TypingMind lee el archivo SKILL.md de esa carpeta, empaqueta los archivos de la carpeta e instala el conjunto como una habilidad que puedes activar en cada chat.

¿Qué modelos de IA pueden usar Target Prioritization?

Cualquier modelo que conectes en TypingMind. Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que GPT, Claude, Gemini, Grok y los modelos locales pueden cargar esta habilidad cuando una solicitud se corresponda con ella.

¿Con cuántos modelos de IA puedo usar Target Prioritization?

Con tantos como quieras. Siempre que un modelo admita habilidades, puedes usar Target Prioritization con él: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama y muchos más, todos en TypingMind con tus propias claves API.

¿Es gratuita la habilidad de IA Target Prioritization?

Agents365-ai la ha publicado en GitHub. Consulta el repositorio para conocer las condiciones de la licencia. Solo pagas a tu proveedor de IA por los tokens que utilizas.

¿Qué son las habilidades de IA?

Una habilidad de IA es un conjunto de instrucciones reutilizables que enseña a un modelo de IA a realizar una tarea concreta. Sigue el formato abierto Agent Skills: un archivo SKILL.md con un nombre y una descripción, además de los scripts, plantillas o archivos de referencia que pueda necesitar el modelo. El modelo solo lee las instrucciones cuando tu solicitud se corresponde con la habilidad, por lo que una habilidad instalada no supone ningún coste hasta que se utiliza.

¿En qué se diferencian las habilidades de IA de los plugins o los servidores MCP?

Un plugin o un servidor MCP proporciona al modelo nuevas herramientas que puede invocar: código que se ejecuta en algún lugar y devuelve un resultado. En cambio, una habilidad de IA aporta conocimientos y procedimientos al modelo: cómo abordar una tarea, qué pasos seguir y qué se considera un buen resultado. Las habilidades son instrucciones en Markdown, por lo que no necesitan servidor, clave API ni entorno de ejecución, y funcionan con cualquier modelo.

Ver el directorio

Crea ya tu propio espacio de trabajo con IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇