alterlab-anndata

alterlab-anndata is a skill for Claude Code from AlterLab-IEU/AlterLab-Academic-Skills. It costs 133 tokens per session (3,846 once invoked), scanned A, original, MIT.

A Python data structure for storing measurements together with annotations about observations and variables, such as cells and genes. It supports formats such as H5AD and Zarr and is widely used in single-cell genomics.

In plain words
What is it for?
Use it to create, read, write, subset, transform, and concatenate annotated datasets, including single-cell RNA-sequencing data, embeddings, metadata, and multiple measurement layers.
Why use it?
It keeps experimental data and its labels together, making it easier to filter, combine, save, and reuse datasets. It also supports large or sparse data and additional data layers.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the alterlab-bioinformatics plugin — 38 skills shipped together

Good fit Use it to create, read, write, subset, transform, and concatenate annotated datasets, including single-cell RNA-sequencing data, embeddings, metadata, and multiple measurement layers.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/alterlab-ieu/alterlab-academic-skills/alterlab-anndata
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.

Any agent
npx skills add AlterLab-IEU/AlterLab-Academic-Skills --skill alterlab-anndata
Clone the repo
git clone --depth 1 https://github.com/AlterLab-IEU/AlterLab-Academic-Skills

Made for: Claude Code.

Or install alterlab-bioinformatics, the plugin that ships this one along with the rest of its 38 skills.

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 alterlab-anndata

README.md
[![agentmods](https://agentmods.dev/badge/skills/alterlab-ieu/alterlab-academic-skills/alterlab-anndata/github.svg)](https://agentmods.dev/skills/alterlab-ieu/alterlab-academic-skills/alterlab-anndata)
Your own site
<a href="https://agentmods.dev/skills/alterlab-ieu/alterlab-academic-skills/alterlab-anndata"><img src="https://agentmods.dev/badge/skills/alterlab-ieu/alterlab-academic-skills/alterlab-anndata/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for alterlab-anndata

Your own site · 80×15
<a href="https://agentmods.dev/skills/alterlab-ieu/alterlab-academic-skills/alterlab-anndata"><img src="https://agentmods.dev/badge/skills/alterlab-ieu/alterlab-academic-skills/alterlab-anndata.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 133 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,846 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Anti-Refusal · line 83
    Skill instructs the agent to omit warnings, disclaimers, or ethical commentary. Stripping safety caveats hides risk from the user and is a common jailbreak preamble.
    Fix: Remove instructions that suppress warnings, disclaimers, or ethical commentary. Let the agent surface safety-relevant caveats to the user.
How audits are shown
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.1 $0.00133 $0.03846
Opus 5.5 $0.00053 $0.01538
Sonnet 5.5 $0.00027 $0.00769
Haiku 4.5 $0.00013 $0.00385

Measured 1mo ago against content hash f923eb4ecdec, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

alterlab-anndata 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 1mo 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.

skills/bioinformatics/alterlab-anndata/SKILL.md · 422 lines

How it starts

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

AnnData

Overview

AnnData is a Python package for handling annotated data matrices, storing experimental measurements (X) alongside observation metadata (obs), variable metadata (var), and multi-dimensional annotations (obsm, varm, obsp, varp, uns). Originally designed for single-cell genomics through Scanpy, it now serves as a general-purpose framework for any annotated data requiring efficient storage, manipulation, and analysis.

When to Use This Skill

Use this skill when:

  • Creating, reading, or writing AnnData objects
  • Working with h5ad, zarr, or other genomics data formats
  • Performing single-cell RNA-seq analysis
  • Managing large datasets with sparse matrices or backed mode
  • Concatenating multiple datasets or experimental batches
  • Subsetting, filtering, or transforming annotated data
  • Integrating with scanpy, scvi-tools, or other scverse ecosystem tools

Does NOT Trigger

Scenario Use Instead
QC, normalization, HVG, clustering, UMAP, or marker genes alterlab-scanpy
RNA velocity from spliced/unspliced layers alterlab-scvelo
Deep generative models / batch integration (scVI, scANVI) alterlab-scvi-tools
Querying the public CELLxGENE Census for reference cells alterlab-cellxgene
Chunked n-dimensional arrays outside the AnnData model alterlab-zarr

Installation

uv pip install anndata          # 0.13.x as of 2026-09; needs Python >= 3.12

# Lazy/backed reads (ad.experimental.read_lazy) need dask + xarray:
uv pip install 'anndata[lazy]'   # or 'anndata[dask]' for dask-backed arrays only

What changed in 0.13 (breaking)

These bite existing scripts, so check them before running older code:

  • AnnData.concatenate() is gone — use the module-level ad.concat([...]).
  • .X is copy-on-write like layers/obsm: writing into a subset (view.X = 0) no longer propagates to the parent object. .X is now stored as layers[None], so it shows up in the repr and in .layers.keys().
  • The dtype= argument to the AnnData constructor was removed — cast X yourself.
  • zarr v3 only (zarr >= 3.1); writing the v2 format is deprecated as of 0.13.4 and goes away in 0.14. Stores are written sharded by default.
  • anndata.__version__ and the adata.*_keys() methods are deprecated — use importlib.metadata.version("anndata") and sorted(adata.obs) / k in adata.uns.
  • Loom I/O is deprecated (ad.io.read_loom, adata.write_loom) in favour of h5ad/zarr.

Read the full file on GitHub · 422 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 1mo ago Changed · +25 lines f923eb4ecdec
  2. 1mo ago First seen · 397 lines · 133 tokens per session scan A 04f076625984

Subscribe to this mod's changes

alterlab-anndata is a skill published in the GitHub repository AlterLab-IEU/AlterLab-Academic-Skills (78 stars, last pushed 3d ago), licensed MIT. It adds 133 tokens to every session and 3,846 once invoked, about $0.0005 per session on Opus 5.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

fluidsim

Framework for computational fluid dynamics simulations using Python. Use when running fluid dynamics simulations including Navier-Stokes equations (2D/3D), shallow water equations, stratified flows, or when analyzing turbulence, vortex dynamics, or geophysical flows. Provides pseudospectral methods with FFT, HPC…

Lord1Egypt/scientific-agent-toolkit · 69 tokens

astropy

Comprehensive Python library for astronomy and astrophysics. This skill should be used when working with astronomical data including celestial coordinates, physical units, FITS files, cosmological calculations, time systems, tables, world coordinate systems (WCS), and astronomical data analysis. Use when tasks involve…

Lord1Egypt/scientific-agent-toolkit · 84 tokens

simpy

Process-based discrete-event simulation framework in Python. Use this skill when building simulations of systems with processes, queues, resources, and time-based events such as manufacturing systems, service operations, network traffic, logistics, or any system where entities interact with shared resources over time.

Lord1Egypt/scientific-agent-toolkit · 56 tokens

biopython

Comprehensive molecular biology toolkit. Use for sequence manipulation, file parsing (FASTA/GenBank/PDB), phylogenetics, and programmatic NCBI/PubMed access (Bio.Entrez). Best for batch processing, custom bioinformatics pipelines, BLAST automation. For quick lookups use gget; for multi-service integration use…

Lord1Egypt/scientific-agent-toolkit · 76 tokens

scanpy

Standard single-cell RNA-seq analysis pipeline. Use for QC, normalization, dimensionality reduction (PCA/UMAP/t-SNE), clustering, differential expression, and visualization. Best for exploratory scRNA-seq analysis with established workflows. For deep learning models use scvi-tools; for data format questions use…

Lord1Egypt/scientific-agent-toolkit · 68 tokens

datamol

Pythonic wrapper around RDKit with simplified interface and sensible defaults. Preferred for standard drug discovery including SMILES parsing, standardization, descriptors, fingerprints, clustering, 3D conformers, parallel processing. Returns native rdkit.Chem.Mol objects. For advanced control or custom parameters…

Lord1Egypt/scientific-agent-toolkit · 67 tokens