diff xenaGetDataset.xml @ 52:bb840cc2603d

better error handling
author jingchunzhu
date Thu, 13 Aug 2015 17:30:19 -0700
parents cdba6c63dce5
children
line wrap: on
line diff
--- a/xenaGetDataset.xml	Thu Aug 13 10:24:12 2015 -0700
+++ b/xenaGetDataset.xml	Thu Aug 13 17:30:19 2015 -0700
@@ -7,11 +7,11 @@
   </requirements>
   <command interpreter="python">
     #if $hub.dataHub == "https://genome-cancer.ucsc.edu/proj/public/xena":
-        xenaGetDataset.py $hub.dataHub $dataset $dataFile
+        xenaGetDataset.py $hub.dataHub $dataset $dataFile $GALAXY_URL
     #elif $hub.customDataHub:
-        getXenaData.py $hub.customDataHub $dataset $dataFile
+        getXenaData.py $hub.customDataHub $dataset $dataFile $GALAXY_URL
     #else
-        getXenaData.py $hub.dataHub $dataset $dataFile
+        getXenaData.py $hub.dataHub $dataset $dataFile $GALAXY_URL
     #end if
   </command>
   <inputs>
@@ -25,12 +25,16 @@
 	<param type="text" name ="customDataHub" label="Hub url" optional="false"/>
       </when>
     </conditional>  
-    <param type="text" name="dataset" label="Dataset ID" optional="false" help="How do I find the dataset ID? Tools section-> UCSC Xena Platform ->  Explore Data in Xena:  It takes you to the xena data exploration page. Browser to find the cohort of your interest (e.g. TCGA Lung Adenocarcinoma), then click the cohort link, then find the dataset of your interest (e.g. LUAD exon expression (IlluminaHiSeq) ), click the dataset link to go to its own detailed page. Copy and paste from the dataset ID field." />
+    <param type="text" name="dataset" label="Dataset ID" optional="false" help="How do I find the dataset ID? Tools section-> UCSC Xena Platform ->  Explore Data in Xena:  It takes you to the xena data exploration page. Browser to find the cohort of your interest (e.g. TCGA Lung Adenocarcinoma), then click the cohort link, then find the dataset of your interest (e.g. LUAD exon expression (IlluminaHiSeq) ), click the dataset link to go to its own detailed page. Copy and paste from the dataset ID field." />    
+    <param name="GALAXY_URL" type="baseurl" />
   </inputs>
   <outputs>
-    <!-- <data format="txt" name="metadataFile" label="${dataset}.json"/> -->
     <data format="tabular" name="dataFile" label="${dataset}" />
   </outputs>
+  <stdio>
+    <exit_code range="1"   level="fatal"   description="Click the eyeball icon to see details." />
+    <exit_code range="2"   level="fatal"   description="Not enough input arguments" />
+  </stdio>
   <help>
     Given the data hub name and the dataset id, download the dataset into this Galaxy. Xena dataset id can be obtained through the Explore Data in Xena tool.
   </help>