Command Palette

Search for a command to run...

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

tooluniverse-variant-predictor-dms-validation

БесплатноБез исполняемых скриптовНе проверен

Validate a variant-effect predictor (AlphaMissense, ESM-C SAE, ESM logits, EVE, conservation scores, or any per-variant numeric score) against experimental…

mims-harvardот mims-harvard★ 1 813 звёзд на GitHub

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

Variant-effect predictor benchmarking against DMS

The core user question: "I have a variant-effect predictor — does it actually correlate with experimental DMS measurements on this protein?"

The predictor can be anything that assigns a numeric score to single missense variants:

  • ESM-C 6B Sparse Autoencoder (SAE) feature drops at the mutation site
  • AlphaMissense pathogenicity scores
  • ESM logits-based variant scoring (ESM_score_sequence)
  • EVE / EVE++ scores
  • Conservation scores (ConSurf, Rate4Site)
  • DynaMut2 ΔΔG predictions
  • A custom in-house model

This skill validates ALL of these against a DMS dataset with the same statistical framework. SAE is shown as the worked example because the surrounding skills in this collection are SAE-themed, but the procedure is predictor-agnostic.


When to use this skill

  • You picked a variant-effect predictor and want to know if it's worth trusting on your protein of interest
  • You're comparing two predictors on the same DMS dataset (run this skill twice, compare the resulting per-K Mann-Whitney U p-values + effect sizes)
  • Reviewers want robustness evidence — the parameter sweep (K, neutral band, disruptive quantile) is exactly that
  • You're publishing a new variant-effect method and need a benchmark figure

Not for:

  • Per-position / per-feature interpretation — use tooluniverse-residue-functional-mechanism-interpretation
  • Single-variant interpretation (you have one variant, no DMS) — use tooluniverse-protein-sae-variant-interpretation or tooluniverse-protein-lof-mechanism
  • Building a predictor from scratch — out of scope

Required inputs

Input Format Example
DMS effect matrix (20 amino acids × n_positions) np.array, NaN for unmeasured from MaveDB_get_effect_matrix
Disruptive tail convention "top" (ΔΔG positive = destabilizing) or "bottom" (fitness low = LoF) metadata from DMS retrieval step
Per-variant predictor scores (20 × n_positions) np.array matching DMS layout computed from your chosen predictor — see Step 2
Aggregation K int, mean of top-K when the predictor outputs many sub-scores per variant only relevant for multi-feature predictors like SAE; ignore otherwise

Workflow

Step 1: Retrieve DMS as an effect matrix

One call returns a ready-to-analyze (20 × n_positions) matrix — HGVS parsing, single-missense filtering, score-field detection, and (optional) UniProt numbering verification are done inside the tool:

r = MaveDB_get_effect_matrix(
    urn="urn:mavedb:00000115-a-7",
    uniprot_id="P01116",     # optional but recommended — enables numbering check
)
matrix = np.array(r["data"]["matrix"], dtype=np.float32)  # (20, n_positions)
positions = r["data"]["positions"]
amino_acid_order = r["data"]["amino_acid_order"]          # always 'ACDEFGHIKLMNPQRSTVWY'
# Audit fields — surface in your report:
#   r["data"]["n_parsed_single_missense"], n_dropped, score_field_used,
#   numbering_offset, numbering_check

If numbering_offset != 0, the MaveDB position numbering differs from the UniProt canonical sequence — apply the offset before joining to any other source (PDB / SAE features / AlphaMissense).

Step 2: Compute per-variant predictor scores

Pick one of these predictor sources. The choice changes Step 2 only; Steps 3–5 are identical.

Predictor option A — ESM-C 6B SAE (the worked example)

For every variant, sum SAE activations across the residue window, compute drop = max(0, WT − mut), and aggregate to one score per variant via the top-K mean of drops:

import numpy as np

def sae_drop_per_variant(wt_pooled, variant_pooled, K=3):
    """SAE drop for one variant = mean of the K largest feature drops."""
    drops = np.maximum(0.0, wt_pooled - variant_pooled)  # (n_features,)
    sorted_desc = -np.sort(-drops)
    return float(sorted_desc[:K].mean())

Two ways to score a saturation sweep — pick based on batch size:

When Use Forge cost (for 19 alts × N positions)
Saturation at ≤100 variants OR you only need top-K-per-variant deltas ESM_score_variant_sae_batch(sequence, variants=[...], top_k_features=10) 1 + 19N (1 ref + 1 per mut)
Full-protein per-feature tensor (e.g. for downstream PCA / clustering) Loop ESM_get_sae_features(sequence=mutant), cache by (sequence, position) 2 × 19N (cached reruns free)

The batch tool is the right default — it halves Forge cost vs the per-variant disruption pattern, and the cap of 100 variants per call covers saturation mutagenesis at one position (19) or short positional sweeps (e.g. positions 10-15: 90 variants). For longer sweeps, split into multiple batch calls.

For the full per-residue × per-feature tensor needed by some predictor analyses, fall back to the loop pattern. The full library scale is well-tested: tests/integration/test_dms_pipeline_e2e_kras.py runs ~300 mutants for KRAS positions 10–

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

Установить tooluniverse-variant-predictor-dms-validation в Claude Code и Claude Desktop

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

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

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

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

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

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

FAQ

Что делает скилл tooluniverse-variant-predictor-dms-validation?

Validate a variant-effect predictor (AlphaMissense, ESM-C SAE, ESM logits, EVE, conservation scores, or any per-variant numeric score) against experimental deep mutational scanning (DMS) data. Computes per-variant predictor scores, splits variants into neutral vs disruptive groups by DMS effect, runs a Mann-Whitney U test on the predictor scores, and sweeps the stratification thresholds for robustness. Use when you need to know whether a predictor's scores track real functional disruption on a specific protein.

Как установить скилл tooluniverse-variant-predictor-dms-validation?

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

Скилл tooluniverse-variant-predictor-dms-validation запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

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

Сравнить tooluniverse-variant-predictor-dms-validation с