anndatar-seurat-scanpy-conversion

Convert AnnData and Seurat objects between h5ad and R formats.

1|Updated Nov 20, 2025
One-click install
npx skills add https://github.com/tony-zhelonkin/SciAgent-toolkit --skill anndatar-seurat-scanpy-conversion
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: anndatar-seurat-scanpy-conversion
Source: https://github.com/tony-zhelonkin/SciAgent-toolkit/tree/main/skills/anndatar-seurat-scanpy-conversion
Command: npx skills add https://github.com/tony-zhelonkin/SciAgent-toolkit --skill anndatar-seurat-scanpy-conversion

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Convert between AnnData objects in Python and Seurat objects in R using the modern anndataR API, enabling interoperability for cross-language single-cell workflows.

Core Features & Use Cases

  • Direct Read/Write: Read h5ad into Seurat directly and write Seurat objects back to h5ad.
  • Two-Step Customization: Use a two-step conversion path for customized mappings between assays, embeddings, and metadata.
  • Cross-Platform Interoperability: Facilitate data exchange between Python-based scRNA-seq pipelines and R-based Seurat analyses for multi-step analyses.

Quick Start

Install and load the anndataR package, then perform a basic AnnData ↔ Seurat conversion to bootstrap your workflow.

Frequently Asked Questions about anndatar-seurat-scanpy-conversion

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

FAQPage Schema
How do I convert Seurat objects to h5ad files for Python single-cell analysis?▼

Use the write_h5ad conversion function to export Seurat objects directly to h5ad files, enabling seamless interoperability for Python-based scRNA-seq pipelines. This allows R-based Seurat analyses to feed into Python workflows.

Can I read h5ad files into R as Seurat objects?▼

Yes, you can read h5ad files into R as Seurat objects using the read_h5ad conversion function. This enables direct data exchange from Python single-cell workflows into R-based Seurat analyses for downstream processing.

What is the best way to map multiple assays and embeddings between AnnData and Seurat?▼

The best way to map multiple assays and embeddings is using a two-step conversion path for customized mappings. This approach handles common interop scenarios by allowing customized mapping options between assays, embeddings, and metadata.

Does anndataR support cross-language single-cell workflows between R and Python?▼

Yes, anndataR supports cross-language single-cell workflows by bridging Seurat and AnnData objects. It facilitates data exchange between Python-based scRNA-seq pipelines and R-based Seurat analyses for multi-step analyses.

Why does my AnnData to Seurat conversion lose specific metadata or embeddings?▼

Default AnnData to Seurat conversions may not map all metadata or embeddings automatically. Using the two-step customization path allows you to explicitly define mapping options for assays, embeddings, and metadata to prevent data loss.