tangermeme

tangermeme is a skill for Claude Code, Codex from jmschrei/tangermeme. It costs 127 tokens per session (1,609 once invoked), scanned A, original, MIT.

A toolkit for analyzing genomic sequence-to-function models after training. It helps inspect what DNA patterns a model learned and test how changing a sequence affects its output.

In plain words
What is it for?
Use it for predictions, DeepLIFT or SHAP explanations, motif removal and spacing tests, saturation mutagenesis, variant-effect scoring, sequence design, and seqlet calling.
Why use it?
It gives you common ways to study model predictions and explanations without tying the work to one model type or DNA alphabet. This reduces the need to build separate code for each experiment.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/jmschrei/tangermeme/data
Any agent
npx skills add jmschrei/tangermeme --skill data
Clone the repo
git clone --depth 1 https://github.com/jmschrei/tangermeme

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for tangermeme

README.md
[![agentmods](https://agentmods.dev/badge/skills/jmschrei/tangermeme/data.svg)](https://agentmods.dev/skills/jmschrei/tangermeme/data)
Your own site
<a href="https://agentmods.dev/skills/jmschrei/tangermeme/data"><img src="https://agentmods.dev/badge/skills/jmschrei/tangermeme/data.svg" alt="Measured on agentmods" height="20"></a>
Per session 127 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,609 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00127 $0.01609
Opus 5 $0.00063 $0.00805
Sonnet 5 $0.00025 $0.00322
Haiku 4.5 $0.00013 $0.00161

Measured 4d ago against content hash e8b7311cee6b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

tangermeme scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

tangermeme/_skills/data/SKILL.md · 90 lines

How it starts

The opening of the file, as written. The whole thing — 90 lines — stays where its author put it; the contents beside it link to each section on GitHub.

tangermeme

tangermeme answers the "what did my genomic model learn, and what do I do with it after training" question. It provides atomic sequence operations, batched prediction, attribution, perturbation experiments, and sequence design — all deliberately assumption-free (any PyTorch model, any alphabet, raw outputs returned rather than distances).

This skill is a router. Each topic below has a detailed reference file with the exact signatures and footguns. Read the relevant reference file before writing code — do not rely on memory of the API, because several functions have non-obvious defaults (silent wrong-output selection, variable-length returns, reproducibility traps).

Two cross-cutting concepts (read these first if unsure)

  • The func= plug-pointablate, marginalize, space, variant_effect.*, and product.* (where it is the first positional argument) all accept func(model, X, args=, **kwargs). Swapping predict for deep_lift_shap turns a "predictions before/after" experiment into an "attributions before/after" one. Covers the additional_func_kwargs collision trap. This is what makes the library compose.

  • Wrapping models — tangermeme assumes y = model(X) returns a single tensor with layout (batch, channels, length). Real multi-input / multi-output models must be wrapped first. Read this before attribution or design on any non-trivial model. Data preprocessing or output post-processing should be handled in custom wrappers rather than in custom functions.

Task → reference file

If the task is… Read
starting from scratch — set up a notebook to load a model and run predictions → attributions → seqlets → motif tests, end to end references/notebook-walkthrough.md
attribution via DeepLIFT/SHAP — "which bases drive this prediction", attribution logos, hypothetical contributions for CWMs references/deep_lift_shap.md
attribution via ISM / saturation mutagenesis — the forward-pass alternative; use it when DeepLIFT/SHAP convergence deltas are too high, an op can't be registered, or the model is massively multi-task references/saturation_mutagenesis.md
comparing predictions/attributions across N models (replicates, architectures, ensembles) references/comparing-models.md
effect of a motif / region: marginalize, ablate, spacing between motifs references/motif-effects.md
scoring variant effects (substitution / deletion / insertion, from a VCF) references/variant-effect.md
calling seqlets from attributions (recursive / TF-MoDISco) references/seqlets.md
annotating / counting motifs — TOMTOM/FIMO labels, co-occurrence, spacing references/annotate.md
running a function over a product of inputs (sequence × cell-state × …) references/product.md
plotting logos and drawing seqlet/motif annotations on them references/plot.md
composing predict / deep_lift_shap / saturation_mutagenesis through a perturbation fn references/func-pattern.md
adapting a multi-input/output PyTorch model to the tangermeme contract references/model-wrapping.md
loading sequences/signals at loci, reading FASTA/bigWig/BED/MEME/VCF references/io-loci.md
designing sequences to hit a target output (screen / greedy / beam substitution) references/design.md

Read the full file on GitHub · 90 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 90 lines · 127 tokens per session scan A e8b7311cee6b

Subscribe to this mod's changes

tangermeme is a skill published in the GitHub repository jmschrei/tangermeme (309 stars, last pushed 20d ago), licensed MIT. It adds 127 tokens to every session and 1,609 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

geomaster

Comprehensive geospatial science skill covering remote sensing, GIS, spatial analysis, machine learning for earth observation, and 30+ scientific domains. Supports satellite imagery processing (Sentinel, Landsat, MODIS, SAR, hyperspectral), vector and raster data operations, spatial statistics, point cloud processing…

K-Dense-AI/scientific-agent-skills · 148 tokens

evaluating-with-leakage-gates

Evaluate an OpenMed de-identification or clinical NER model against the leakage-first release gates G1a through G8, which gate releases on residual PHI leakage rather than on F1. Use when the user wants to run the OpenMed eval harness on a synthetic golden set, decide whether a de-id model is RELEASABLE or…

maziyarpanahi/openmed · 158 tokens

mapping-loinc

Maps laboratory and clinical observation names extracted by OpenMed to LOINC codes using the public Regenstrief LOINC and FHIR terminology APIs. Use when the user wants to code lab tests, vital signs, or observations to LOINC, resolve a test name plus specimen and method to the correct LOINC part-model code, attach…

maziyarpanahi/openmed · 197 tokens

pysr

Use when fitting equations to data with PySR or SymbolicRegression.jl, when a user wants an interpretable formula, symbolic model, scaling law, or empirical relation discovered from numeric data, or when debugging a PySR search that is slow, stuck, or giving poor equations.

astroautomata/PySR · 61 tokens

evo2

Score, embed, and generate DNA sequences with Evo 2, a long-context genomic foundation model. Use this skill when: (1) Computing per-nucleotide or per-sequence likelihoods for variant effect scoring, (2) Embedding genomic windows for downstream classification, (3) Generating DNA conditioned on a prefix, (4) Scoring…

aipoch/open-science · 83 tokens

experimental-design

Best practices for designing reproducible ML experiments. Use when planning ablations, baselines, or controlled experiments.

aiming-lab/AutoResearchClaw · 25 tokens