Mercurial > repos > melissacline > ucsc_xena_platform
annotate xenaGetDataset.xml @ 52:bb840cc2603d
better error handling
author | jingchunzhu |
---|---|
date | Thu, 13 Aug 2015 17:30:19 -0700 |
parents | cdba6c63dce5 |
children |
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 | 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 | 4 </description> |
5 <requirements> | |
6 <requirement type="package" version="1.0">installXena</requirement> | |
7 </requirements> | |
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 | 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 | 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 | 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 | 16 </command> |
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 | 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." /> |
29 <param name="GALAXY_URL" type="baseurl" /> | |
0 | 30 </inputs> |
31 <outputs> | |
46 | 32 <data format="tabular" name="dataFile" label="${dataset}" /> |
0 | 33 </outputs> |
52 | 34 <stdio> |
35 <exit_code range="1" level="fatal" description="Click the eyeball icon to see details." /> | |
36 <exit_code range="2" level="fatal" description="Not enough input arguments" /> | |
37 </stdio> | |
0 | 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 | 40 </help> |
41 </tool> |