Skip to content
Back to skills

Scanpy Combat Batch Correction Starter

ASecurity

Use this skill to run a deterministic toy batch-correction pass with Scanpy's ComBat implementation and summarize how much the batch gap shrinks after correction.

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

Security analysis

A100/100

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

Scanned September 8, 2026

npx -y skills add ma-compbio-lab/SkillFoundry --skill scanpy-combat-batch-correction-starter --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Scanpy Combat Batch Correction Starter?

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

Security grade badge for Scanpy Combat Batch Correction Starter
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ma-compbio-lab-scanpy-combat-batch-correction-starter/badge)](https://www.skillsdirectory.com/skills/ma-compbio-lab-scanpy-combat-batch-correction-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 ComBat Batch Correction Starter

Use this skill to run a deterministic toy batch-correction pass with Scanpy's ComBat implementation and summarize how much the batch gap shrinks after correction.

## What it does

- Loads a toy count matrix and per-cell metadata with batch and cell-type labels.
- Builds an AnnData object, normalizes counts, and log-transforms the matrix.
- Runs `scanpy.pp.combat` on the `batch` column.
- Reports pre/post batch mean differences plus retained cell-type separation.

## When to use it

- You need a lightweight verified starter for single-cell batch correction.
- You want a local integration example before moving on to heavier `scvi-tools` workflows.

## Example

```bash
slurm/envs/scanpy/bin/python skills/transcriptomics/scanpy-combat-batch-correction-starter/scripts/run_scanpy_combat_batch_correction.py \
  --counts skills/transcriptomics/scanpy-combat-batch-correction-starter/examples/toy_counts.tsv \
  --metadata skills/transcriptomics/scanpy-combat-batch-correction-starter/examples/toy_metadata.tsv \
  --summary-out scratch/scanpy-combat/summary.json
```

## Verification

- Skill-local tests: `python3 -m unittest discover -s skills/transcriptomics/scanpy-combat-batch-correction-starter/tests -p 'test_*.py'`
- Repository smoke: `python3 -m unittest tests.smoke.test_phase26_frontier_completion_skills -v`

Files in this skill

  • SKILL.md1.3 KB
  • assets/README.md90 B
  • examples/README.md176 B
  • examples/toy_counts.tsv181 B
  • examples/toy_metadata.tsv133 B
  • metadata.yaml1.5 KB
  • refs.md253 B
  • scripts/run_scanpy_combat_batch_correction.py5.7 KB
  • tests/test_run_scanpy_combat_batch_correction.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…