Mercurial > repos > iuc > snpsift
annotate snpSift_caseControl.xml @ 12:6bf58286d795 draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit e5a5ad091c621348dc6ce2df861475ebc54a380e
| author | iuc |
|---|---|
| date | Tue, 13 Oct 2015 17:31:24 -0400 |
| parents | b884686a80dc |
| children | ed810da439cc |
| rev | line source |
|---|---|
| 0 | 1 <tool id="snpSift_caseControl" name="SnpSift CaseControl" version="4.0.0"> |
| 2 <description>Count samples are in 'case' and 'control' groups.</description> | |
|
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
|
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" /> |
| 0 | 11 <command> |
|
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
|
12 java -Xmx1G -jar \$SNPEFF_JAR_PATH/SnpSift.jar caseControl -q |
| 0 | 13 #if $name.__str__.strip() != '': |
| 14 -name $name | |
| 15 #end if | |
| 16 #if $ctrl.ctrl_src == 'caseString': | |
|
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
|
17 '$ctrl.caseControlStr' |
| 0 | 18 #else |
| 19 -tfam "$ctrl.tfam" | |
| 20 #end if | |
| 21 $input > $output | |
| 22 </command> | |
| 23 <inputs> | |
| 24 <param format="vcf" name="input" type="data" label="Variant input file in VCF format"/> | |
| 25 <conditional name="ctrl"> | |
| 26 <param name="ctrl_src" type="select" label="Case Control defined in"> | |
| 27 <option value="caseString">Case Control String</option> | |
| 28 <option value="tfam">TFAM file</option> | |
| 29 </param> | |
| 30 <when value="caseString"> | |
|
12
6bf58286d795
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit e5a5ad091c621348dc6ce2df861475ebc54a380e
iuc
parents:
11
diff
changeset
|
31 <param name="caseControlStr" type="text" label="Case / Control column designation"> |
| 0 | 32 <help> |
| 33 Case and control are defined by a string containing plus and minus symbols {'+', '-', '0'} where '+' is case, '-' is control and '0' is neutral | |
| 34 </help> | |
| 35 <validator type="regex" message="must be only plus(+), minus(-), or zero(0) characters">[+-0]+</validator> | |
| 36 </param> | |
| 37 </when> | |
| 38 <when value="tfam"> | |
| 39 <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"/> | |
| 40 </when> | |
| 41 </conditional> | |
| 42 <param name="name" type="text" optional="true" label="name" help="name to append to the 'Cases' or 'Controls' tags"> | |
| 43 <validator type="regex" message="Use only valid ID characters">[_a-zA-Z0-9]+</validator> | |
| 44 </param> | |
| 45 </inputs> | |
| 46 <outputs> | |
| 47 <data format="vcf" name="output" /> | |
| 48 </outputs> | |
| 49 <tests> | |
| 50 <test> | |
| 51 <param name="input" ftype="vcf" value="test.private.01.vcf"/> | |
| 52 <param name="ctrl_src" value="caseString"/> | |
| 53 <param name="caseControlStr" value="--"/> | |
| 54 <output name="output"> | |
| 55 <assert_contents> | |
| 56 <has_text text="Cases=0,0,0;" /> | |
| 57 <has_text text="Controls=0,0,0;" /> | |
| 58 </assert_contents> | |
| 59 </output> | |
| 60 </test> | |
| 61 | |
| 62 <test> | |
| 63 <param name="input" ftype="vcf" value="test.private.02.vcf"/> | |
| 64 <param name="ctrl_src" value="caseString"/> | |
| 65 <param name="caseControlStr" value="--"/> | |
| 66 <output name="output"> | |
| 67 <assert_contents> | |
| 68 <has_text text="Cases=0,0,0;" /> | |
| 69 <has_text text="Controls=2,0,4;" /> | |
| 70 </assert_contents> | |
| 71 </output> | |
| 72 </test> | |
| 73 | |
| 74 <test> | |
| 75 <param name="input" ftype="vcf" value="test.private.02.vcf"/> | |
| 76 <param name="name" value=""/> | |
| 77 <param name="ctrl_src" value="caseString"/> | |
| 78 <param name="caseControlStr" value="-+"/> | |
| 79 <output name="output"> | |
| 80 <assert_contents> | |
| 81 <has_text text="Cases=1,0,2;" /> | |
| 82 <has_text text="Controls=1,0,2;" /> | |
| 83 </assert_contents> | |
| 84 </output> | |
| 85 </test> | |
| 86 </tests> | |
| 87 <help> | |
| 88 | |
| 89 **SnpSift CaseControl** | |
| 90 | |
|
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
|
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 |
|
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
|
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 | |
|
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
|
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 |
| 99 "CaseControl=3,4" *the variant is present in 3 cases and 4 controls.* | |
| 100 | |
| 101 | |
| 102 - **CaseControlP**: A p-value (Fisher exact test) that the number of cases is N or more. Example: | |
| 103 | |
| 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* | |
| 105 | |
| 106 | |
| 107 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: | |
| 108 | |
| 109 - Hom/Het case = "hom" | |
| 110 | |
|
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
|
111 - Hom/Het control = "any" |
| 0 | 112 |
| 113 - Case / Control column designation = ""++++------" | |
| 114 | |
| 115 | |
| 116 @EXTERNAL_DOCUMENTATION@ | |
| 117 http://snpeff.sourceforge.net/SnpSift.html#casecontrol | |
| 118 | |
| 119 @CITATION_SECTION@ | |
| 120 | |
| 121 </help> | |
| 122 </tool> |
