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

celltypist

Use CellTypist for single-cell RNA-seq cell type annotation, model management, custom classifier training, CLI usage, and result visualization workflows.

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

연동 도구Excel
설치 방법 보기

포함된 파일(28)

  • SKILL.md5.3 KB
  • references/cli-and-containers.md3.0 KB
  • references/repo-provenance.md1.7 KB
  • references/repo-routing-metadata.json337 B
  • references/troubleshooting.md3.9 KB
  • scripts/celltypist_cli_smoke.py3.0 KB
  • sub-skills/annotation-workflows/references/api-reference.md6.1 KB
  • sub-skills/annotation-workflows/references/cli-reference.md4.2 KB
  • sub-skills/annotation-workflows/references/data-formats.md5.0 KB
  • sub-skills/annotation-workflows/references/troubleshooting.md6.7 KB
  • sub-skills/annotation-workflows/scripts/annotation_smoke.py13.0 KB
  • sub-skills/annotation-workflows/SKILL.md2.7 KB
  • sub-skills/model-management/references/conversion-and-subsetting.md6.3 KB
  • sub-skills/model-management/references/model-reference.md6.6 KB
  • sub-skills/model-management/references/troubleshooting.md8.0 KB
  • sub-skills/model-management/scripts/model_cache_check.py9.3 KB
  • sub-skills/model-management/scripts/tiny_model_factory.py6.4 KB
  • sub-skills/model-management/SKILL.md2.5 KB
  • sub-skills/training-and-custom-models/references/api-reference.md6.9 KB
  • sub-skills/training-and-custom-models/references/training-workflows.md7.0 KB
  • sub-skills/training-and-custom-models/references/troubleshooting.md5.6 KB
  • sub-skills/training-and-custom-models/scripts/training_data_check.py12.2 KB
  • sub-skills/training-and-custom-models/SKILL.md2.6 KB
  • sub-skills/visualization-and-results/references/plotting-and-dotplot.md6.0 KB
  • sub-skills/visualization-and-results/references/result-objects.md5.8 KB
  • sub-skills/visualization-and-results/references/troubleshooting.md6.0 KB
  • sub-skills/visualization-and-results/scripts/result_shape_check.py16.9 KB
  • sub-skills/visualization-and-results/SKILL.md2.9 KB

SKILL.md(원문)

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

CellTypist Repo Skill

Use this skill when a task involves CellTypist, automated scRNA-seq cell type annotation, CellTypist model downloads or local model pickles, celltypist.annotate, the celltypist CLI, custom CellTypist classifier training, or CellTypist result exports and plots.

Quick Start

Install CellTypist from PyPI or conda, then verify the import and CLI:

pip install celltypist
python -c "import celltypist; print(celltypist.__version__)"
celltypist --help

CellTypist uses scanpy, anndata, scikit-learn, pandas, numpy, openpyxl, click, requests, and leidenalg. GPU paths are optional: rapids-singlecell affects over-clustering during majority voting, and cuml affects GPU logistic regression training.

Route by Task

  • Use annotation-workflows for prediction with celltypist.annotate, count tables, Matrix Market input, .h5ad, in-memory AnnData, CLI annotation, best-match vs probability-match modes, majority voting, and table export.
  • Use model-management for built-in model download/cache behavior, offline model pickles, CELLTYPIST_FOLDER, Model.load, Model.write, marker extraction, model conversion, model subsetting, and tiny offline model fixtures.
  • Use training-and-custom-models for celltypist.train, training matrix/label/gene validation, logistic regression vs SGD vs mini-batch, feature selection, sparse-memory settings, GPU training caveats, and downsample_adata.
  • Use visualization-and-results for AnnotationResult tables, Excel export, AnnData insertion, confidence scores, UMAP plot files, and celltypist.dotplot comparisons against manual labels or clusters.

Common Workflows

Annotate Query Cells

Prefer an explicit local model path when the user needs offline behavior. Built-in model names and model=None can consult the CellTypist model cache and may need network access if the cache is empty.

import celltypist

predictions = celltypist.annotate(
    "query_counts.csv",
    model="local_model.pkl",
    mode="best match",
)
predictions.to_table(folder="results", prefix="query_")

For CLI usage, create the output directory first:

mkdir -p results
celltypist --indata query_counts.csv --model local_model.pkl --outdir results --prefix query_ --quiet

Work Offline With Local Models

Use the model-management helpers to avoid accidental downloads:

python sub-skills/model-management/scripts/model_cache_check.py --verify-model ./local_model.pkl
python sub-skills/model-management/scripts/tiny_model_factory.py --output tiny_model.pkl --write-query-csv tiny_query.csv

Then pass ./local_model.pkl or an absolute path to Model.load() or celltypist.annotate().

Train or Preflight Custom Models

Before expensive training, validate the matrix/label/gene shape and algorithm feasibility:

python sub-skills/training-and-custom-models/scripts/training_data_check.py \
  --matrix reference.csv --labels labels.txt --genes genes.txt

Use with_mean=False for sparse data that should not be densified, and use check_expression=False only when the user intentionally trains on a subset such as highly variable genes that cannot satisfy whole-transcriptome normalization checks.

Export and Plot Results

Use the visualization sub-skill when the user already has an AnnotationResult:

adata = predictions.to_adata(insert_labels=True, insert_conf=True, insert_prob=True)
predictions.to_table(folder="results", prefix="query_", xlsx=True)

For celltypist.dotplot(), remember that the default prediction column is majority_voting; use use_as_prediction="predicted_labels" when majority voting was not run.

Shared References and Checks

  • Read troubleshooting for install/import issues, model-cache/network surprises, optional GPU package behavior, data-format problems, and workflow routing.
  • Read CLI and containers for command patterns, Docker/Singularity notes, and safe smoke checks.
  • Read repo provenance before deciding whether this skill matches a current CellTypist checkout or needs refresh.
  • Run celltypist_cli_smoke.py to check that the installed celltypist command exposes expected options without running downloads or annotation.

Safety and Self-Containment

  • Do not rely on original repository notebooks, docs, or source files at runtime; this skill bundles distilled references and safe helper scripts.
  • Do not call model download APIs in offline or restricted environments unless the user explicitly wants network access.
  • Treat built-in model files and remote model indexes as runtime data dependencies, not as part of this skill.
  • Use local model paths with ./ or absolute paths for strict offline loading; bare filenames can trigger built-in inventory checks.

리뷰

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

댓글

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

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

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

0 / 1,000자

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

같은 저장소의 스킬

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

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

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

3ddfa

무료

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

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

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

3ddfa-v2

무료

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

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

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

ab3dmot

무료

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

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

VectorSpaceLab/AREX-Skill3392026년 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-Skill3392026년 9월 3일 업데이트

acme

무료

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

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

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

VectorSpaceLab의 스킬 모두 보기

이 스킬의 문제 신고