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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
dd49a7040643 Initial commit
fubar
parents:
diff changeset
1 # lifelines_tool - lifelines statistical package wrapped as a Galaxy tool.
dd49a7040643 Initial commit
fubar
parents:
diff changeset
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
dd49a7040643 Initial commit
fubar
parents:
diff changeset
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
dd49a7040643 Initial commit
fubar
parents:
diff changeset
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
dd49a7040643 Initial commit
fubar
parents:
diff changeset
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
dd49a7040643 Initial commit
fubar
parents:
diff changeset
18
dd49a7040643 Initial commit
fubar
parents:
diff changeset
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
dd49a7040643 Initial commit
fubar
parents:
diff changeset
23 ![KM plot sample](lifelines_report.png)
dd49a7040643 Initial commit
fubar
parents:
diff changeset
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
dd49a7040643 Initial commit
fubar
parents:
diff changeset
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
dd49a7040643 Initial commit
fubar
parents:
diff changeset
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
dd49a7040643 Initial commit
fubar
parents:
diff changeset
38
dd49a7040643 Initial commit
fubar
parents:
diff changeset
39 Issues to https://github.com/fubar2/lifelines_tool please.
1
232b874046a7 Uploaded
fubar
parents: 0
diff changeset
40 Autogenerated so pull requests are possibly meaningless but regeneration of a new version should work.
0
dd49a7040643 Initial commit
fubar
parents:
diff changeset
41
dd49a7040643 Initial commit
fubar
parents:
diff changeset
42 ## Tool made with the Galaxy ToolFactory: https://github.com/fubar2/galaxy_tf_overlay
dd49a7040643 Initial commit
fubar
parents:
diff changeset
43 The current release includes this and a generic tabular version, and a java .jar wrapper in a history where the generating
dd49a7040643 Initial commit
fubar
parents:
diff changeset
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
dd49a7040643 Initial commit
fubar
parents:
diff changeset
45 made and the new tool generated without destroying the original sample.
dd49a7040643 Initial commit
fubar
parents:
diff changeset
46
dd49a7040643 Initial commit
fubar
parents:
diff changeset
47