comparison heinz_scoring.xml @ 0:e41ec5af7472 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/heinz commit b0b2c64a46bdd9beebdfb7fc5312f75346483763
author iuc
date Thu, 02 Aug 2018 11:57:44 -0400
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:e41ec5af7472
1 <tool id="heinz_scoring" name="Calculate a Heinz score" version="1.0">
2 <description>for each node</description>
3 <requirements>
4 <requirement type="package" version="0.19.2">pandas</requirement>
5 <requirement type="package" version="1.12.0">numpy</requirement>
6 </requirements>
7 <command detect_errors="aggressive"><![CDATA[
8 python '$__tool_directory__/heinz_scoring.py' -n '$node' -f '$FDR' -o '$score'
9 #if str( $input_type.input_type_selector ) == "bum_type":
10 -l '$input_type.lambda' -a '$input_type.alpha'
11 #else:
12 -m '$input_type.input_bum'
13 #end if
14 ]]></command>
15 <inputs>
16 <param type="data" name="node" format="txt" label="A node file with p-values"
17 help="The file should contain two columns: the node identifier (e.g. gene) and the corresponding p-value" />
18 <param type="float" name="FDR" value="0.5" min="0" max="1" label="FDR value"
19 help="False Discovery Rate (FDR), e.g. 0.0001"/>
20 <conditional name="input_type">
21 <param name="input_type_selector" type="select" label="Choose your input type for BUM parameters">
22 <option value="bum_output" selected="True">The output file of BUM model</option>
23 <option value="bum_type">Manually type the parameters of BUM model.</option>
24 </param>
25 <when value="bum_type">
26 <param type="float" name="lambda" value="0.5" min="0" max="1" label="lambda" />
27 <param type="float" name="alpha" value="0.5" min="0" max="1" label="alpha" />
28 </when>
29 <when value="bum_output">
30 <param type="data" name="input_bum" format="txt" label="Output file of BUM model as input:
31 lambda on the first line and alpha, the second" />
32 </when>
33 </conditional>
34 </inputs>
35 <outputs>
36 <data name="score" format="txt" label="${tool.name} on ${on_string}: Heinz scores" />
37 </outputs>
38 <tests>
39 <!--Ensure the manual input of BUM parameters work-->
40 <test>
41 <param name="node" value="genes_with_a_p_value.csv" />
42 <param name="FDR" value="0.001" />
43 <param name="input_type_selector" value="bum_type" />
44 <param name="lambda" value="0.546" />
45 <param name="alpha" value="0.453" />
46 <output name="score" file="Heinz_score_using_manual_BUM_params.txt" />
47 </test>
48 <!--Ensure the use of BUM output file as input work-->
49 <test>
50 <param name="node" value="genes_with_a_p_value.csv" />
51 <param name="FDR" value="0.001" />
52 <param name="input_type_selector" value="bum_output" />
53 <param name="input_bum" value="BUM_output.txt" />
54 <output name="score" file="Heinz_score_using_BUM_output.txt" />
55 </test>
56 </tests>
57 <help><![CDATA[
58 This tool is used to calculate a Heinz score for each node (e.g., a gene). This
59 score further serves as the input of the tool "Identify optimal scoring subnetwork".
60
61 The input "Node file with p-values" should be like this:
62
63 ========= ===================
64 K10970 0.00278208628672861
65 --------- -------------------
66 K10780 0.0029566591795884
67 --------- -------------------
68 K01484 0.0157152504694443
69 --------- -------------------
70 K09055 0.0188894478579773
71 ========= ===================
72
73
74 The first column is "node identifier" (e.g., a gene name); the second column, "p-value";
75 The columns are delimited by a tab; no headers are needed.
76
77 The section "Choose your input type for BUM parameters" requires two alternative types of input:
78
79 1."The output of the BUM model" (The tool "Fit a BUM model"): the first line of the file
80 is lambda; the second, alpha.
81
82 2."Manually type the parameters of BUM model": lambda and alpha.
83
84
85 ]]></help>
86 <citations>
87 <citation type="doi">10.1093/bioinformatics/btn161</citation>
88 <citation type="doi">10.1093/bioinformatics/btg148</citation>
89 </citations>
90 </tool>