Anndata
ListedThis skill facilitates efficient data handling for AnnData objects, a crucial format in single-cell analysis, streamlining workflows and improving performance.
Install on your platform
Showing Claude Code. One command installs this skill into any of the agents below.
- 1
Run this in your project
terminal$ npx skills add davila7/claude-code-templates --skill anndata -a claude-code Uses the open-source
skillsCLI and needs Node.js. Add-gto install it for your user instead of this project.
What we know about this skill
Publisher
davila7
Taken from the source listing. We haven't verified who controls this account.
Install target
Live repository
Not pinned. Installing fetches whatever the repository holds at the time you run the command.
Automated safety checks
We could not read this skill's source, so none of the checks below were run.
About this skill
The anndata skill enables AI agents to load, inspect, and manipulate AnnData objects, a standard format for storing single-cell genomics data containing both observations (cells) and variables (genes). It allows agents to perform subsetting, filtering, and basic statistical operations directly within the Python environment.
When to use it
- Loading
.h5ador.h5files created by tools like Scanpy or Seurat for immediate analysis. - Inspecting metadata structures such as
obs,var, andunsdictionaries before processing biological data. - Subsetting datasets to isolate specific cell populations or gene clusters based on defined criteria.
- Converting raw AnnData objects into Pandas DataFrames for visualization or custom statistical modeling.
Key capabilities
- File Loading: Reads standard AnnData file formats (
.h5ad,.h5) efficiently. - Structure Inspection: Accesses and displays
obs(observations),var(variables), anduns(unstructured data) attributes. - Data Manipulation: Supports subsetting rows and columns to filter cells or genes dynamically.
- Format Conversion: Transforms AnnData objects into Pandas DataFrames for broader compatibility.
Example prompts
- "Load the file 'my_data.h5ad' and display the first 10 rows of the observation metadata."
- "Filter this AnnData object to keep only cells where the 'cell_type' is 'T_cell' and show the resulting shape."
- "Convert the current AnnData object into a Pandas DataFrame containing only the gene expression matrix."
Tips & gotchas
Ensure your AI agent has access to the anndata Python package installed in its environment, as file paths must be absolute or relative to the working directory. Large single-cell datasets may require significant memory; verify hardware constraints before loading massive .h5ad files.