annotate snpSift_caseControl.xml @ 2:bf8c1526871b draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit d12355cea76843e3ed6f09d96c3e9fe22afe4a4f
author iuc
date Mon, 05 Dec 2016 12:11:18 -0500
parents 98708b88af9f
children 20c7d583fec1
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
bf8c1526871b planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit d12355cea76843e3ed6f09d96c3e9fe22afe4a4f
iuc
parents: 1
diff changeset
1 <tool id="snpSift_caseControl" name="SnpSift CaseControl" version="@WRAPPER_VERSION@.1">
0
9e8280e19338 Uploaded
iuc
parents:
diff changeset
2 <description>Count samples are in 'case' and 'control' groups.</description>
2
bf8c1526871b planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit d12355cea76843e3ed6f09d96c3e9fe22afe4a4f
iuc
parents: 1
diff changeset
3 <!--
0
9e8280e19338 Uploaded
iuc
parents:
diff changeset
4 You can change the amount of memory used, just change the -Xmx parameter (e.g. use -Xmx2G for 2Gb of memory)
9e8280e19338 Uploaded
iuc
parents:
diff changeset
5 -->
9e8280e19338 Uploaded
iuc
parents:
diff changeset
6 <macros>
9e8280e19338 Uploaded
iuc
parents:
diff changeset
7 <import>snpSift_macros.xml</import>
9e8280e19338 Uploaded
iuc
parents:
diff changeset
8 </macros>
1
98708b88af9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 21b46ae2c90ba7e569b2b3a9eaf938f8dedb2c31
iuc
parents: 0
diff changeset
9 <expand macro="requirements" />
98708b88af9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 21b46ae2c90ba7e569b2b3a9eaf938f8dedb2c31
iuc
parents: 0
diff changeset
10 <expand macro="stdio" />
98708b88af9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 21b46ae2c90ba7e569b2b3a9eaf938f8dedb2c31
iuc
parents: 0
diff changeset
11 <expand macro="version_command" />
98708b88af9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 21b46ae2c90ba7e569b2b3a9eaf938f8dedb2c31
iuc
parents: 0
diff changeset
12 <command><![CDATA[
2
bf8c1526871b planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit d12355cea76843e3ed6f09d96c3e9fe22afe4a4f
iuc
parents: 1
diff changeset
13 @CONDA_SNPSIFT_JAR_PATH@ &&
bf8c1526871b planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit d12355cea76843e3ed6f09d96c3e9fe22afe4a4f
iuc
parents: 1
diff changeset
14 java -Xmx1G -jar "\$SNPSIFT_JAR_PATH/SnpSift.jar" caseControl -q
bf8c1526871b planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit d12355cea76843e3ed6f09d96c3e9fe22afe4a4f
iuc
parents: 1
diff changeset
15 #if str($name).strip() != '':
bf8c1526871b planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit d12355cea76843e3ed6f09d96c3e9fe22afe4a4f
iuc
parents: 1
diff changeset
16 -name "$name"
bf8c1526871b planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit d12355cea76843e3ed6f09d96c3e9fe22afe4a4f
iuc
parents: 1
diff changeset
17 #end if
bf8c1526871b planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit d12355cea76843e3ed6f09d96c3e9fe22afe4a4f
iuc
parents: 1
diff changeset
18 #if $ctrl.ctrl_src == 'caseString':
bf8c1526871b planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit d12355cea76843e3ed6f09d96c3e9fe22afe4a4f
iuc
parents: 1
diff changeset
19 '$ctrl.caseControlStr'
bf8c1526871b planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit d12355cea76843e3ed6f09d96c3e9fe22afe4a4f
iuc
parents: 1
diff changeset
20 #else
bf8c1526871b planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit d12355cea76843e3ed6f09d96c3e9fe22afe4a4f
iuc
parents: 1
diff changeset
21 -tfam "$ctrl.tfam"
bf8c1526871b planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit d12355cea76843e3ed6f09d96c3e9fe22afe4a4f
iuc
parents: 1
diff changeset
22 #end if
bf8c1526871b planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit d12355cea76843e3ed6f09d96c3e9fe22afe4a4f
iuc
parents: 1
diff changeset
23 "$input" > "$output"
1
98708b88af9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 21b46ae2c90ba7e569b2b3a9eaf938f8dedb2c31
iuc
parents: 0
diff changeset
24 ]]>
0
9e8280e19338 Uploaded
iuc
parents:
diff changeset
25 </command>
9e8280e19338 Uploaded
iuc
parents:
diff changeset
26 <inputs>
9e8280e19338 Uploaded
iuc
parents:
diff changeset
27 <param format="vcf" name="input" type="data" label="Variant input file in VCF format"/>
9e8280e19338 Uploaded
iuc
parents:
diff changeset
28 <conditional name="ctrl">
9e8280e19338 Uploaded
iuc
parents:
diff changeset
29 <param name="ctrl_src" type="select" label="Case Control defined in">
9e8280e19338 Uploaded
iuc
parents:
diff changeset
30 <option value="caseString">Case Control String</option>
9e8280e19338 Uploaded
iuc
parents:
diff changeset
31 <option value="tfam">TFAM file</option>
9e8280e19338 Uploaded
iuc
parents:
diff changeset
32 </param>
9e8280e19338 Uploaded
iuc
parents:
diff changeset
33 <when value="caseString">
9e8280e19338 Uploaded
iuc
parents:
diff changeset
34 <param name="caseControlStr" type="text" label="Case / Control column designation" size="50">
9e8280e19338 Uploaded
iuc
parents:
diff changeset
35 <help>
9e8280e19338 Uploaded
iuc
parents:
diff changeset
36 Case and control are defined by a string containing plus and minus symbols {'+', '-', '0'} where '+' is case, '-' is control and '0' is neutral
9e8280e19338 Uploaded
iuc
parents:
diff changeset
37 </help>
9e8280e19338 Uploaded
iuc
parents:
diff changeset
38 <validator type="regex" message="must be only plus(+), minus(-), or zero(0) characters">[+-0]+</validator>
9e8280e19338 Uploaded
iuc
parents:
diff changeset
39 </param>
9e8280e19338 Uploaded
iuc
parents:
diff changeset
40 </when>
9e8280e19338 Uploaded
iuc
parents:
diff changeset
41 <when value="tfam">
9e8280e19338 Uploaded
iuc
parents:
diff changeset
42 <param format="tabular" name="tfam" type="data" label="PLINK TFAM file" help="Read more about TFAM at http://pngu.mgh.harvard.edu/~purcell/plink/data.shtml#tr"/>
9e8280e19338 Uploaded
iuc
parents:
diff changeset
43 </when>
9e8280e19338 Uploaded
iuc
parents:
diff changeset
44 </conditional>
2
bf8c1526871b planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit d12355cea76843e3ed6f09d96c3e9fe22afe4a4f
iuc
parents: 1
diff changeset
45 <param name="name" type="text" label="name" help="name to append to the 'Cases' or 'Controls' tags">
bf8c1526871b planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit d12355cea76843e3ed6f09d96c3e9fe22afe4a4f
iuc
parents: 1
diff changeset
46 <validator type="regex" message="Use only valid ID characters">[_a-zA-Z0-9]*</validator>
0
9e8280e19338 Uploaded
iuc
parents:
diff changeset
47 </param>
9e8280e19338 Uploaded
iuc
parents:
diff changeset
48 </inputs>
9e8280e19338 Uploaded
iuc
parents:
diff changeset
49 <outputs>
9e8280e19338 Uploaded
iuc
parents:
diff changeset
50 <data format="vcf" name="output" />
9e8280e19338 Uploaded
iuc
parents:
diff changeset
51 </outputs>
9e8280e19338 Uploaded
iuc
parents:
diff changeset
52 <tests>
9e8280e19338 Uploaded
iuc
parents:
diff changeset
53 <test>
9e8280e19338 Uploaded
iuc
parents:
diff changeset
54 <param name="input" ftype="vcf" value="test.private.01.vcf"/>
9e8280e19338 Uploaded
iuc
parents:
diff changeset
55 <param name="ctrl_src" value="caseString"/>
9e8280e19338 Uploaded
iuc
parents:
diff changeset
56 <param name="caseControlStr" value="--"/>
9e8280e19338 Uploaded
iuc
parents:
diff changeset
57 <output name="output">
9e8280e19338 Uploaded
iuc
parents:
diff changeset
58 <assert_contents>
9e8280e19338 Uploaded
iuc
parents:
diff changeset
59 <has_text text="Cases=0,0,0;" />
9e8280e19338 Uploaded
iuc
parents:
diff changeset
60 <has_text text="Controls=0,0,0;" />
9e8280e19338 Uploaded
iuc
parents:
diff changeset
61 </assert_contents>
9e8280e19338 Uploaded
iuc
parents:
diff changeset
62 </output>
9e8280e19338 Uploaded
iuc
parents:
diff changeset
63 </test>
9e8280e19338 Uploaded
iuc
parents:
diff changeset
64
9e8280e19338 Uploaded
iuc
parents:
diff changeset
65 <test>
9e8280e19338 Uploaded
iuc
parents:
diff changeset
66 <param name="input" ftype="vcf" value="test.private.02.vcf"/>
9e8280e19338 Uploaded
iuc
parents:
diff changeset
67 <param name="ctrl_src" value="caseString"/>
9e8280e19338 Uploaded
iuc
parents:
diff changeset
68 <param name="caseControlStr" value="--"/>
9e8280e19338 Uploaded
iuc
parents:
diff changeset
69 <output name="output">
9e8280e19338 Uploaded
iuc
parents:
diff changeset
70 <assert_contents>
9e8280e19338 Uploaded
iuc
parents:
diff changeset
71 <has_text text="Cases=0,0,0;" />
9e8280e19338 Uploaded
iuc
parents:
diff changeset
72 <has_text text="Controls=2,0,4;" />
9e8280e19338 Uploaded
iuc
parents:
diff changeset
73 </assert_contents>
9e8280e19338 Uploaded
iuc
parents:
diff changeset
74 </output>
9e8280e19338 Uploaded
iuc
parents:
diff changeset
75 </test>
9e8280e19338 Uploaded
iuc
parents:
diff changeset
76
9e8280e19338 Uploaded
iuc
parents:
diff changeset
77 <test>
9e8280e19338 Uploaded
iuc
parents:
diff changeset
78 <param name="input" ftype="vcf" value="test.private.02.vcf"/>
9e8280e19338 Uploaded
iuc
parents:
diff changeset
79 <param name="name" value=""/>
9e8280e19338 Uploaded
iuc
parents:
diff changeset
80 <param name="ctrl_src" value="caseString"/>
9e8280e19338 Uploaded
iuc
parents:
diff changeset
81 <param name="caseControlStr" value="-+"/>
9e8280e19338 Uploaded
iuc
parents:
diff changeset
82 <output name="output">
9e8280e19338 Uploaded
iuc
parents:
diff changeset
83 <assert_contents>
9e8280e19338 Uploaded
iuc
parents:
diff changeset
84 <has_text text="Cases=1,0,2;" />
9e8280e19338 Uploaded
iuc
parents:
diff changeset
85 <has_text text="Controls=1,0,2;" />
9e8280e19338 Uploaded
iuc
parents:
diff changeset
86 </assert_contents>
9e8280e19338 Uploaded
iuc
parents:
diff changeset
87 </output>
9e8280e19338 Uploaded
iuc
parents:
diff changeset
88 </test>
9e8280e19338 Uploaded
iuc
parents:
diff changeset
89 </tests>
1
98708b88af9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 21b46ae2c90ba7e569b2b3a9eaf938f8dedb2c31
iuc
parents: 0
diff changeset
90 <help><![CDATA[
0
9e8280e19338 Uploaded
iuc
parents:
diff changeset
91
9e8280e19338 Uploaded
iuc
parents:
diff changeset
92 **SnpSift CaseControl**
9e8280e19338 Uploaded
iuc
parents:
diff changeset
93
2
bf8c1526871b planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit d12355cea76843e3ed6f09d96c3e9fe22afe4a4f
iuc
parents: 1
diff changeset
94 Allows you to count how many samples are in 'case' group and a 'control' group. You can count 'homozygous', 'heterozygous' or 'any' variants.
0
9e8280e19338 Uploaded
iuc
parents:
diff changeset
95
2
bf8c1526871b planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit d12355cea76843e3ed6f09d96c3e9fe22afe4a4f
iuc
parents: 1
diff changeset
96 Case and control are defined by a string containing plus and minus symbols {'+', '-', '0'} where '+' is case, '-' is control and '0' is neutral.
0
9e8280e19338 Uploaded
iuc
parents:
diff changeset
97
9e8280e19338 Uploaded
iuc
parents:
diff changeset
98 This command adds two annotations to the VCF file:
9e8280e19338 Uploaded
iuc
parents:
diff changeset
99
2
bf8c1526871b planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit d12355cea76843e3ed6f09d96c3e9fe22afe4a4f
iuc
parents: 1
diff changeset
100 - **CaseControl**: Two comma separated numbers numbers representing the number of samples that have the variant in the case and the control group. Example:
0
9e8280e19338 Uploaded
iuc
parents:
diff changeset
101
9e8280e19338 Uploaded
iuc
parents:
diff changeset
102 "CaseControl=3,4" *the variant is present in 3 cases and 4 controls.*
9e8280e19338 Uploaded
iuc
parents:
diff changeset
103
9e8280e19338 Uploaded
iuc
parents:
diff changeset
104
9e8280e19338 Uploaded
iuc
parents:
diff changeset
105 - **CaseControlP**: A p-value (Fisher exact test) that the number of cases is N or more. Example:
9e8280e19338 Uploaded
iuc
parents:
diff changeset
106
9e8280e19338 Uploaded
iuc
parents:
diff changeset
107 "CaseControl=4,0;CaseControlP=3.030303e-02" *in this case the pValue of having 4 or more cases and zero controls is 0.03*
9e8280e19338 Uploaded
iuc
parents:
diff changeset
108
9e8280e19338 Uploaded
iuc
parents:
diff changeset
109
9e8280e19338 Uploaded
iuc
parents:
diff changeset
110 For example, if we have ten samples (which means ten genotype columns in the VCF file), the first four are 'case' and the last six are 'control', so the description string would be "++++------". Let's say we want to distinguish genotypes that are homozygous in 'case' and either homozygous or heterozygous in 'control'. We would set:
9e8280e19338 Uploaded
iuc
parents:
diff changeset
111
9e8280e19338 Uploaded
iuc
parents:
diff changeset
112 - Hom/Het case = "hom"
9e8280e19338 Uploaded
iuc
parents:
diff changeset
113
2
bf8c1526871b planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit d12355cea76843e3ed6f09d96c3e9fe22afe4a4f
iuc
parents: 1
diff changeset
114 - Hom/Het control = "any"
0
9e8280e19338 Uploaded
iuc
parents:
diff changeset
115
9e8280e19338 Uploaded
iuc
parents:
diff changeset
116 - Case / Control column designation = ""++++------"
9e8280e19338 Uploaded
iuc
parents:
diff changeset
117
9e8280e19338 Uploaded
iuc
parents:
diff changeset
118
9e8280e19338 Uploaded
iuc
parents:
diff changeset
119 @EXTERNAL_DOCUMENTATION@
9e8280e19338 Uploaded
iuc
parents:
diff changeset
120 http://snpeff.sourceforge.net/SnpSift.html#casecontrol
9e8280e19338 Uploaded
iuc
parents:
diff changeset
121
1
98708b88af9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 21b46ae2c90ba7e569b2b3a9eaf938f8dedb2c31
iuc
parents: 0
diff changeset
122 ]]>
98708b88af9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 21b46ae2c90ba7e569b2b3a9eaf938f8dedb2c31
iuc
parents: 0
diff changeset
123 </help>
98708b88af9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 21b46ae2c90ba7e569b2b3a9eaf938f8dedb2c31
iuc
parents: 0
diff changeset
124 <expand macro="citations" />
0
9e8280e19338 Uploaded
iuc
parents:
diff changeset
125 </tool>