annotate tools/rgenetics/rgGLM.xml @ 2:c2a356708570

Uploaded
author xuebing
date Fri, 09 Mar 2012 19:45:42 -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="rgGLM1" name="Linear Models:" version="0.2">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
2 <description>for genotype data</description>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
3 <code file="rgGLM_code.py"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
4 <command interpreter="python">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
5 rgGLM.py '$i.extra_files_path/$i.metadata.base_name' '$phef.extra_files_path/$phef.metadata.base_name'
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
6 "$title" '$predvar' '$covar' '$out_file1' '$logf' '$i.metadata.base_name'
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
7 '$inter' '$cond' '$gender' '$mind' '$geno' '$maf' '$logistic' '$gffout'
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
8 </command>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
9
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
10 <inputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
11 <page>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
12 <param name='title' label='Title for outputs' type='text' value='GLM' size="80" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
13 <param name="i" type="data" format="pbed" label="Genotype file" size="80" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
14 <param name="phef" type="data" format="pphe" label="Phenotype file" size="80"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
15 help="Dependent variable and covariates will be chosen from this file on the next page"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
16 <param name="logistic" type="text" value = "0" label="1=Use a logistic model (trait must be 1/2 coded like affection)"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
17 help="Please read the Plink documentation about this option" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
18 <param name="gender" type="text" value = "0" label="1=Add a gender term to model" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
19 <param name='inter' label='1=Build an interaction model - please read the docs carefully before using this'
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
20 type='text' value='0' size="1" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
21 <param name="cond" type="text" area='true' size='15x20' value = ""
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
22 label="condition on this whitespace delimited rs (snp id) list" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
23 <param name="mind" type="float" value = "0.1" label="Remove subjects with missing genotypes gt (eg 0.1)"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
24 help = "Set to 1 to include all subjects in the input file" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
25 <param name="geno" type="float" value = "0.1" label="Remove markers with missing genotypes gt (eg 0.1)"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
26 help = "Set to 1 to include all markers in the input file" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
27 <param name="maf" type="float" value = "0.01" label="Remove markers with MAF lt (eg 0.01) "
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
28 help = "Set to 0 to include all markers in the input file"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
29 </page>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
30 <page>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
31 <param name="predvar" size="80" type="select" label="Dependent Trait"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
32 dynamic_options="get_phecols(phef=phef,selectOne=1)" display="radio" multiple="false"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
33 help="Model this characteristic in terms of subject snp genotypes - eg rare allele dosage for additive model" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
34 <param name="covar" size="80" type="select" label="Covariates"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
35 dynamic_options="get_phecols(phef=phef,selectOne=0)" multiple="true" display="checkboxes"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
36 help="Use these phenotypes as covariates in models of snp dosage effects on the dependent trait"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
37 </page>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
38 </inputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
39
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
40 <outputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
41 <data format="tabular" name="out_file1" label="${title}_rgGLM.xls"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
42 <data format="txt" name="logf" label="${title}_rgGLMlog.txt" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
43 <data format="gff" name="gffout" label="${title}_rgGLM.gff"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
44 </outputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
45 <tests>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
46 <test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
47 <param name='i' value='tinywga' ftype='pbed' >
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
48 <metadata name='base_name' value='tinywga' />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
49 <composite_data value='tinywga.bim' />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
50 <composite_data value='tinywga.bed' />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
51 <composite_data value='tinywga.fam' />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
52 <edit_attributes type='name' value='tinywga' />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
53 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
54 <param name='phef' value='tinywga' ftype='pphe' >
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
55 <metadata name='base_name' value='tinywga' />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
56 <composite_data value='tinywga.pphe' />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
57 <edit_attributes type='name' value='tinywga' />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
58 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
59 <param name='title' value='rgGLMtest1' />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
60 <param name='predvar' value='c1' />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
61 <param name='covar' value='None' />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
62 <param name='inter' value='0' />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
63 <param name='cond' value='' />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
64 <param name='gender' value='0' />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
65 <param name='mind' value='1.0' />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
66 <param name='geno' value='1.0' />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
67 <param name='maf' value='0.0' />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
68 <param name='logistic' value='0' />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
69 <output name='out_file1' file='rgGLMtest1_GLM.xls' ftype='tabular' compare="diff" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
70 <output name='logf' file='rgGLMtest1_GLM_log.txt' ftype='txt' compare="diff" lines_diff='36'/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
71 <output name='gffout' file='rgGLMtest1_GLM_topTable.gff' compare="diff" ftype='gff' />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
72 </test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
73 </tests>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
74 <help>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
75
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
76 .. class:: infomark
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
77
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
78 **Syntax**
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
79
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
80 Note this is a two form tool - you will choose the dependent trait and covariates
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
81 on the second page based on the phenotype file you choose on the first page
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
82
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
83 - **Genotype file** is the input Plink format compressed genotype (pbed) file
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
84 - **Phenotype file** is the input Plink phenotype (pphe) file with FAMID IID followed by phenotypes
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
85 - **Dependant variable** is the term on the left of the model and is chosen from the pphe columns on the second page
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
86 - **Logistic** if you are (eg) using disease status as the outcome variable (case/control) - otherwise the model is linear.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
87 - **Covariates** are covariate terms on the right of the model, also chosen on the second page
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
88 - **Interactions** will add interactions - please be careful how you interpret these - see the Plink documentation.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
89 - **Gender** will add gender as a model term - described in the Plink documentation
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
90 - **Condition** will condition the model on one or more specific SNP rs ids as a whitespace delimited sequence
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
91 - **Format** determines how your data will be returned to your Galaxy workspace
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
92
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
93 -----
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
94
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
95 .. class:: infomark
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
96
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
97 **Summary**
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
98
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
99 This tool will test GLM models for SNP predicting a dependent phenotype
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
100 variable with adjustment for specified covariates.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
101
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
102 If you don't see the genotype or phenotype data set you want here, it can be imported using
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
103 one of the methods available from the rg get data tool group.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
104
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
105 Output format can be UCSC .bed if you want to see one column of your
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
106 results as a fully fledged UCSC genome browser track. A map file containing the chromosome and offset for each marker is
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
107 required for writing this kind of output.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
108 Alternatively you can use .gg for the UCSC Genome Graphs tool which has all of the advantages
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
109 of the the .bed track, plus a neat, visual front end that displays a lot of useful clues.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
110 Either of these are a very useful way of quickly getting a look
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
111 at your data in full genomic context.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
112
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
113 Finally, if you can't live without
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
114 spreadsheet data, choose the .xls tab delimited format. It's not a stupid binary excel file. Just a plain old tab
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
115 delimited
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
116 one with a header. Fortunately excel is dumb enough to open these without much protest.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
117
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
118 -----
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
119
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
120 .. class:: infomark
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
121
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
122 **Attribution**
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
123
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
124 This Galaxy tool relies on Plink (see Plinksrc_) to test GLM models.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
125
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
126 So, we rely on the author (Shaun Purcell) for the documentation you need specific to those settings - they are very nicely documented - see
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
127 DOC_
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
128
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
129 Tool and Galaxy datatypes originally designed and written for the Rgenetics
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
130 series of whole genome scale statistical genetics tools by ross lazarus (ross.lazarus@gmail.com)
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
131
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
132 Copyright Ross Lazarus March 2007
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
133 This Galaxy wrapper is released licensed under the LGPL_ but is about as useful as a chocolate teapot without Plink which is GPL.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
134
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
135 I'm no lawyer, but it looks like you got GPL if you use this software. Good luck.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
136
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
137 .. _Plinksrc: http://pngu.mgh.harvard.edu/~purcell/plink/
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
138
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
139 .. _LGPL: http://www.gnu.org/copyleft/lesser.html
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
140
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
141 .. _DOC: http://pngu.mgh.harvard.edu/~purcell/plink/anal.shtml#glm
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
142
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
143 </help>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
144 </tool>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
145
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
146