freedomintelligence/openclaw-medical-skills/bio-single-cell-data-io
Claude Code and agent skill by freedomintelligence/openclaw-medical-skills
- community
Checking that the SKILL.md file is still in the repository.
Read, write, and create single-cell data objects using Seurat (R) and Scanpy (Python). Use for loading 10X Genomics data, importing/exporting h5ad and RDS files, creating Seurat objects and AnnData objects, and converting between formats. Use when loading, saving, or converting single-cell data formats.
Install
npx vskill@latest install freedomintelligence/openclaw-medical-skills/bio-single-cell-data-ioSKILL.md
The same SKILL.md was published earlier as freedomintelligence/openclaw-medical-skills/bio-single-cell-data-io.
Version Compatibility
Reference examples tested with: Cell Ranger 8.0+, anndata 0.10+, numpy 1.26+, pandas 2.2+, scanpy 1.10+
Before using code patterns, verify installed versions match. If versions differ:
- Python:
pip show <package>thenhelp(module.function)to check signatures - R:
packageVersion('<pkg>')then?function_nameto verify parameters
If code throws ImportError, AttributeError, or TypeError, introspect the installed package and adapt the example to match the actual API rather than retrying.
Single-Cell Data I/O
Read, write, and create single-cell data objects for analysis.
Scanpy (Python)
Goal: Load, create, and save single-cell data objects using Scanpy and AnnData.
Approach: Read 10X Genomics output, CSV, or Loom formats into AnnData objects, manipulate metadata and layers, and write to h5ad format.
"Load my 10X data" → Read Cell Ranger output directory or h5 file into an AnnData object with expression matrix, cell barcodes, and gene annotations.
Required Imports
Reading 10X Genomics Data
AnnData Object Structure
Creating AnnData from Matrix
Reading/Writing h5ad Files
Reading Other Formats
Adding Metadata
Subsetting AnnData
Storing Raw Counts
Seurat (R)
Goal: Load, create, and save single-cell data objects using Seurat.
Approach: Read 10X Genomics output into Seurat objects, manipulate metadata, merge samples, and serialize with RDS or h5Seurat formats.
Required Libraries
Reading 10X Genomics Data
Reading 10X h5 File
Seurat Object Structure (v5)
Creating from Matrix
Reading/Writing RDS Files
Adding Metadata
Subsetting Seurat Objects
Merging Objects
Format Conversion
Goal: Convert single-cell data objects between Seurat (R) and AnnData (Python) formats.
Approach: Use SeuratDisk as an intermediary to convert via h5Seurat/h5ad bridge files.
Seurat to AnnData
AnnData to Seurat
Common Data Formats
| Format | Extension | Description | Tool | |
|---|---|---|---|---|
| 10X MTX | folder | Cellranger output | Both | |
| 10X h5 | .h5 | Cellranger HDF5 | Both | |
| h5ad | .h5ad | AnnData native | Scanpy | |
| RDS | .rds | R serialized | Seurat | |
| Loom | .loom | HDF5-based | Both | |
| h5Seurat | .h5seurat | Seurat HDF5 | Seurat |
Related Skills
- preprocessing - QC filtering and normalization after loading
- clustering - Dimensionality reduction and clustering
- markers-annotation - Find marker genes and annotate cell types
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/bio-single-cell-data-io/SKILL.md
Popularity
- Repository stars
- 2,777
- Repository forks
- 386
- 7-day trend score
- 40
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/freedomintelligence/openclaw-medical-skills/bio-single-cell-data-io)