Use this skill to run a deterministic Kaplan-Meier survival analysis over a toy cohort and summarize per-group survival curves.
Scanned 9/8/2026
Install to Claude Code
npx -y skills add ma-compbio-lab/SkillFoundry --skill lifelines-kaplan-meier-starter --agent claude-codeInstalls 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 automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/ma-compbio-lab-lifelines-kaplan-meier-starter)More formats (shields.io, HTML) on the badges page.
# 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`
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!