Back to Skills

anndata

This skill should be used when working with annotated data matrices in Python, particularly for single-cell genomics analysis, managing experimental measurements with metadata, or handling large-scale biological datasets. Use when tasks involve AnnData objects, h5ad files, single-cell RNA-seq data, or integration with scanpy/scverse tools.

17,798stars1,609forksUpdated 1/21/2026

Security Assessment

Safe(100/100)
Security Score100/100

About anndata

The anndata skill provides a robust framework for working with annotated data matrices in Python, specifically tailored for single-cell genomics analysis. It addresses the challenges of managing large-scale biological datasets by enabling researchers to store experimental measurements alongside rich metadata. This skill simplifies the process of creating, reading, and writing AnnData objects, which are essential for handling complex genomic data efficiently. By integrating seamlessly with popular tools such as Scanpy and scverse, it enhances the overall data analysis experience in the realm of genomics.

FAQ

How do I create an AnnData object?

You can create an AnnData object by using the AnnData class from the anndata package, passing your data matrix along with observation and variable metadata.

What formats does anndata support for reading and writing?

Anndata supports several formats including h5ad, zarr, CSV, Loom, and 10X data formats for both reading and writing.

Can I work with large datasets using anndata?

Yes, anndata supports backed mode for large datasets, allowing you to read and manipulate data without loading the entire dataset into memory.

Is there a limit to the types of metadata I can include?

No, you can include various types of metadata in the obs and var DataFrames to suit your analysis needs.

Do I need any specific dependencies to use anndata?

While you can use anndata with its core functionality, optional dependencies can enhance its capabilities for testing and documentation purposes.

Install anndata

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill