annotate tools/rgenetics/rgfakePhe.xml @ 1:cdcb0ce84a1b

Uploaded
author xuebing
date Fri, 09 Mar 2012 19:45:15 -0500
parents 9071e359b9a3
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
1 <tool id="fakePhe1" name="Null phenotypes">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
2 <description>for testing</description>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
3 <command interpreter="python">rgfakePhe.py '$infile1.extra_files_path/$infile1.metadata.base_name'
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
4 "$title1" '$ppheout' '$ppheout.files_path' '$script_file'
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
5 </command>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
6 <inputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
7 <page>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
8 <param name="infile1"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
9 type="data" format="pbed,lped"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
10 label="Pedigree from Dataset" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
11 <param name="title1" type="text"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
12 value="My null phenos" size="60"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
13 label="Title for outputs"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
14 <param name="dbkey" type="hidden" value='hg18' />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
15 </page>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
16 <page>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
17 <repeat name="fakePhe" title="Phenotypes to simulate under the Null">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
18 <param name="pName" type="text" label="Phenotype Name">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
19 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
20 <conditional name="series">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
21 <param name="phetype" type="select" label="Phenotype Distribution">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
22 <option value="rnorm" selected="true">Random Normal variate</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
23 <option value="unif">Random Uniform variate</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
24 <option value="rgamma">Random Gamma variate</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
25 <option value="weibull">Random Weibull variate</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
26 <option value="exponential">Random exponential variate</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
27 <option value="poisson">Random Poisson variate</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
28 <option value="cat">Random categorical choice</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
29 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
30 <when value="poisson">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
31 <param name="lamb" type="integer" value="2" label="Lambda (mean and variance)" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
32 </when>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
33 <when value="rnorm">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
34 <param name="Mean" type="float" value="0.0" label="Mean" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
35 <param name="SD" type="float" label="SD" value="1.0"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
36 </when>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
37 <when value="exponential">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
38 <param name="Mean" type="float" value="1.0" label="Mean" help="lambda for the exponential will be 1.0/Mean" />=
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
39 </when>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
40 <when value="rgamma">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
41 <param name="Alpha" type="float" value="10" label="Alpha">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
42 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
43 <param name="Beta" type="float" label="Beta" value="1.0">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
44 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
45 </when>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
46 <when value="weibull">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
47 <param name="Alpha" type="float" value="10" label="Alpha">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
48 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
49 <param name="Beta" type="float" label="Beta" value="1.0">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
50 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
51 </when>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
52 <when value="unif">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
53 <param name="low" type="float" value="0.0" label="Lowest uniform value">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
54 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
55 <param name="hi" type="float" label="Highest uniform value" value="1.0"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
56 help="A uniform value will be generated from the range specified (low to high) - eg 0.0 to 1.0">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
57 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
58 </when>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
59 <when value="cat">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
60 <param name="values" type="text" value="A,B,C" label="Comma separated values to choose from"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
61 help = "Each of the comma separated values will have an equal probability of being chosen - eg 'A1,A2,B1,B2'">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
62 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
63 </when>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
64 </conditional>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
65 </repeat>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
66 </page>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
67 </inputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
68 <outputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
69 <data format="pphe" name="ppheout" metadata_source="infile1" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
70 </outputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
71 <configfiles>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
72 <configfile name="script_file">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
73 #for $n, $f in enumerate($fakePhe)
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
74 #if $f.series.phetype=='rnorm'
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
75 {'pN':'$f.pName','pT':'rnorm','pP':"{'Mean':'$f.series.Mean', 'SD':'$f.series.SD'}"}
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
76 #elif $f.series.phetype=='rgamma'
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
77 {'pN':'$f.pName','pT':'rgamma','pP':"{'Alpha':'$f.series.Alpha', 'Beta':'$f.series.Beta'}"}
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
78 #elif $f.series.phetype=='poisson'
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
79 {'pN':'$f.pName','pT':'poisson','pP':"{'lamb':'$f.series.lamb',}"}
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
80 #elif $f.series.phetype=='exponential'
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
81 {'pN':'$f.pName','pT':'exponential','pP':"{'Mean':'$f.series.Mean',}"}
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
82 #elif $f.series.phetype=='weibull'
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
83 {'pN':'$f.pName','pT':'weibull','pP':"{'Alpha':'$f.series.Alpha', 'Beta':'$f.series.Beta'}"}
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
84 #elif $f.series.phetype=='cat'
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
85 {'pN':'$f.pName','pT':'$f.series.phetype','pP':"{'values':'$f.series.values'}"}
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
86 #elif $f.series.phetype=='unif'
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
87 {'pN':'$f.pName','pT':'$f.series.phetype','pP':"{'low':'$f.series.low','hi':'$f.series.hi'}"}
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
88 #end if
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
89 #end for
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
90 </configfile>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
91 </configfiles>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
92 <help>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
93 .. class:: infomark
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
94
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
95 This tool allows you to generate an arbitrary (sort of)
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
96 synthetic phenotype file with measurements drawn from normal,
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
97 gamma, weibull, exponential, uniform or categorical distributions. These are for testing under
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
98 the null hypothesis of no association - the values are random but
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
99 from user specified distributions.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
100
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
101 Two output files will appear - one for FBAT and the other for Plink since unfortunately,
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
102 they have slightly differing requirements for the header row.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
103
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
104 -----
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
105
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
106 .. class:: warningmark
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
107
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
108 This tool is very experimental
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
109
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
110 -----
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
111
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
112 - **Pedigree** is a library pedigree file - the id's will be used in the synthetic null phenotypes
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
113 - **Title** is a name to give to the output phenotype file
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
114
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
115 On the next page, you can add an unlimited number of various kinds of phenotypes including choices for
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
116 categorical ones or distributions with specific parameters
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
117
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
118 Just keep using the "Add new phenotype" button to add new specifications until you're done.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
119 Use the Execute button to run the program and generate the null phenotype data.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
120 The new files will be available on the drop down lists for appropriate tools - eg the
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
121 FBAT format one will be available if you run the FBAT modelling tool.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
122
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
123 **Attribution**
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
124 Originally designed and written for the Rgenetics
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
125 series of Galaxy tools, and
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
126 copyright Ross Lazarus 2007 (ross period lazarus at gmail period com)
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
127 Licensed under the terms of the LGPL
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
128 as documented http://www.gnu.org/licenses/lgpl.html
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
129
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
130 </help>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
131 </tool>