plot-survival

Generate Kaplan-Meier survival curves with group comparisons and statistical tests.

64|12|Updated Apr 7, 2026
One-click install
npx skills add https://github.com/MDhewei/bioinfor-claw --skill plot-survival
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: plot-survival
Source: https://github.com/MDhewei/bioinfor-claw/tree/main/bioinformatics-plot-generator/plot-survival
Command: npx skills add https://github.com/MDhewei/bioinfor-claw --skill plot-survival

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pandas, numpy, matplotlib, scipy, and includes scripts (resource) components.

What problem does it solve?

Generate publication-quality Kaplan-Meier survival curves from time-to-event data with multi-group support, confidence intervals, at-risk tables, and median survival annotations.

Core Features & Use Cases

  • Kaplan-Meier estimation per group with confidence intervals and median survival annotations.
  • Log-rank and Wilcoxon tests for group comparisons, with optional p-values.
  • Flexible stratification by categorical or continuous variables, support for single or multiple groups, and publication-ready aesthetics.
  • Outputs include PNG and SVG plots plus a survival_stats.tsv summary.

Quick Start

Provide a CSV/TSV with time-to-event data, event indicator, and optional group, then run the plotting script to generate a KM plot.

Frequently Asked Questions about plot-survival

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate publication-ready Kaplan-Meier survival curves from clinical trial data?

Compare survival curves using built-in log-rank and Wilcoxon statistical tests with optional p-value annotations. The Skill computes these group comparisons automatically and includes the results in both the plot and a summary survival_stats.tsv file.

Can I stratify Kaplan-Meier curves by continuous variables in my clinical research dataset?

You need a CSV or TSV file containing time-to-event data, an event indicator, and an optional group column, plus Python dependencies including pandas, numpy, matplotlib, and scipy. The plotting script processes this input to generate the survival curves.

What is the best way to annotate median survival time on a biostatistics survival plot?

The Skill outputs publication-quality plots in both PNG and SVG formats, plus a survival_stats.tsv summary file containing the statistical test results and survival estimates. These outputs are suitable for direct submission to clinical and biomedical journals.

Does this survival analysis tool support at-risk tables below the Kaplan-Meier plot?

Yes, the tool supports adding at-risk tables below the Kaplan-Meier plot to show the number of participants at risk at various time points. This feature is part of the publication-ready aesthetics designed for clinical research visualizations.