Skip to content
Back to skills

Lifelines Kaplan Meier Starter

ASecurity

Use this skill to run a deterministic Kaplan-Meier survival analysis over a toy cohort and summarize per-group survival curves.

  • 38 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 8, 2026
ai-agentspythonbash

Works with

  • cli

Security analysis

A100/100

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

Scanned September 8, 2026

npx -y skills add ma-compbio-lab/SkillFoundry --skill lifelines-kaplan-meier-starter --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Lifelines Kaplan Meier Starter?

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

Security grade badge for Lifelines Kaplan Meier Starter
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ma-compbio-lab-lifelines-kaplan-meier-starter/badge)](https://www.skillsdirectory.com/skills/ma-compbio-lab-lifelines-kaplan-meier-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
# Lifelines Kaplan Meier Starter

Use this skill to run a deterministic Kaplan-Meier survival analysis over a toy cohort and summarize per-group survival curves.

## What it does

- Loads a tiny cohort table with durations, events, and group labels.
- Fits one Kaplan-Meier curve per group with `lifelines`.
- Returns compact JSON with median survival times and survival probabilities at fixed time points.
- Optionally renders a PNG survival plot.

## When to use it

- You need a local starter for survival-analysis workflows.
- You want a verified template for grouped time-to-event data in Python.

## Example

```bash
slurm/envs/statistics/bin/python skills/clinical-biomedical-data-science/lifelines-kaplan-meier-starter/scripts/run_lifelines_kaplan_meier.py \
  --input skills/clinical-biomedical-data-science/lifelines-kaplan-meier-starter/examples/toy_survival_cohort.tsv \
  --summary-out scratch/lifelines/kaplan_meier_summary.json \
  --png-out scratch/lifelines/kaplan_meier_plot.png
```

## Verification

- Skill-local tests: `python3 -m unittest discover -s skills/clinical-biomedical-data-science/lifelines-kaplan-meier-starter/tests -p 'test_*.py'`
- Repository smoke: `python3 -m unittest tests.smoke.test_phase25_agent_and_clinical_skills -v`

Files in this skill

  • SKILL.md1.2 KB
  • assets/README.md101 B
  • examples/README.md105 B
  • examples/toy_survival_cohort.tsv97 B
  • metadata.yaml1.3 KB
  • refs.md85 B
  • scripts/run_lifelines_kaplan_meier.py3.5 KB
  • tests/test_run_lifelines_kaplan_meier.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…