界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
数据与研究 · SKILL.md

scienceclaw-benchmark-for31

scienceclaw-benchmark-for31

【数据与研究】Use when ranking or predicting the fitness effect of single amino-acid substitutions in a protein (deep mutational scanning, ProteinGym-style assays) from labelled variants of the same assay and the wild-type sequence, delivering one score per query variant evaluated by per-assay Spearman correlation. Corresponds to FoR31 of the companion ScienceClaw…

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: scienceclaw-benchmark-for31 description: "Use when ranking or predicting the fitness effect of single amino-acid substitutions in a protein (deep mutational scanning, ProteinGym-style assays) from labelled variants of the same assay and the wild-type sequence, delivering one score per query variant evaluated by per-assay Spearman correlation. Corresponds to FoR31 of the companion ScienceClaw-Eval benchmark." metadata: { "openclaw": { "emoji": "📊" } }

Variant-effect ranking for single substitutions (ProteinGym)

Task. Per assay (one protein): wild-type sequence, labelled single substitutions (position 1-based, wt_aa, mut_aa, DMS_score, higher = fitter) and query variants without scores. Deliverable: a 1-D float array, one score per query row in the query order (higher = fitter); only the ranking within an assay matters.

Quality. Spearman rank correlation per assay (a constant prediction scores 0), averaged over assays; higher is better. Locally: scilib.proteinfit.spearman, mean_spearman(pred, truth, groups).

Library (check scienceclaw_tools(operation=show|weights)):

  • scilib.proteinfit.fit_predict(train, wild_type, query): BLOSUM62 and amino-acid property features, sequence context and position statistics of the training scores, rank-averaged ridge / LightGBM / extra trees. fit_predict_assays for several assays; also variant_features, cross_validate(..., by="variant"|"position").
  • Zero-shot ESM-2 650M (asset esm2_650m, GPU or remote worker; guard with scilib.proteinplm.available()): proteinplm.plm_features(table, wild_type) gives log-likelihood-ratio columns; pass them via extra_train / extra_query or fit_predict_assays(..., plm=True). CPU runs are slow beyond roughly 120 residues.
  • Operators: dms_variant_effect_supervised, dms_variant_effect_supervised_with_features, dms_cross_validated_spearman, protein_variant_effect_esm2.

Routes. Baseline: mean training score at the variant's position (shrunk towards neighbouring positions, assay mean if unseen). Default: fit_predict; add ESM-2 columns when available (BLOSUM62 alone is weak). Select with cross_validate, using by="position" when query variants lie at unseen positions.

Rules.

  • Use only labelled variants of the same assay; never use query scores or columns derived from them (for example a binarised score).
  • Position statistics of a training row must exclude that row (exclude_self=True; fit_predict does this).
  • position is 1-based and wt_aa must match the sequence; keep the query order; output finite; do not compare raw scores across assays.
  • ESM-2 was pretrained on UniRef50 sequences, so homologs of the assayed protein are likely in it. Disclose this overlap.
我的收藏