annotate tools/human_genome_variation/beam.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="hgv_beam" name="BEAM" version="1.0.0">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
2 <description>significant single- and multi-locus SNP associations in case-control studies</description>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
3
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
4 <command interpreter="bash">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
5 BEAM2_wrapper.sh map=${input.extra_files_path}/${input.metadata.base_name}.map ped=${input.extra_files_path}/${input.metadata.base_name}.ped $burnin $mcmc $pvalue significance=$significance posterior=$posterior
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
6 </command>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
7
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
8 <inputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
9 <param format="lped" name="input" type="data" label="Dataset"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
10 <param name="burnin" label="Number of MCMC burn-in steps" type="integer" value="200" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
11 <param name="mcmc" label="Number of MCMC sampling steps" type="integer" value="200" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
12 <param name="pvalue" label="Significance cutoff (after Bonferroni adjustment)" type="float" value="0.05" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
13 </inputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
14
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
15 <outputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
16 <data format="tabular" name="significance" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
17 <data format="tabular" name="posterior" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
18 </outputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
19
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
20 <requirements>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
21 <requirement type="package">beam</requirement>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
22 <requirement type="binary">mv</requirement>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
23 <requirement type="binary">rm</requirement>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
24 </requirements>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
25
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
26 <!-- broken. will be fixed soon.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
27 <tests>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
28 <test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
29 <param name='input' value='gpass_and_beam_input' ftype='lped' >
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
30 <metadata name='base_name' value='gpass_and_beam_input' />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
31 <composite_data value='gpass_and_beam_input.ped' />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
32 <composite_data value='gpass_and_beam_input.map' />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
33 <edit_attributes type='name' value='gpass_and_beam_input' />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
34 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
35 <param name="burnin" value="200"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
36 <param name="mcmc" value="200"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
37 <param name="pvalue" value="0.05"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
38 <output name="significance" file="beam_output1.tab"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
39 <output name="posterior" file="beam_output2.tab"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
40 </test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
41 </tests>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
42 -->
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
43
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
44 <help>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
45 .. class:: infomark
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
46
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
47 This tool can take a long time to run, depending on the number of SNPs, the
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
48 sample size, and the number of MCMC steps specified. If you have hundreds
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
49 of thousands of SNPs, it may take over a day. The main tasks that slow down
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
50 this tool are searching for interactions and dynamically partitioning the
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
51 SNPs into blocks. Optimization is certainly possible, but hasn't been done
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
52 yet. **If your only interest is to detect SNPs with primary effects (i.e.,
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
53 single-SNP associations), please use the GPASS tool instead.**
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
54
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
55 -----
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
56
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
57 **Dataset formats**
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
58
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
59 The input dataset must be in lped_ format. The output datasets are both tabular_.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
60 (`Dataset missing?`_)
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
61
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
62 .. _lped: ./static/formatHelp.html#lped
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
63 .. _tabular: ./static/formatHelp.html#tabular
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
64 .. _Dataset missing?: ./static/formatHelp.html
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
65
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
66 -----
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
67
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
68 **What it does**
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
69
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
70 BEAM (Bayesian Epistasis Association Mapping) uses a Markov Chain Monte Carlo (MCMC) method to infer SNP block structures and detect both single-marker
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
71 and interaction effects from case-control SNP data.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
72 This tool also partitions SNPs into blocks based on linkage disequilibrium (LD). The method utilized is Bayesian, so the outputs are posterior probabilities of association, along with block partitions. An advantage of this method is that it provides uncertainty measures for the associations and block partitions, and it scales well from small to large sample sizes. It is powerful in detecting gene-gene interactions, although slow for large datasets.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
73
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
74 -----
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
75
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
76 **Example**
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
77
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
78 - input map file::
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
79
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
80 1 rs0 0 738547
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
81 1 rs1 0 5597094
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
82 1 rs2 0 9424115
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
83 etc.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
84
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
85 - input ped file::
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
86
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
87 1 1 0 0 1 1 G G A A A A A A A A A G A A G G G G A A G G G G G G A A A A A G A A G G A G A G A A G G A A G G A A G G A G A A G G A A G G A A A G A G G G A G G G G G A A A G A A G G G G G G G G A G A A A A A A A A
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
88 1 1 0 0 1 1 G G A G G G A A A A A G A A G G G G G G A A G G A G A G G G G G A G G G A G A A G G A G G G A A G G G G A G A G G G A G A A A A G G G G A G A G G G A G A A A A A G G G A G G G A G G G G G A A G G A G
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
89 etc.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
90
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
91 - first output file, significance.txt::
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
92
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
93 ID chr position results
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
94 rs0 chr1 738547 10 20 score= 45.101397 , df= 8 , p= 0.000431 , N=1225
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
95
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
96 - second output file, posterior.txt::
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
97
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
98 id: chr position marginal + interaction = total posterior
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
99 0: 1 738547 0.0000 + 0.0000 = 0.0000
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
100 1: 1 5597094 0.0000 + 0.0000 = 0.0000
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
101 2: 1 9424115 0.0000 + 0.0000 = 0.0000
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
102 3: 1 13879818 0.0000 + 0.0000 = 0.0000
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
103 4: 1 13934751 0.0000 + 0.0000 = 0.0000
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
104 5: 1 16803491 0.0000 + 0.0000 = 0.0000
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
105 6: 1 17236854 0.0000 + 0.0000 = 0.0000
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
106 7: 1 18445387 0.0000 + 0.0000 = 0.0000
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
107 8: 1 21222571 0.0000 + 0.0000 = 0.0000
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
108 etc.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
109
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
110 id: chr position block_boundary | allele counts in cases and controls
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
111 0: 1 738547 1.000 | 156 93 251 | 169 83 248
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
112 1: 1 5597094 1.000 | 323 19 158 | 328 16 156
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
113 2: 1 9424115 1.000 | 366 6 128 | 369 11 120
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
114 3: 1 13879818 1.000 | 252 31 217 | 278 32 190
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
115 4: 1 13934751 1.000 | 246 64 190 | 224 58 218
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
116 5: 1 16803491 1.000 | 91 160 249 | 91 174 235
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
117 6: 1 17236854 1.000 | 252 43 205 | 249 44 207
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
118 7: 1 18445387 1.000 | 205 66 229 | 217 56 227
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
119 8: 1 21222571 1.000 | 353 9 138 | 352 8 140
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
120 etc.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
121
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
122 The "id" field is an internally used index.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
123
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
124 -----
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
125
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
126 **References**
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
127
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
128 Zhang Y, Liu JS. (2007)
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
129 Bayesian inference of epistatic interactions in case-control studies.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
130 Nat Genet. 39(9):1167-73. Epub 2007 Aug 26.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
131
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
132 Zhang Y, Zhang J, Liu JS. (2010)
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
133 Block-based bayesian epistasis association mapping with application to WTCCC type 1 diabetes data.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
134 Submitted.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
135
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
136 </help>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
137 </tool>