技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
io-data-access【数据与研究】Use when working with Scanpy input/output, AnnData persistence, 10x HDF5/MTX ingestion, Visium spatial reads, built-in datasets, annotation queries, sc.get extraction helpers, backed reads, layers, and raw data access.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when a task is about getting data into or out of Scanpy, preserving AnnData slots, loading 10x Genomics or Visium outputs, selecting bundled datasets, running annotation/enrichment queries, or extracting values with sc.get.
references/io-formats.md for sc.read, sc.read_h5ad, sc.read_10x_h5, sc.read_10x_mtx, sc.read_visium, sc.write, adata.write_h5ad, backed mode, layers, raw, and AnnData storage conventions.references/get-datasets-queries.md for sc.get.obs_df, sc.get.var_df, sc.get.rank_genes_groups_df, sc.get.aggregate, sc.datasets, and sc.queries workflows.references/troubleshooting.md for missing 10x files, Visium image assets, backed-mode mutation limits, sparse/dense surprises, ambiguous gene keys, dataset downloads, and query dependency/network failures.scripts/scanpy_io_roundtrip.py to sanity-check an installed Scanpy runtime with a tiny .h5ad roundtrip, layer preservation, backed read inspection, and optional sc.get.obs_df extraction.sc.read_h5ad(path, backed=None) for normal .h5ad loading; use backed="r" for read-only large-file inspection and backed="r+" only for deliberate backed mutation.sc.read_10x_h5(path, gex_only=True) for Cell Ranger HDF5 feature-barcode matrices; set gex_only=False when antibody, CRISPR, or custom feature rows must be preserved.sc.read_10x_mtx(dir, var_names="gene_symbols", make_unique=True, compressed=True, sparse_format="csr") for Cell Ranger v3+ matrix directories; adjust prefix, compressed=False, or var_names="gene_ids" for nonstandard layouts or uniqueness needs.sc.read_visium(dir, load_images=True) only when Space Ranger spatial assets are available; use load_images=False for counts-only loading. The API is deprecated in current Scanpy releases, so route new spatial workflows to Squidpy when that integration is in scope.sc.write(path, adata) or adata.write_h5ad(path) for persistence; verify .X, .layers, .raw, .obs, .var, .obsm, and .uns fields that downstream steps rely on after roundtrips.../preprocessing-qc/SKILL.md when present.../graph-embedding-analysis/SKILL.md when present.../plotting-reporting/SKILL.md when present.../external-integrations/SKILL.md when present.