Skip to content
Back to skills

Scanpy Ranked Genes Starter

ASecurity

Use this skill to run a deterministic toy differential-expression pass with Scanpy and extract top marker genes per group from a small count matrix.

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

Security analysis

A100/100

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

Scanned September 8, 2026

npx -y skills add ma-compbio-lab/SkillFoundry --skill scanpy-ranked-genes-starter --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Scanpy Ranked Genes Starter?

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

Security grade badge for Scanpy Ranked Genes Starter
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ma-compbio-lab-scanpy-ranked-genes-starter/badge)](https://www.skillsdirectory.com/skills/ma-compbio-lab-scanpy-ranked-genes-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 Ranked Genes Starter

Use this skill to run a deterministic toy differential-expression pass with Scanpy and extract top marker genes per group from a small count matrix.

## What it does

- Loads a toy count matrix and per-cell group labels.
- Normalizes counts, log-transforms the matrix, and runs `scanpy.tl.rank_genes_groups`.
- Returns compact JSON with top ranked genes for each group.

## When to use it

- You need a minimal, local, verified Scanpy starter beyond QC.
- You want a template for marker ranking or toy single-cell differential-expression checks.

## Inputs

- `--input`: tab-separated count matrix
- `--groups`: tab-separated `cell/group` labels
- `--method`: Scanpy ranking method, default `t-test`
- `--top-n`: number of genes per group, default `3`
- `--out`: optional JSON output path

## Example

```bash
slurm/envs/scanpy/bin/python skills/transcriptomics/scanpy-ranked-genes-starter/scripts/run_scanpy_ranked_genes.py \
  --input skills/transcriptomics/scanpy-ranked-genes-starter/examples/toy_counts.tsv \
  --groups skills/transcriptomics/scanpy-ranked-genes-starter/examples/toy_groups.tsv \
  --top-n 2 \
  --out scratch/scanpy-ranked-genes/summary.json
```

## Verification

- Skill-local tests: `python3 -m unittest discover -s skills/transcriptomics/scanpy-ranked-genes-starter/tests -p 'test_*.py'`
- Repository smoke: `python3 -m unittest tests.smoke.test_local_skills -v`

Files in this skill

  • SKILL.md1.4 KB
  • assets/README.md115 B
  • assets/toy_ranked_genes_summary.json733 B
  • examples/README.md375 B
  • examples/toy_counts.tsv178 B
  • examples/toy_groups.tsv107 B
  • metadata.yaml1.2 KB
  • refs.md195 B
  • scripts/run_scanpy_ranked_genes.py4.5 KB
  • tests/README.md131 B
  • tests/test_run_scanpy_ranked_genes.py2.4 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.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.