技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
annotation-workflows【数据与研究】Run CellTypist prediction and annotation workflows from Python or CLI for tables, Matrix Market, h5ad, and AnnData.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when a task is about assigning CellTypist labels to query cells, validating annotation inputs, exporting prediction tables, or choosing between Python and CLI prediction workflows.
celltypist.annotate, Classifier, AnnotationResult, best-match vs probability-match modes, majority voting, and result shapes..h5ad, or in-memory AnnData.celltypist --indata ... commands, output flags, or batchable shell patterns..mtx sidecar files, transposed matrices, normalization errors, model-feature mismatches, output-folder failures, majority-voting skips, GPU fallback, and cache/network surprises.Prefer an explicit local model path or loaded Model object when the user needs offline behavior. Leaving model=None or using built-in model names can consult CellTypist's model cache and may require 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_")
adata = predictions.to_adata(insert_labels=True, insert_conf=True, insert_prob=True)
For CLI workflows, create the output directory first and use CLI mode names with underscores:
mkdir -p results
celltypist --indata query_counts.csv --model local_model.pkl --outdir results --prefix query_ --quiet