diff cravatp_submit.xml @ 3:a018c44dc18b draft default tip

planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cravatp_score_and_annotate commit d80e60ce74aabe64e131d560085af099d52b81cf-dirty
author galaxyp
date Fri, 07 Sep 2018 16:53:05 -0400
parents 2c7bcc1219fc
children
line wrap: on
line diff
--- a/cravatp_submit.xml	Thu Aug 16 12:28:29 2018 -0400
+++ b/cravatp_submit.xml	Fri Sep 07 16:53:05 2018 -0400
@@ -1,12 +1,12 @@
-<tool id="cravatp_submit" name="CRAVAT-P Submit, Intersect, Check, and Retrieve" version="1.0.0">
+<tool id="cravatp_submit" name="CRAVAT-P Submit, Intersect, Check, and Retrieve" version="1.1.0">
     <description>| Submits, intersects, checks for, and retrieves data for cancer annotation.</description>
   <command detect_errors="aggressive">
   <![CDATA[
 #if $proteo.proteoInput == 'yes':
     #if '$analysis.type' == 'CHASM' or '$analysis.type' == 'CHASM+VEST':
-        python '$__tool_directory__/cravatp_submit.py' '$input' '$GRCh' '$variant' '$gene' '$noncoding' '$error' '$analysis.type' --classifier '$analysis.classifier' --proBED '$proBED' --intersectOnly '$proteo.intersectedVariants' --vcfOutput '$vcf_output'
+        python '$__tool_directory__/cravatp_submit.py' '$input' '$GRCh' '$variant' '$gene' '$noncoding' '$error' '$analysis.type' --classifier '$analysis.classifier' --proBED '$proBED' Do-allIntersect '$proteo.intersectedVariants' --vcfOutput '$vcf_output'
     #else: 
-        python '$__tool_directory__/cravatp_submit.py' '$input' '$GRCh' '$variant' '$gene' '$noncoding' '$error' '$analysis.type' --proBED '$proBED' --intersectOnly '$proteo.intersectedVariants' --vcfOutput '$vcf_output' 
+        python '$__tool_directory__/cravatp_submit.py' '$input' '$GRCh' '$variant' '$gene' '$noncoding' '$error' '$analysis.type' --proBED '$proBED' --allIntersect '$proteo.intersectedVariants' --vcfOutput '$vcf_output' 
     #end if
 #else:
     #if $analysis.type == 'CHASM' or $analysis.type == 'CHASM+VEST':
@@ -20,20 +20,20 @@
   <inputs>
     <param format="vcf" name="input" type="data" label="Source file" help="Accepts transcriptomic or genomic inputs (e.g., tabular, VCF). Additional details can be found below."></param>
     <conditional name="proteo">
-      <param name="proteoInput" type="select" label="Intersect with proteogenomic input?" help="Source file (first input) must be in genomic input to enable intersection with this proteogenomic file.">
+      <param name="proteoInput" type="select" label="Intersect with proteogenomic input?" help="Source file (first input) must be in genomic input to enable intersection with this proteogenomic file. Only variants intersected between the genomic and proteogenomic files are annotated, unless specified otherwise below.">
         <option value="yes">Yes</option>
         <option value="no" selected="true">No</option>
       </param>
       <when value="yes">
         <param format="BED" name="proBED" type="data" label="Peptides with Genomic Coordinates (ProBED Format)"></param>
-        <param name="intersectedVariants" type="boolean" checked="false" label="Submit only intersected variants?" help="Submits the intersected portion of the genomic file to CRAVAT's server. Restricting analysis to only intersected variants takes less time but also provides less-comprehensive results."></param>
+        <param name="intersectedVariants" type="boolean" checked="false" label="Submit all variants?" help="Submits all variants, including non-intersected variants, to the CRAVAT server. This results in a complete genomic analysis at the expense of a longer runtime."></param>
         <param name="output_vcf" type="boolean" checked="false" label="Output intersected genomic file?" help="The intersected genomic file (e.g., VCF) will be included as a result."></param>
       </when>
       <when value="no">
       </when>
     </conditional>
     <conditional name="analysis">
-      <param format="tabular" name="type" type="select" label="Analysis Program" help="VEST and CHASM are machine learning methods for predicting the pathogenicity and functional significance of variants, respectively.">
+      <param format="tabular" name="type" type="select" label="Analysis Program" help="CHASM and VEST are machine learning methods for predicting the functional significance and pathogenicity of variants, respectively.">
           <option value="None">None</option>
           <option value="CHASM">CHASM</option>
           <option value="VEST">VEST</option>
@@ -110,8 +110,8 @@
     </param>
   </inputs>
   <outputs>
-    <collection name="results" type="list" label="CRAVAT Results on ${on_string}">
-      <data format="tabular" label="CRAVAT: Gene Level Annotation Report on ${on_string}" name="gene" />
+    <collection name="results" type="list" label="CRAVAT-P Results on ${on_string}">
+      <data format="tabular" label="CRAVAT: gene Level Annotation Report on ${on_string}" name="gene" />
       <data format="tabular" label="CRAVAT: Variant Report on ${on_string}" name="variant" />
       <data format="tabular" label="CRAVAT: Non-coding Variant Report on ${on_string}" name="noncoding" />
       <data format="tabular" label="CRAVAT: Errors on ${on_string}" name="error" />
@@ -121,6 +121,28 @@
       </data>
   </outputs>
   <tests>
+    <!-- Proteogenomic test case -->
+    <test>
+      <param name="input" value="Freebayes_one-variant.vcf"/>
+      <param name="GRCh" value="GRCh38"/>
+      <param name="variant" value="variant.tsv"/>
+      <param name="gene" value="gene.tsv"/>
+      <param name="noncoding" value="noncoding.tsv"/>
+      <param name="error" value="error.tsv"/>
+      <param name="type" value="CHASM" />
+      <param name="classifier" value="Breast" />
+      <param name="proteoInput" value="yes" />
+      <param name="proBED" value="MCF7_proBed.bed"/>
+      <output_collection name="results" type="list">
+        <element name="variant">
+          <assert_contents>
+            <has_text text="hg38"/>
+            <has_text text="UPF1" />
+            <not_has_text text="CRABP2"/>
+          </assert_contents>
+        </element>
+      </output_collection>
+    </test>
     <!-- GRCh38/hg38 and no analysis test case -->
     <test>
       <param name="input" value="Freebayes_one-variant.vcf"/>
@@ -202,29 +224,7 @@
         </element>
       </output_collection>
     </test>
-    <!-- Proteogenomic test case -->
-    <test>
-      <param name="input" value="Freebayes_one-variant.vcf"/>
-      <param name="GRCh" value="GRCh38"/>
-      <param name="variant" value="variant.tsv"/>
-      <param name="gene" value="gene.tsv"/>
-      <param name="noncoding" value="noncoding.tsv"/>
-      <param name="error" value="error.tsv"/>
-      <param name="type" value="CHASM" />
-      <param name="classifier" value="Breast" />
-      <param name="proteoInput" value="yes" />
-      <param name="proBED" value="MCF7_proBed.bed"/>
-      <output_collection name="results" type="list">
-        <element name="variant">
-          <assert_contents>
-            <has_text text="#Variant Report" />
-            <has_text text="hg38"/>
-            <has_text text="UPF1" />
-            <has_text text="EAIDSPVSFLVLHNQIR" />
-          </assert_contents>
-        </element>
-      </output_collection>
-    </test>
+    
     <!-- "Output intersected VCF" test case -->
     <test>
       <param name="input" value="Freebayes_one-variant.vcf"/>
@@ -240,6 +240,29 @@
       <param name="output_vcf" value="true"/>
       <output name="vcf_output" file="results/intersected_vcf.vcf"/>
     </test>
+    <!-- "All proteogenomic variants submitted" test case-->
+    <test>
+      <param name="input" value="Freebayes_two-variants.vcf"/>
+      <param name="GRCh" value="GRCh38"/>
+      <param name="variant" value="variant.tsv"/>
+      <param name="gene" value="gene.tsv"/>
+      <param name="noncoding" value="noncoding.tsv"/>
+      <param name="error" value="error.tsv"/>
+      <param name="type" value="CHASM" />
+      <param name="classifier" value="Breast" />
+      <param name="proteoInput" value="yes" />
+      <param name="proBED" value="MCF7_proBed.bed"/>
+      <param name="intersectedVariants" value="true" />
+      <output_collection name="results" type="list">
+        <element name="variant">
+          <assert_contents>
+            <has_text text="hg38"/>
+            <has_text text="UPF1" />
+            <has_text text="CRABP2"/>
+          </assert_contents>
+        </element>
+      </output_collection>
+    </test>
     <!-- "Only intersected proteogenomic variants submitted" test case-->
     <test>
       <param name="input" value="Freebayes_two-variants.vcf"/>
@@ -256,9 +279,10 @@
       <output_collection name="results" type="list">
         <element name="variant">
           <assert_contents>
+            <has_text text="#Variant Report" />
             <has_text text="hg38"/>
             <has_text text="UPF1" />
-            <not_has_text text="CRABP2"/>
+            <has_text text="EAIDSPVSFLVLHNQIR" />
           </assert_contents>
         </element>
       </output_collection>
@@ -290,6 +314,7 @@
 ]]>
   </help>
   <citations>
+    <citation type="doi">10.1021/acs.jproteome.8b00404</citation>
     <citation type="doi">10.1158/0008-5472.CAN-17-0338</citation>
     <citation type="doi">10.1186/s13059-017-1377-x</citation>
   </citations>