Skip to content
Back to skills

Scanpy Dpt Trajectory Starter

ASecurity

Use this skill to compute a deterministic toy diffusion-pseudotime trajectory with Scanpy `tl.dpt`.

  • 38 stars
  • 0 votes
  • 0 copies
  • 1 view
  • 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-dpt-trajectory-starter --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Scanpy Dpt Trajectory Starter?

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

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

Use this skill to compute a deterministic toy diffusion-pseudotime trajectory with Scanpy `tl.dpt`.

## What it does

- Loads a tiny genes-by-cells matrix and a root cell.
- Builds a Scanpy neighbors graph, computes diffusion components, and runs `tl.dpt`.
- Exports per-cell pseudotime values and the inferred cell order.

## When to use it

- You need a verified starter for the `trajectory inference` leaf in transcriptomics.
- You want a bounded example of DPT before moving to larger pseudotime workflows.
- You need deterministic JSON output that can be checked in repository tests.

## Example

```bash
slurm/envs/scanpy/bin/python skills/transcriptomics/scanpy-dpt-trajectory-starter/scripts/run_scanpy_dpt_trajectory.py \
  --counts skills/transcriptomics/scanpy-dpt-trajectory-starter/examples/toy_counts.tsv \
  --root-cell c0 \
  --expected-order skills/transcriptomics/scanpy-dpt-trajectory-starter/examples/expected_order.txt \
  --summary-out scratch/scanpy-dpt/summary.json
```

## Verification

- Skill-local tests: `python3 -m unittest discover -s skills/transcriptomics/scanpy-dpt-trajectory-starter/tests -p 'test_*.py'`
- Expected summary: the inferred order equals `c0..c5` and pseudotime increases monotonically from `0.0` to `1.0`

Files in this skill

  • SKILL.md1.3 KB
  • assets/README.md108 B
  • examples/README.md189 B
  • examples/expected_order.txt18 B
  • examples/toy_counts.tsv121 B
  • metadata.yaml1.4 KB
  • refs.md309 B
  • scripts/run_scanpy_dpt_trajectory.py4.7 KB
  • tests/test_run_scanpy_dpt_trajectory.py2.3 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…