annotate xenaGetDataset.xml @ 52:bb840cc2603d

better error handling
author jingchunzhu
date Thu, 13 Aug 2015 17:30:19 -0700
parents cdba6c63dce5
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
39
066ae9df2d27 labeling descriptions edit
jingchunzhu <jingchunzhu@gmail.com>
parents: 0
diff changeset
1 <tool id="xenaGetDataset" name="Get Data from Xena" version="0.0.2">
0
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
2 <description>
41
02b0824c7d60 Download data from any hub in the federated xena platform
jingchunzhu <jingchunzhu@gmail.com>
parents: 40
diff changeset
3 Download individual dataset from the federated Xena platfrom
0
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
4 </description>
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
5 <requirements>
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
6 <requirement type="package" version="1.0">installXena</requirement>
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
7 </requirements>
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
8 <command interpreter="python">
41
02b0824c7d60 Download data from any hub in the federated xena platform
jingchunzhu <jingchunzhu@gmail.com>
parents: 40
diff changeset
9 #if $hub.dataHub == "https://genome-cancer.ucsc.edu/proj/public/xena":
52
bb840cc2603d better error handling
jingchunzhu
parents: 46
diff changeset
10 xenaGetDataset.py $hub.dataHub $dataset $dataFile $GALAXY_URL
41
02b0824c7d60 Download data from any hub in the federated xena platform
jingchunzhu <jingchunzhu@gmail.com>
parents: 40
diff changeset
11 #elif $hub.customDataHub:
52
bb840cc2603d better error handling
jingchunzhu
parents: 46
diff changeset
12 getXenaData.py $hub.customDataHub $dataset $dataFile $GALAXY_URL
41
02b0824c7d60 Download data from any hub in the federated xena platform
jingchunzhu <jingchunzhu@gmail.com>
parents: 40
diff changeset
13 #else
52
bb840cc2603d better error handling
jingchunzhu
parents: 46
diff changeset
14 getXenaData.py $hub.dataHub $dataset $dataFile $GALAXY_URL
41
02b0824c7d60 Download data from any hub in the federated xena platform
jingchunzhu <jingchunzhu@gmail.com>
parents: 40
diff changeset
15 #end if
0
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
16 </command>
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
17 <inputs>
41
02b0824c7d60 Download data from any hub in the federated xena platform
jingchunzhu <jingchunzhu@gmail.com>
parents: 40
diff changeset
18 <conditional name="hub">
02b0824c7d60 Download data from any hub in the federated xena platform
jingchunzhu <jingchunzhu@gmail.com>
parents: 40
diff changeset
19 <param type="select" name="dataHub" label="Data Hub" optional="false">
02b0824c7d60 Download data from any hub in the federated xena platform
jingchunzhu <jingchunzhu@gmail.com>
parents: 40
diff changeset
20 <option value="https://genome-cancer.ucsc.edu/proj/public/xena"/>
02b0824c7d60 Download data from any hub in the federated xena platform
jingchunzhu <jingchunzhu@gmail.com>
parents: 40
diff changeset
21 <option value="datahub">Enter a different hub</option>
02b0824c7d60 Download data from any hub in the federated xena platform
jingchunzhu <jingchunzhu@gmail.com>
parents: 40
diff changeset
22 </param>
02b0824c7d60 Download data from any hub in the federated xena platform
jingchunzhu <jingchunzhu@gmail.com>
parents: 40
diff changeset
23 <when value ="https://genome-cancer.ucsc.edu/proj/public/xena"/>
02b0824c7d60 Download data from any hub in the federated xena platform
jingchunzhu <jingchunzhu@gmail.com>
parents: 40
diff changeset
24 <when value ="datahub">
02b0824c7d60 Download data from any hub in the federated xena platform
jingchunzhu <jingchunzhu@gmail.com>
parents: 40
diff changeset
25 <param type="text" name ="customDataHub" label="Hub url" optional="false"/>
02b0824c7d60 Download data from any hub in the federated xena platform
jingchunzhu <jingchunzhu@gmail.com>
parents: 40
diff changeset
26 </when>
02b0824c7d60 Download data from any hub in the federated xena platform
jingchunzhu <jingchunzhu@gmail.com>
parents: 40
diff changeset
27 </conditional>
52
bb840cc2603d better error handling
jingchunzhu
parents: 46
diff changeset
28 <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." />
bb840cc2603d better error handling
jingchunzhu
parents: 46
diff changeset
29 <param name="GALAXY_URL" type="baseurl" />
0
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
30 </inputs>
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
31 <outputs>
46
cdba6c63dce5 add help
jingchunzhu
parents: 43
diff changeset
32 <data format="tabular" name="dataFile" label="${dataset}" />
0
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
33 </outputs>
52
bb840cc2603d better error handling
jingchunzhu
parents: 46
diff changeset
34 <stdio>
bb840cc2603d better error handling
jingchunzhu
parents: 46
diff changeset
35 <exit_code range="1" level="fatal" description="Click the eyeball icon to see details." />
bb840cc2603d better error handling
jingchunzhu
parents: 46
diff changeset
36 <exit_code range="2" level="fatal" description="Not enough input arguments" />
bb840cc2603d better error handling
jingchunzhu
parents: 46
diff changeset
37 </stdio>
0
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
38 <help>
41
02b0824c7d60 Download data from any hub in the federated xena platform
jingchunzhu <jingchunzhu@gmail.com>
parents: 40
diff changeset
39 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.
0
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
40 </help>
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
41 </tool>