본문으로 건너뛰기
cccskills
무료GitHub에 공개

anndata

Use AnnData to build, inspect, combine, store, lazily read, and extend annotated data matrices in memory and on disk.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(27)

  • SKILL.md5.8 KB
  • references/repo-provenance.md1.7 KB
  • references/repo-routing-metadata.json416 B
  • references/troubleshooting.md3.4 KB
  • scripts/smoke_anndata_core.py1.8 KB
  • sub-skills/accessors-extensions/references/accessor-recipes.md3.8 KB
  • sub-skills/accessors-extensions/references/api-reference.md5.9 KB
  • sub-skills/accessors-extensions/references/extension-namespaces.md3.2 KB
  • sub-skills/accessors-extensions/references/troubleshooting.md3.9 KB
  • sub-skills/accessors-extensions/scripts/demo_anndata_accessor.py3.3 KB
  • sub-skills/accessors-extensions/SKILL.md2.5 KB
  • sub-skills/combining-data/references/api-reference.md7.2 KB
  • sub-skills/combining-data/references/concat-workflows.md8.1 KB
  • sub-skills/combining-data/references/troubleshooting.md5.5 KB
  • sub-skills/combining-data/scripts/plan_anndata_concat.py12.8 KB
  • sub-skills/combining-data/SKILL.md3.5 KB
  • sub-skills/data-model/references/api-reference.md6.8 KB
  • sub-skills/data-model/references/object-model.md7.7 KB
  • sub-skills/data-model/references/troubleshooting.md9.9 KB
  • sub-skills/data-model/scripts/inspect_anndata_structure.py8.7 KB
  • sub-skills/data-model/SKILL.md3.4 KB
  • sub-skills/storage-io/references/api-reference.md9.7 KB
  • sub-skills/storage-io/references/file-format.md8.4 KB
  • sub-skills/storage-io/references/io-workflows.md10.4 KB
  • sub-skills/storage-io/references/troubleshooting.md10.8 KB
  • sub-skills/storage-io/scripts/check_anndata_io_roundtrip.py6.3 KB
  • sub-skills/storage-io/SKILL.md3.3 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

AnnData Repo Skill

Use this repo skill when a task involves anndata, AnnData, annotated data matrices, .h5ad, .zarr, backed mode, lazy reads, anndata.concat, AnnCollection, anndata.acc, or AnnData extension namespaces. AnnData is a Python package for annotated data matrices with aligned observations, variables, multidimensional annotations, pairwise arrays, layers, unstructured metadata, and native HDF5/Zarr storage.

First Checks

  • Install AnnData with pip install anndata or conda install -c conda-forge anndata when the project does not already provide it.
  • For lazy reads or remote Zarr workflows, install the package extra that provides xarray, dask, requests, and aiohttp: pip install "anndata[lazy]".
  • Prefer public imports such as import anndata as ad and from anndata import AnnData; avoid leading-underscore internals unless the task is explicitly repository maintenance.
  • Confirm importability before deeper work:
python - <<'PY'
import anndata as ad
from anndata import AnnData
print(ad.__name__, AnnData)
PY

Route Map

  • Use sub-skills/data-model/SKILL.md for constructing, inspecting, mutating, validating, slicing, copying, or repairing in-memory AnnData objects and aligned containers such as X, obs, var, layers, obsm, varm, obsp, varp, uns, and raw.
  • Use sub-skills/storage-io/SKILL.md for .h5ad, Zarr, backed mode, lazy reads, sparse on-disk datasets, element-level read_elem/write_elem, encoding metadata, compression, chunking, and I/O troubleshooting.
  • Use sub-skills/combining-data/SKILL.md for anndata.concat, mapping-vs-sequence keys, merge and join decisions, batch labels, duplicate names, pairwise graph retention, AnnCollection, and experimental.concat_on_disk.
  • Use sub-skills/accessors-extensions/SKILL.md for anndata.acc.A references, reusable validation or plotting helpers, JSON/string reference forms, register_anndata_namespace, and extension namespace debugging.

Common Workflows

  1. For a new object, start with data-model: confirm X.shape == (len(obs), len(var)), choose stable obs_names and var_names, add aligned arrays only when their leading axes match, then run the bundled structure inspector when shape problems are likely.
  2. For persistence, move to storage-io: choose .h5ad for single-file exchange or Zarr for directory/object-store workflows, validate round-trips with a tiny fixture, and use backed/lazy reads only when their access constraints fit the task.
  3. For multi-dataset integration, use combining-data: decide axis, join, merge, uns_merge, label, keys, index_unique, fill_value, and whether memory pressure requires AnnCollection or concat_on_disk.
  4. For reusable library code, use accessors-extensions: represent fields with A.obs[...], A.obsm[...][:, i], or A.layers[...], validate references before indexing, and keep extension namespaces small and explicitly typed.

Shared References And Scripts

  • Read references/troubleshooting.md for cross-cutting install/import, optional dependency, data validation, API misuse, storage backend, and workflow-routing issues before diving into sub-skill-specific troubleshooting.
  • Read references/repo-provenance.md when deciding whether this generated skill is stale against a newer AnnData checkout or release.
  • references/repo-routing-metadata.json is structured metadata used by DisCo's managed repo-skills-router import.
  • Run scripts/smoke_anndata_core.py to validate import, core object construction, concat behavior, and optional H5AD/Zarr round-trips with tiny temporary fixtures.

Decision Points

  • Use sparse X and sparse layers when data is mostly zero; dense arrays are simpler for tiny examples but can hide memory pressure.
  • Treat .raw as an intentional snapshot of original X, var, and varm; later .var mutations do not automatically update .raw.var.
  • Use .copy() before mutating subsets when parent preservation or warning-free behavior matters.
  • Use join="inner" for conservative concat across features and join="outer" only when downstream code can handle missing values or sparse zero fill.
  • For anndata.concat, use mapping keys or sequence keys, not both, when creating batch labels.
  • Use backed mode for limited H5AD inspection and reads; do not assume every in-memory mutation works without materializing.
  • Treat experimental APIs as useful but less stable; mention optional dependencies and deprecations such as AnnLoader moving toward annbatch.Loader when relevant.

Troubleshooting Priority

  1. Verify the import, installed version, and optional extras relevant to the task.
  2. Reproduce with a tiny AnnData object before scaling to large files or many batches.
  3. Check shapes and names on every aligned slot.
  4. Isolate storage problems with a fresh tiny H5AD or Zarr round-trip.
  5. For concat surprises, print shape, obs_names, var_names, label categories, .uns.keys(), and relevant .obsm/.varm/.obsp keys.
  6. For accessor or extension errors, validate references and namespace signatures before optional plotting, storage, or downstream package imports.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Routes 3D ResNets PyTorch video action-recognition workflows across training, inference, and data preparation.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

VectorSpaceLab/AREX-Skill3382026년 9월 3일 업데이트

3ddfa

무료

Guide 3DDFA Python inference, geometry rendering, training/evaluation, and optional C++ ONNX workflows for 3D dense face alignment.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

VectorSpaceLab/AREX-Skill3382026년 9월 3일 업데이트

3ddfa-v2

무료

Routes 3DDFA_V2 face-alignment setup, still-image demos, video tracking, and ONNX benchmarking workflows.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

VectorSpaceLab/AREX-Skill3382026년 9월 3일 업데이트

ab3dmot

무료

Operate AB3DMOT 3D multi-object tracking workflows for KITTI and nuScenes data, tracking, evaluation, and visualization.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

VectorSpaceLab/AREX-Skill3382026년 9월 3일 업데이트

Use Hugging Face Accelerate for PyTorch training-loop migration, distributed launch/configuration, DeepSpeed/FSDP/TPU backend setup, big-model inference/offload, checkpointing, tracking, and troubleshooting.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

VectorSpaceLab/AREX-Skill3382026년 9월 3일 업데이트

acme

무료

Route Acme reinforcement-learning framework tasks across core loops, replay/data, JAX agents, and TensorFlow/Sonnet agents.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

VectorSpaceLab/AREX-Skill3382026년 9월 3일 업데이트

VectorSpaceLab의 스킬 모두 보기

이 스킬의 문제 신고