annotate snpFreq.xml @ 0:72ea0d13dd66 draft

Imported from capsule None
author devteam
date Mon, 28 Jul 2014 11:56:46 -0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
1 <tool id="hgv_snpFreq" name="snpFreq" version="1.0.1">
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
2 <description>significant SNPs in case-control data</description>
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
3
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
4 <requirements>
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
5 <requirement type="package" version="2.11.0">R</requirement>
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
6 <requirement type="package" version="1.34.0">bioc_qvalue</requirement>
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
7 </requirements>
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
8
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
9 <command interpreter="perl">
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
10 snpFreq2.pl $inTypeCond.inType 0.05 $input $output
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
11 #if $inTypeCond.inType == "tab"
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
12 $inTypeCond.group1_1 $inTypeCond.group1_2 $inTypeCond.group1_3
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
13 $inTypeCond.group2_1 $inTypeCond.group2_2 $inTypeCond.group2_3 0.05
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
14 #else if $inTypeCond.inType == "snp"
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
15 $group1 $group2
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
16 #end if
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
17 </command>
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
18
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
19 <inputs>
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
20 <conditional name="inTypeCond">
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
21 <param name="inType" type="select" label="Format of input" >
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
22 <option value="tab">Alleles pre-counted</option>
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
23 <option value="snp">SNP table</option>
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
24 </param>
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
25 <when value="tab">
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
26 <param format="tabular" name="input" type="data" label="Dataset" />
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
27 <param name="group1_1" label="Column with genotype 1 count for group 1" type="data_column" data_ref="input" />
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
28 <param name="group1_2" label="Column with genotype 2 count for group 1" type="data_column" data_ref="input" />
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
29 <param name="group1_3" label="Column with genotype 3 count for group 1" type="data_column" data_ref="input" />
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
30 <param name="group2_1" label="Column with genotype 1 count for group 2" type="data_column" data_ref="input" />
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
31 <param name="group2_2" label="Column with genotype 2 count for group 2" type="data_column" data_ref="input" />
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
32 <param name="group2_3" label="Column with genotype 3 count for group 2" type="data_column" data_ref="input" />
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
33 </when>
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
34 <when value="snp">
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
35 <param format="snp" name="input" type="data" label="SNP Dataset" />
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
36 <param format="ind" name="group1" type="data" label="Group 1" />
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
37 <param format="ind" name="group2" type="data" label="Group 2" />
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
38 </when>
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
39 </conditional>
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
40 </inputs>
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
41
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
42 <outputs>
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
43 <data format="tabular" name="output" />
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
44 </outputs>
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
45
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
46 <tests>
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
47 <test>
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
48 <param name="inType" value="tab" />
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
49 <param name="input" ftype="tabular" value="snpFreqInput.txt" dbkey="hg18" />
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
50 <param name="group1_1" value="4" />
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
51 <param name="group1_2" value="5" />
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
52 <param name="group1_3" value="6" />
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
53 <param name="group2_1" value="7" />
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
54 <param name="group2_2" value="8" />
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
55 <param name="group2_3" value="9" />
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
56 <output name="output" file="snpFreqTestOut.txt" />
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
57 </test>
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
58 </tests>
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
59
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
60 <help>
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
61
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
62 **Dataset formats**
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
63
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
64 The input is tabular_, with six columns of allele counts. The output is also tabular,
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
65 and includes all of the input data plus the additional columns described below.
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
66 (`Dataset missing?`_)
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
67
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
68 .. _tabular: ${static_path}/formatHelp.html#tab
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
69 .. _Dataset missing?: ${static_path}/formatHelp.html
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
70
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
71 -----
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
72
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
73 **What it does**
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
74
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
75 This tool performs a basic analysis of bi-allelic SNPs in case-control
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
76 data, using the R statistical environment and Fisher's exact test to
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
77 identify SNPs with a significant difference in the allele frequencies
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
78 between the two groups. R's "qvalue" package is used to correct for
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
79 multiple testing.
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
80
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
81 The input file includes counts for each allele combination (AA aa Aa)
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
82 for each group at each SNP position. The assignment of codes (1 2 3)
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
83 to these genotypes is arbitrary, as long as it is consistent for both
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
84 groups. Any other input columns are ignored in the computation, but
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
85 are copied to the output. The output appends eight additional columns,
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
86 namely the minimum expected counts of the three genotypes for each
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
87 group, the p-value, and the q-value.
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
88
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
89 -----
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
90
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
91 **Example**
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
92
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
93 - input file::
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
94
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
95 chr1 210 211 38 4 15 56 0 1 x
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
96 chr1 228 229 55 0 2 56 0 1 x
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
97 chr1 230 231 46 0 11 55 0 2 x
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
98 chr1 234 235 43 0 14 55 0 2 x
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
99 chr1 236 237 55 0 2 13 10 34 x
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
100 chr1 437 438 55 0 2 46 0 11 x
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
101 chr1 439 440 56 0 1 55 0 2 x
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
102 chr1 449 450 56 0 1 13 20 24 x
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
103 chr1 518 519 56 0 1 38 4 15 x
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
104
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
105 Here the group 1 genotype counts are in columns 4 - 6, while those
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
106 for group 2 are in columns 7 - 9.
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
107
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
108 Note that the "x" column has no meaning. It was added to this example
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
109 to show that extra columns can be included, and to make it easier
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
110 to see where the new columns are appended in the output.
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
111
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
112 - output file::
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
113
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
114 chr1 210 211 38 4 15 56 0 1 x 47 2 8 47 2 8 1.50219088598917e-05 6.32501425679652e-06
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
115 chr1 228 229 55 0 2 56 0 1 x 55.5 0 1.5 55.5 0 1.5 1 0.210526315789474
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
116 chr1 230 231 46 0 11 55 0 2 x 50.5 0 6.5 50.5 0 6.5 0.0155644201009862 0.00409590002657532
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
117 chr1 234 235 43 0 14 55 0 2 x 49 0 8 49 0 8 0.00210854461554067 0.000739840215979182
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
118 chr1 236 237 55 0 2 13 10 34 x 34 5 18 34 5 18 6.14613878554783e-17 4.31307984950725e-17
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
119 chr1 437 438 55 0 2 46 0 11 x 50.5 0 6.5 50.5 0 6.5 0.0155644201009862 0.00409590002657532
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
120 chr1 439 440 56 0 1 55 0 2 x 55.5 0 1.5 55.5 0 1.5 1 0.210526315789474
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
121 chr1 449 450 56 0 1 13 20 24 x 34.5 10 12.5 34.5 10 12.5 2.25757007974134e-18 2.37638955762246e-18
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
122 chr1 518 519 56 0 1 38 4 15 x 47 2 8 47 2 8 1.50219088598917e-05 6.32501425679652e-06
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
123
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
124 </help>
72ea0d13dd66 Imported from capsule None
devteam
parents:
diff changeset
125 </tool>