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">
|
24
|
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
|
27
|
18 <conditional name="type">
|
|
19 <param name="type" type="select" label="Type of survival curve:">
|
21
|
20 <option value="kaplan-meier">kaplan-meier</option>
|
|
21 <option value="fleming-harrington">fleming-harrington</option>
|
|
22 <option value="fh2">fh2</option>
|
|
23 </param>
|
26
|
24 <when value="kaplan-meier">
|
27
|
25 <param name = "type" format="text" value = "kaplan-meier"/>
|
26
|
26 <when/>
|
|
27 <when value="fleming-harrington">
|
27
|
28 <param name = "type" format="text" value="fleming-harrington"/>
|
26
|
29 <when/>
|
|
30 <when value="fh2">
|
27
|
31 <param name = "type" format="text" value="fh2"/>
|
26
|
32 <when/>
|
21
|
33 </conditional>
|
3
|
34
|
21
|
35 <conditional name="error">
|
17
|
36 <param name="error" type="select" label="Type of error:">
|
21
|
37 <option value="greenwood">greenwood</option>
|
|
38 <option value="tsiatis">tsiatis</option>
|
3
|
39 </param>
|
24
|
40 <when value="greenwood" />
|
|
41 <when value="tsiatis"/>
|
3
|
42 </conditional>
|
|
43
|
17
|
44 <conditional name="conf_type">
|
21
|
45 <param name="conf_type" type="select" label="Type of conf.type:">
|
|
46 <option value="log">log</option>
|
|
47 <option value="log-log">log-log</option>
|
|
48 <option value="plain">plain</option>
|
|
49 <option value="none">none</option>
|
3
|
50 </param>
|
24
|
51 <when value="log" />
|
|
52 <when value="log-log"/>
|
|
53 <when value="plain" />
|
|
54 <when value="none"/>
|
3
|
55 </conditional>
|
|
56
|
17
|
57 <conditional name="conf_lower">
|
21
|
58 <param name="conf_lower" type="select" label="Type of conf.lower:">
|
|
59 <option value="usual">usual</option>
|
|
60 <option value="peto">peto</option>
|
|
61 <option value="modified">modified</option>
|
3
|
62 </param>
|
24
|
63 <when value="usual" />
|
|
64 <when value="peto" />
|
|
65 <when value="modified" />
|
3
|
66 </conditional>
|
|
67
|
0
|
68 </inputs>
|
|
69 <outputs>
|
|
70 <data format="csv" name="fit" label="survfit.csv" />
|
|
71 <data format="png" name="png" label="survfit.png" />
|
|
72 </outputs>
|
|
73 <tests>
|
|
74 <test>
|
|
75 <param name="test">
|
|
76 <element name="test-data">
|
|
77 <collection type="data">
|
|
78 <element format="csv" name="input" label="test-data/input.csv"/>
|
|
79 </collection>
|
|
80 </element>
|
|
81 </param>
|
|
82 <output format="csv" name="fit" label="test-data/survfit.csv"/>
|
|
83 <output fformat="png" name="png" label="test-data/survfit.png"/>
|
|
84 </test>
|
|
85 </tests>
|
|
86 <help>
|
3
|
87 **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
|
88 </help>
|
|
89 <citations>
|
|
90 <citation>https://CRAN.R-project.org/package=survival</citation>
|
|
91 </citations>
|
|
92 </tool>
|