Mercurial > repos > fubar > lifelines_km_cph_tool
annotate 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 |
rev | line source |
---|---|
0 | 1 # lifelines_tool - lifelines statistical package wrapped as a Galaxy tool. |
2 | |
2
dd5e65893cb8
add survival and collapsed life table outputs suggested by Wolfgang
fubar
parents:
1
diff
changeset
|
3 A Galaxy tool for right censored failure time data. |
dd5e65893cb8
add survival and collapsed life table outputs suggested by Wolfgang
fubar
parents:
1
diff
changeset
|
4 |
dd5e65893cb8
add survival and collapsed life table outputs suggested by Wolfgang
fubar
parents:
1
diff
changeset
|
5 Provides Kaplan-Meier plots with confidence intervals, and optional Cox proportional hazards models |
0 | 6 |
2
dd5e65893cb8
add survival and collapsed life table outputs suggested by Wolfgang
fubar
parents:
1
diff
changeset
|
7 Uses the [lifelines](https://lifelines.readthedocs.io/en/latest/index.html) package. |
dd5e65893cb8
add survival and collapsed life table outputs suggested by Wolfgang
fubar
parents:
1
diff
changeset
|
8 |
dd5e65893cb8
add survival and collapsed life table outputs suggested by Wolfgang
fubar
parents:
1
diff
changeset
|
9 ### Install to your Galaxy server from the toolshed - search for lifelines_km_cph_tool owned by fubar2 |
0 | 10 |
2
dd5e65893cb8
add survival and collapsed life table outputs suggested by Wolfgang
fubar
parents:
1
diff
changeset
|
11 More at https://lazarus.name/demo/ |
dd5e65893cb8
add survival and collapsed life table outputs suggested by Wolfgang
fubar
parents:
1
diff
changeset
|
12 |
dd5e65893cb8
add survival and collapsed life table outputs suggested by Wolfgang
fubar
parents:
1
diff
changeset
|
13 #### Using the Rossi sample recidivism data from lifelines: |
0 | 14 |
2
dd5e65893cb8
add survival and collapsed life table outputs suggested by Wolfgang
fubar
parents:
1
diff
changeset
|
15 Runs Kaplan-Meier and generates a plot. Optional grouping variable. |
dd5e65893cb8
add survival and collapsed life table outputs suggested by Wolfgang
fubar
parents:
1
diff
changeset
|
16 |
dd5e65893cb8
add survival and collapsed life table outputs suggested by Wolfgang
fubar
parents:
1
diff
changeset
|
17 Plots show confidence intervals |
0 | 18 |
19 ![KM plot sample](lifelines_rossi_km.png) | |
2
dd5e65893cb8
add survival and collapsed life table outputs suggested by Wolfgang
fubar
parents:
1
diff
changeset
|
20 |
dd5e65893cb8
add survival and collapsed life table outputs suggested by Wolfgang
fubar
parents:
1
diff
changeset
|
21 If 2 groups, runs a log-rank test for difference. |
dd5e65893cb8
add survival and collapsed life table outputs suggested by Wolfgang
fubar
parents:
1
diff
changeset
|
22 |
0 | 23 ![KM plot sample](lifelines_report.png) |
24 | |
2
dd5e65893cb8
add survival and collapsed life table outputs suggested by Wolfgang
fubar
parents:
1
diff
changeset
|
25 If a comma separated list (for example: prio, age, race, mar, fin) of covariate column names is provided, |
dd5e65893cb8
add survival and collapsed life table outputs suggested by Wolfgang
fubar
parents:
1
diff
changeset
|
26 a Cox proportional hazards model is run, the assumption of proportionality is tested, and |
dd5e65893cb8
add survival and collapsed life table outputs suggested by Wolfgang
fubar
parents:
1
diff
changeset
|
27 recommendations made. |
dd5e65893cb8
add survival and collapsed life table outputs suggested by Wolfgang
fubar
parents:
1
diff
changeset
|
28 ![KM plot sample](lifelines_rossi_schoenfeld.png) |
0 | 29 |
2
dd5e65893cb8
add survival and collapsed life table outputs suggested by Wolfgang
fubar
parents:
1
diff
changeset
|
30 Also included are partial plots for each covariate like these from the Rossi recidivism lifelines sample data |
dd5e65893cb8
add survival and collapsed life table outputs suggested by Wolfgang
fubar
parents:
1
diff
changeset
|
31 used in the tool test. |
0 | 32 |
2
dd5e65893cb8
add survival and collapsed life table outputs suggested by Wolfgang
fubar
parents:
1
diff
changeset
|
33 ![C-PH partial plot samples](agepartialrossi.png) |
dd5e65893cb8
add survival and collapsed life table outputs suggested by Wolfgang
fubar
parents:
1
diff
changeset
|
34 |
dd5e65893cb8
add survival and collapsed life table outputs suggested by Wolfgang
fubar
parents:
1
diff
changeset
|
35 ![C-PH partial plot samples](parolepartialrossi.png) |
dd5e65893cb8
add survival and collapsed life table outputs suggested by Wolfgang
fubar
parents:
1
diff
changeset
|
36 |
dd5e65893cb8
add survival and collapsed life table outputs suggested by Wolfgang
fubar
parents:
1
diff
changeset
|
37 Uses pandas read_csv with tabular delimiters so should work with any tabular data with the required columns - time and status for observations. |
0 | 38 |
39 Issues to https://github.com/fubar2/lifelines_tool please. | |
1 | 40 Autogenerated so pull requests are possibly meaningless but regeneration of a new version should work. |
0 | 41 |
42 ## Tool made with the Galaxy ToolFactory: https://github.com/fubar2/galaxy_tf_overlay | |
43 The current release includes this and a generic tabular version, and a java .jar wrapper in a history where the generating | |
44 ToolFactory form can be recreated using the redo button. Editing the tool id will make a new tool, so all other edits to parameters can be | |
45 made and the new tool generated without destroying the original sample. | |
46 | |
47 |