Mercurial > repos > fubar > lifelines_km_cph_tool
diff lifelines_tool/README.md @ 2:dd5e65893cb8 draft default tip
add survival and collapsed life table outputs suggested by Wolfgang
author | fubar |
---|---|
date | Thu, 10 Aug 2023 22:52:45 +0000 |
parents | 232b874046a7 |
children |
line wrap: on
line diff
--- a/lifelines_tool/README.md Thu Aug 10 07:15:22 2023 +0000 +++ b/lifelines_tool/README.md Thu Aug 10 22:52:45 2023 +0000 @@ -1,28 +1,40 @@ # lifelines_tool - lifelines statistical package wrapped as a Galaxy tool. -## Galaxy tool to run failure time models using lifelines +A Galaxy tool for right censored failure time data. + +Provides Kaplan-Meier plots with confidence intervals, and optional Cox proportional hazards models -## Install to your Galaxy server from the toolshed - search for lifelines_km_cph_tool owned by fubar2 +Uses the [lifelines](https://lifelines.readthedocs.io/en/latest/index.html) package. + +### Install to your Galaxy server from the toolshed - search for lifelines_km_cph_tool owned by fubar2 -### More at https://lazarus.name/demo/ +More at https://lazarus.name/demo/ + +#### Using the Rossi sample recidivism data from lifelines: -#### Using the Rossi sample input data from lifelines, tool outputs include: +Runs Kaplan-Meier and generates a plot. Optional grouping variable. + +Plots show confidence intervals ![KM plot sample](lifelines_rossi_km.png) -and -![KM plot sample](lifelines_rossi_schoenfeld.png) -and + +If 2 groups, runs a log-rank test for difference. + ![KM plot sample](lifelines_report.png) - -Runs Kaplan-Meier and generates a plot. Optional grouping variable. -If 2 groups, runs a log-rank test for difference. -Plots show confidence intervals +If a comma separated list (for example: prio, age, race, mar, fin) of covariate column names is provided, +a Cox proportional hazards model is run, the assumption of proportionality is tested, and +recommendations made. +![KM plot sample](lifelines_rossi_schoenfeld.png) -If a list of covariate column names is provided, these are used in a -Cox Proportional Hazards model with tests for proportionality. +Also included are partial plots for each covariate like these from the Rossi recidivism lifelines sample data +used in the tool test. -Should work with any tabular data with the required columns - time and status for observations. +![C-PH partial plot samples](agepartialrossi.png) + +![C-PH partial plot samples](parolepartialrossi.png) + +Uses pandas read_csv with tabular delimiters so should work with any tabular data with the required columns - time and status for observations. Issues to https://github.com/fubar2/lifelines_tool please. Autogenerated so pull requests are possibly meaningless but regeneration of a new version should work.