Skip to content
Back to skills

Scanpy Cell Type Annotation Starter

ASecurity

Use this skill to score marker-gene programs with Scanpy and assign simple cell-type labels on a deterministic toy single-cell matrix.

  • 38 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 8, 2026
ai-agentspythonbash

Security analysis

A100/100

Pro scans all 10 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add ma-compbio-lab/SkillFoundry --skill scanpy-cell-type-annotation-starter --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Scanpy Cell Type Annotation Starter?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Scanpy Cell Type Annotation Starter
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ma-compbio-lab-scanpy-cell-type-annotation-starter/badge)](https://www.skillsdirectory.com/skills/ma-compbio-lab-scanpy-cell-type-annotation-starter)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# Scanpy Cell-Type Annotation Starter

Use this skill to score marker-gene programs with Scanpy and assign simple cell-type labels on a deterministic toy single-cell matrix.

## What it does

- Loads a small count matrix, marker sets, and optional truth labels.
- Normalizes counts, log-transforms them, and applies `scanpy.tl.score_genes`.
- Assigns the top-scoring label per cell and reports per-cell scores plus optional accuracy.

## When to use it

- You need a verified starter for marker-based cell-type annotation.
- You want a compact example of `scanpy.tl.score_genes` before moving to larger reference-mapping workflows.
- You need deterministic JSON output for tests or downstream demos.

## Example

```bash
slurm/envs/scanpy/bin/python skills/transcriptomics/scanpy-cell-type-annotation-starter/scripts/run_scanpy_cell_type_annotation.py \
  --counts skills/transcriptomics/scanpy-cell-type-annotation-starter/examples/toy_counts.tsv \
  --markers skills/transcriptomics/scanpy-cell-type-annotation-starter/examples/toy_markers.json \
  --truth skills/transcriptomics/scanpy-cell-type-annotation-starter/examples/toy_truth.tsv \
  --summary-out scratch/scanpy-cell-annotation/summary.json
```

## Verification

- Skill-local tests: `python3 -m unittest discover -s skills/transcriptomics/scanpy-cell-type-annotation-starter/tests -p 'test_*.py'`
- Expected summary: `accuracy == 1.0` and the predicted label counts split `3` vs `3`

Files in this skill

  • SKILL.md1.4 KB
  • assets/README.md125 B
  • examples/README.md241 B
  • examples/toy_counts.tsv147 B
  • examples/toy_markers.json73 B
  • examples/toy_truth.tsv47 B
  • metadata.yaml1.5 KB
  • refs.md381 B
  • scripts/run_scanpy_cell_type_annotation.py6.4 KB
  • tests/test_run_scanpy_cell_type_annotation.py2.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…