diff snpSift_caseControl.xml @ 3:20c7d583fec1 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit fbc18d9128669e461e76ed13307ee88dd774afa5
author iuc
date Mon, 12 Jun 2017 10:25:32 -0400
parents bf8c1526871b
children 09d6806c609e
line wrap: on
line diff
--- a/snpSift_caseControl.xml	Mon Dec 05 12:11:18 2016 -0500
+++ b/snpSift_caseControl.xml	Mon Jun 12 10:25:32 2017 -0400
@@ -1,4 +1,4 @@
-<tool id="snpSift_caseControl" name="SnpSift CaseControl" version="@WRAPPER_VERSION@.1">
+<tool id="snpSift_caseControl" name="SnpSift CaseControl" version="@WRAPPER_VERSION@.0">
     <description>Count samples are in 'case' and 'control' groups.</description>
     <!--
         You can change the amount of memory used, just change the -Xmx parameter (e.g. use -Xmx2G for 2Gb of memory)
@@ -10,44 +10,42 @@
     <expand macro="stdio" />
     <expand macro="version_command" />
     <command><![CDATA[
-        @CONDA_SNPSIFT_JAR_PATH@ &&
-        java -Xmx1G -jar "\$SNPSIFT_JAR_PATH/SnpSift.jar" caseControl -q
-        #if str($name).strip() != '':
-            -name "$name"
-        #end if
-        #if $ctrl.ctrl_src == 'caseString':
-            '$ctrl.caseControlStr'
-        #else
-            -tfam "$ctrl.tfam"
-        #end if
-        "$input" > "$output"
-]]>
-    </command>
+SnpSift -Xmx1G caseControl -q
+#if $name.strip():
+    -name '$name'
+#end if
+#if $ctrl.ctrl_src == 'caseString':
+    '$ctrl.caseControlStr'
+#else
+    -tfam '$ctrl.tfam'
+#end if
+'$input' > '$output'
+    ]]></command>
     <inputs>
-        <param format="vcf" name="input" type="data" label="Variant input file in VCF format"/>
+        <param name="input" type="data" format="vcf" label="Variant input file in VCF format"/>
         <conditional name="ctrl">
             <param name="ctrl_src" type="select" label="Case Control defined in">
-            <option value="caseString">Case Control String</option>
-            <option value="tfam">TFAM file</option>
-        </param>
-        <when value="caseString">
-            <param name="caseControlStr" type="text" label="Case / Control column designation" size="50">
-            <help>
-                Case and control are defined by a string containing plus and minus symbols {'+', '-', '0'} where '+' is case, '-' is control and '0' is neutral
-            </help>
-            <validator type="regex" message="must be  only plus(+), minus(-), or zero(0) characters">[+-0]+</validator>
+                <option value="caseString">Case Control String</option>
+                <option value="tfam">TFAM file</option>
             </param>
-        </when>
-        <when value="tfam">
-            <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"/>
-        </when>
+            <when value="caseString">
+                <param name="caseControlStr" type="text" size="50" label="Case / Control column designation">
+                    <help>
+                        Case and control are defined by a string containing plus and minus symbols {'+', '-', '0'} where '+' is case, '-' is control and '0' is neutral
+                    </help>
+                    <validator type="regex" message="must be  only plus(+), minus(-), or zero(0) characters">[+-0]+</validator>
+                </param>
+            </when>
+            <when value="tfam">
+                <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"/>
+            </when>
         </conditional>
-        <param name="name" type="text" label="name" help="name to append to the 'Cases' or 'Controls' tags">
+        <param name="name" type="text" label="Name" help="Name to append to the 'Cases' or 'Controls' tags">
             <validator type="regex" message="Use only valid ID characters">[_a-zA-Z0-9]*</validator>
         </param>
     </inputs>
     <outputs>
-        <data format="vcf" name="output" />
+        <data name="output" format="vcf" />
     </outputs>
     <tests>
         <test>
@@ -88,7 +86,6 @@
         </test>
     </tests>
     <help><![CDATA[
-
 **SnpSift CaseControl**
 
 Allows you to count how many samples are in 'case' group and a 'control' group. You can count 'homozygous', 'heterozygous' or 'any' variants.
@@ -97,29 +94,23 @@
 
 This command adds two annotations to the VCF file:
 
- - **CaseControl**: Two comma separated numbers numbers representing the number of samples that have the variant in the case and the control group. Example:
+- **CaseControl**: Two comma separated numbers numbers representing the number of samples that have the variant in the case and the control group. Example::
 
-  "CaseControl=3,4" *the variant is present in 3 cases and 4 controls.*
+      "CaseControl=3,4" *the variant is present in 3 cases and 4 controls.*
 
 
- - **CaseControlP**: A p-value (Fisher exact test) that the number of cases is N or more. Example:
+- **CaseControlP**: A p-value (Fisher exact test) that the number of cases is N or more. Example::
 
-  "CaseControl=4,0;CaseControlP=3.030303e-02" *in this case the pValue of having 4 or more cases and zero controls is 0.03*
-
+      "CaseControl=4,0;CaseControlP=3.030303e-02" *in this case the pValue of having 4 or more cases and zero controls is 0.03*
 
 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:
 
-  - Hom/Het case = "hom"
-
-  - Hom/Het control = "any"
-
-  - Case / Control column designation = ""++++------"
-
+- Hom/Het case = "hom"
+- Hom/Het control = "any"
+- Case / Control column designation = ""++++------"
 
 @EXTERNAL_DOCUMENTATION@
-	http://snpeff.sourceforge.net/SnpSift.html#casecontrol
-
-]]>
-    </help>
+- http://snpeff.sourceforge.net/SnpSift.html#casecontrol
+    ]]></help>
     <expand macro="citations" />
 </tool>