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