anndata

Manage and analyze annotated data matrices for single-cell genomics using AnnData.

557|98|Updated Nov 7, 2025
One-click install
npx skills add https://github.com/jimmc414/Kosmos --skill anndata-jimmc414
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: anndata
Source: https://github.com/jimmc414/Kosmos/tree/main/kosmos-claude-scientific-skills/scientific-skills/anndata
Command: npx skills add https://github.com/jimmc414/Kosmos --skill anndata-jimmc414

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires anndata, scanpy, numpy, pandas, scipy, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill simplifies the handling of large, annotated data matrices, particularly common in single-cell genomics, by providing efficient tools for data manipulation, storage, and analysis.

Core Features & Use Cases

  • Data Structure: Manages complex datasets with integrated metadata (observations, variables).
  • Input/Output: Reads and writes data in various formats (h5ad, zarr, CSV, etc.), supporting large files via backed mode.
  • Manipulation: Enables subsetting, concatenation, filtering, and transformation of data.
  • Use Case: Analyze single-cell RNA sequencing data by loading an h5ad file, filtering cells based on quality metrics, normalizing gene expression, and performing dimensionality reduction like PCA and UMAP.

Quick Start

Use the anndata skill to read the file 'my_data.h5ad' and print its shape.

Frequently Asked Questions about anndata

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What is an annotated data matrix used for in single-cell genomics?

An annotated data matrix manages large-scale biological datasets by integrating observations, variables, and metadata. It is primarily used in single-cell genomics to store and manipulate complex sequencing data efficiently.

How do I read and write h5ad files for single-cell RNA sequencing data?

You can read and write h5ad files for single-cell RNA sequencing data using the anndata object structure. It supports efficient I/O operations across various formats including h5ad, zarr, and CSV.

Does this Skill require scanpy to analyze single-cell genomics data?

Yes, this Skill requires both anndata and scanpy for core functionalities. These dependencies are necessary to facilitate the management and analysis of single-cell genomics datasets.

Can I use backed mode to load large h5ad files that exceed memory?

Yes, you can use backed mode to support large files during data loading. This functionality allows you to handle large annotated data matrices that would otherwise exceed available memory limits.

What's the best way to filter and normalize gene expression matrices?

You can filter cells based on quality metrics and normalize gene expression by leveraging the anndata object structure. This enables subsetting, concatenation, and transformation of single-cell data.

Why use anndata instead of standard pandas dataframes for single-cell data?

Anndata handles complex datasets with integrated metadata for both observations and variables, unlike standard pandas dataframes. It integrates directly with the scverse ecosystem for large-scale biological datasets.