0
|
1 <tool id="survival" name="survival" version="1.0.0">
|
|
2 <description>core survival analysis</description>
|
|
3 <requirements>
|
|
4 <requirement type="package" version="2.40_1">r-survival</requirement>
|
|
5 </requirements>
|
|
6 <command detect_errors="aggressive">
|
17
|
7 Rscript '$__tool_directory__/survival.R' '$input' '$type' '$error' '$conf_type' '$conf_lower' '$fit' '$png'
|
0
|
8 </command>
|
|
9 <inputs>
|
3
|
10 <param format="csv" type="data" name="input" value="" label="survival data" help="
|
|
11 e.g. survival table
|
|
12 X obsT status X1 X2
|
|
13 17 1815 FALSE 2 HOXA1
|
|
14 18 145 TRUE 1 HOXA1
|
|
15 19 2506 FALSE 1 HOXA1
|
|
16 20 1382 TRUE 1 HOXA1 ''"/>
|
|
17
|
17
|
18 <conditional name="type">
|
|
19 <param name="type" type="select" label="Type of survival curve:">
|
3
|
20 <option value="kaplan-meier">kaplan-meier</option>
|
|
21 <option value="fleming-harrington">fleming-harrington</option>
|
16
|
22 <option value="fh2">fleming-harrington</option>
|
3
|
23 </param>
|
16
|
24 <when value="kaplan-meier">
|
18
|
25 <param name="type" format="text" type="text" value="kaplan-meier" label="kaplan-meier" />
|
16
|
26 </when>
|
|
27 <when value="fleming-harrington">
|
18
|
28 <param name="type" format="text" type="text" value="fleming-harrington" label="fleming-harrington" />
|
16
|
29 </when>
|
|
30 <when value="fh2">
|
18
|
31 <param name="type" format="text" type="text" value="fh2" label="fh2" />
|
16
|
32 </when>
|
3
|
33 </conditional>
|
|
34
|
17
|
35 <conditional name="error">
|
|
36 <param name="error" type="select" label="Type of error:">
|
3
|
37 <option value="greenwood">greenwood</option>
|
|
38 <option value="tsiatis">tsiatis</option>
|
|
39 </param>
|
16
|
40 <when value="greenwood">
|
18
|
41 <param name="type" format="text" type="text" value="greenwood" label="greenwood" />
|
16
|
42 </when>
|
|
43 <when value="tsiatis">
|
18
|
44 <param name="type" format="text" type="text" value="tsiatis" label="tsiatis" />
|
16
|
45 </when>
|
3
|
46 </conditional>
|
|
47
|
17
|
48 <conditional name="conf_type">
|
|
49 <param name="conf_type" type="select" label="Type of conf_type:">
|
3
|
50 <option value="log">log</option>
|
|
51 <option value="log-log">log-log</option>
|
|
52 <option value="plain">plain</option>
|
|
53 <option value="none">none</option>
|
|
54 </param>
|
16
|
55 <when value="log">
|
18
|
56 <param name="type" format="text" type="text" value="log" label="log" />
|
16
|
57 </when>
|
|
58 <when value="log-log">
|
18
|
59 <param name="type" format="text" type="text" value="log-log" label="log-log" />
|
16
|
60 </when>
|
|
61 <when value="plain">
|
18
|
62 <param name="type" format="text" type="text" value="plain" label="plain" />
|
16
|
63 </when>
|
|
64 <when value="none">
|
18
|
65 <param name="type" format="text" type="text" value="none" label="none" />
|
16
|
66 </when>
|
3
|
67 </conditional>
|
|
68
|
17
|
69 <conditional name="conf_lower">
|
|
70 <param name="conf_lower" type="select" label="Type of conf_lower:">
|
3
|
71 <option value="usual">usual</option>
|
16
|
72 <option value="peto">fleming-harrington</option>
|
|
73 <option value="modified">fleming-harrington</option>
|
3
|
74 </param>
|
16
|
75 <when value="usual">
|
18
|
76 <param name="type" format="text" type="text" value="usual" label="usual" />
|
16
|
77 </when>
|
|
78 <when value="peto">
|
18
|
79 <param name="type" format="text" type="text" value="peto" label="peto" />
|
16
|
80 </when>
|
|
81 <when value="modified">
|
18
|
82 <param name="type" format="text" type="text" value="modified" label="modified" />
|
16
|
83 </when>
|
3
|
84 </conditional>
|
|
85
|
0
|
86 </inputs>
|
|
87 <outputs>
|
|
88 <data format="csv" name="fit" label="survfit.csv" />
|
|
89 <data format="png" name="png" label="survfit.png" />
|
|
90 </outputs>
|
|
91 <tests>
|
|
92 <test>
|
|
93 <param name="test">
|
|
94 <element name="test-data">
|
|
95 <collection type="data">
|
|
96 <element format="csv" name="input" label="test-data/input.csv"/>
|
|
97 </collection>
|
|
98 </element>
|
|
99 </param>
|
|
100 <output format="csv" name="fit" label="test-data/survfit.csv"/>
|
|
101 <output fformat="png" name="png" label="test-data/survfit.png"/>
|
|
102 </test>
|
|
103 </tests>
|
|
104 <help>
|
3
|
105 **Computes an estimate of a survival curve for censored data using either the Kaplan-Meier or the Fleming-Harrington method or computes the predicted survivor function for a Cox proportional hazards model.**
|
0
|
106 </help>
|
|
107 <citations>
|
|
108 <citation>https://CRAN.R-project.org/package=survival</citation>
|
|
109 </citations>
|
|
110 </tool>
|