Mercurial > repos > melissacline > ucsc_xena_platform
annotate xena_import.xml @ 53:09fdd4d23a3a
version 17
author | jingchunzhu |
---|---|
date | Mon, 21 Sep 2015 13:25:05 -0700 |
parents | 8da6920a39ac |
children |
rev | line source |
---|---|
35
d8dc482ef970
add functionality to import probeMap
jingchunzhu <jingchunzhu@gmail.com>
parents:
8
diff
changeset
|
1 <tool id="xenaImport" name="XENA Import" version="0.0.1"> |
41
02b0824c7d60
Download data from any hub in the federated xena platform
jingchunzhu <jingchunzhu@gmail.com>
parents:
40
diff
changeset
|
2 <description>Load a Galaxy dataset into the Xena Server running on this galaxy instance</description> |
0 | 3 <requirements> |
4 <requirement type="package" version="1.0">installXena</requirement> | |
5 </requirements> | |
6 <command interpreter="python"> | |
7 xena_import.py ${xenaInputData} $outfile | |
35
d8dc482ef970
add functionality to import probeMap
jingchunzhu <jingchunzhu@gmail.com>
parents:
8
diff
changeset
|
8 --cohort "${cohort}" --type ${format.metadataType} |
d8dc482ef970
add functionality to import probeMap
jingchunzhu <jingchunzhu@gmail.com>
parents:
8
diff
changeset
|
9 #if $format.metadataType == "genomicMatrix" or $format.metadataType == "clinicalMatrix": |
d8dc482ef970
add functionality to import probeMap
jingchunzhu <jingchunzhu@gmail.com>
parents:
8
diff
changeset
|
10 #if $format.isCustom.dataSubType == "custom" |
d8dc482ef970
add functionality to import probeMap
jingchunzhu <jingchunzhu@gmail.com>
parents:
8
diff
changeset
|
11 #if $format.isCustom.customSubType |
d8dc482ef970
add functionality to import probeMap
jingchunzhu <jingchunzhu@gmail.com>
parents:
8
diff
changeset
|
12 --dataSubType "${format.isCustom.customSubType}" |
0 | 13 #end if |
14 #else | |
35
d8dc482ef970
add functionality to import probeMap
jingchunzhu <jingchunzhu@gmail.com>
parents:
8
diff
changeset
|
15 --dataSubType "${format.isCustom.dataSubType}" |
0 | 16 #end if |
17 #end if | |
35
d8dc482ef970
add functionality to import probeMap
jingchunzhu <jingchunzhu@gmail.com>
parents:
8
diff
changeset
|
18 |
d8dc482ef970
add functionality to import probeMap
jingchunzhu <jingchunzhu@gmail.com>
parents:
8
diff
changeset
|
19 #if $label |
d8dc482ef970
add functionality to import probeMap
jingchunzhu <jingchunzhu@gmail.com>
parents:
8
diff
changeset
|
20 --label "${label}" |
d8dc482ef970
add functionality to import probeMap
jingchunzhu <jingchunzhu@gmail.com>
parents:
8
diff
changeset
|
21 #else |
d8dc482ef970
add functionality to import probeMap
jingchunzhu <jingchunzhu@gmail.com>
parents:
8
diff
changeset
|
22 --label "${xenaInputData.name}" |
d8dc482ef970
add functionality to import probeMap
jingchunzhu <jingchunzhu@gmail.com>
parents:
8
diff
changeset
|
23 #end if |
d8dc482ef970
add functionality to import probeMap
jingchunzhu <jingchunzhu@gmail.com>
parents:
8
diff
changeset
|
24 |
48 | 25 #if $format.metadataType == "genomicMatrix" and $format.withProbeMap.probeMap =="select" |
35
d8dc482ef970
add functionality to import probeMap
jingchunzhu <jingchunzhu@gmail.com>
parents:
8
diff
changeset
|
26 --probeMap "${format.withProbeMap.probeMapFile}" |
d8dc482ef970
add functionality to import probeMap
jingchunzhu <jingchunzhu@gmail.com>
parents:
8
diff
changeset
|
27 #end if |
d8dc482ef970
add functionality to import probeMap
jingchunzhu <jingchunzhu@gmail.com>
parents:
8
diff
changeset
|
28 |
49 | 29 #if $format.metadataType == "genomicMatrix" and $format.colNormalization: |
2
6eeb3ca663fb
Fixed dataset delete bugs (the full pathname was needed) plus changed xena_import to give a checkbox for turning on column normalization
melissacline
parents:
0
diff
changeset
|
30 --colNormalization 1 |
6eeb3ca663fb
Fixed dataset delete bugs (the full pathname was needed) plus changed xena_import to give a checkbox for turning on column normalization
melissacline
parents:
0
diff
changeset
|
31 #end if |
49 | 32 |
33 #if $format.metadataType == "mutationVector" and $format.assembly: | |
34 --assembly "${format.assembly}" | |
35 #end if | |
36 | |
0 | 37 </command> |
38 <inputs> | |
39 <param format="data" type="data" name="xenaInputData" label="Data to import to Xena" optional="false"/> | |
35
d8dc482ef970
add functionality to import probeMap
jingchunzhu <jingchunzhu@gmail.com>
parents:
8
diff
changeset
|
40 <param format="str" type="text" name="cohort" label="Cohort" optional="false"/> |
d8dc482ef970
add functionality to import probeMap
jingchunzhu <jingchunzhu@gmail.com>
parents:
8
diff
changeset
|
41 <conditional name="format"> |
d8dc482ef970
add functionality to import probeMap
jingchunzhu <jingchunzhu@gmail.com>
parents:
8
diff
changeset
|
42 <param type="select" name="metadataType" label="File Format"> |
d8dc482ef970
add functionality to import probeMap
jingchunzhu <jingchunzhu@gmail.com>
parents:
8
diff
changeset
|
43 <option value="genomicMatrix">Rows (Identifiers) by Columns (Samples) (often genomic data)</option> |
d8dc482ef970
add functionality to import probeMap
jingchunzhu <jingchunzhu@gmail.com>
parents:
8
diff
changeset
|
44 <option value="clinicalMatrix">Rows (Samples) by Columns (Identifiers) (often clinical data)</option> |
d8dc482ef970
add functionality to import probeMap
jingchunzhu <jingchunzhu@gmail.com>
parents:
8
diff
changeset
|
45 <option value="mutationVector">Mutation By Position</option> |
0 | 46 </param> |
35
d8dc482ef970
add functionality to import probeMap
jingchunzhu <jingchunzhu@gmail.com>
parents:
8
diff
changeset
|
47 <when value="genomicMatrix"> |
d8dc482ef970
add functionality to import probeMap
jingchunzhu <jingchunzhu@gmail.com>
parents:
8
diff
changeset
|
48 <conditional name="withProbeMap"> |
d8dc482ef970
add functionality to import probeMap
jingchunzhu <jingchunzhu@gmail.com>
parents:
8
diff
changeset
|
49 <param type="select" name="probeMap" label="Identifier to Gene Mapping"> |
d8dc482ef970
add functionality to import probeMap
jingchunzhu <jingchunzhu@gmail.com>
parents:
8
diff
changeset
|
50 <option value="none">No id to gene mapping file</option> |
d8dc482ef970
add functionality to import probeMap
jingchunzhu <jingchunzhu@gmail.com>
parents:
8
diff
changeset
|
51 <option value="select">Select a id to gene mapping file</option> |
d8dc482ef970
add functionality to import probeMap
jingchunzhu <jingchunzhu@gmail.com>
parents:
8
diff
changeset
|
52 </param> |
d8dc482ef970
add functionality to import probeMap
jingchunzhu <jingchunzhu@gmail.com>
parents:
8
diff
changeset
|
53 <when value="none"/> |
d8dc482ef970
add functionality to import probeMap
jingchunzhu <jingchunzhu@gmail.com>
parents:
8
diff
changeset
|
54 <when value="select"> |
d8dc482ef970
add functionality to import probeMap
jingchunzhu <jingchunzhu@gmail.com>
parents:
8
diff
changeset
|
55 <param type="data" format="tabular" multiple="false" name="probeMapFile" optional="false"/> |
d8dc482ef970
add functionality to import probeMap
jingchunzhu <jingchunzhu@gmail.com>
parents:
8
diff
changeset
|
56 </when> |
d8dc482ef970
add functionality to import probeMap
jingchunzhu <jingchunzhu@gmail.com>
parents:
8
diff
changeset
|
57 </conditional> |
d8dc482ef970
add functionality to import probeMap
jingchunzhu <jingchunzhu@gmail.com>
parents:
8
diff
changeset
|
58 |
d8dc482ef970
add functionality to import probeMap
jingchunzhu <jingchunzhu@gmail.com>
parents:
8
diff
changeset
|
59 <conditional name="isCustom"> |
d8dc482ef970
add functionality to import probeMap
jingchunzhu <jingchunzhu@gmail.com>
parents:
8
diff
changeset
|
60 <param type="select" name="dataSubType" label="Type of data"> |
d8dc482ef970
add functionality to import probeMap
jingchunzhu <jingchunzhu@gmail.com>
parents:
8
diff
changeset
|
61 <option value="custom">Enter your own</option> |
d8dc482ef970
add functionality to import probeMap
jingchunzhu <jingchunzhu@gmail.com>
parents:
8
diff
changeset
|
62 <option value="copy number">copy number</option> |
d8dc482ef970
add functionality to import probeMap
jingchunzhu <jingchunzhu@gmail.com>
parents:
8
diff
changeset
|
63 <option value="DNA methylation">DNA methylation</option> |
d8dc482ef970
add functionality to import probeMap
jingchunzhu <jingchunzhu@gmail.com>
parents:
8
diff
changeset
|
64 <option value="exon expression">exon expression</option> |
d8dc482ef970
add functionality to import probeMap
jingchunzhu <jingchunzhu@gmail.com>
parents:
8
diff
changeset
|
65 <option value="gene expression">gene expression</option> |
d8dc482ef970
add functionality to import probeMap
jingchunzhu <jingchunzhu@gmail.com>
parents:
8
diff
changeset
|
66 <option value="gene expression RNAseq">gene expression RNAseq</option> |
d8dc482ef970
add functionality to import probeMap
jingchunzhu <jingchunzhu@gmail.com>
parents:
8
diff
changeset
|
67 <option value="gene expression Array">gene expression Array</option> |
d8dc482ef970
add functionality to import probeMap
jingchunzhu <jingchunzhu@gmail.com>
parents:
8
diff
changeset
|
68 <option value="mRNA expression">mRNA expression</option> |
d8dc482ef970
add functionality to import probeMap
jingchunzhu <jingchunzhu@gmail.com>
parents:
8
diff
changeset
|
69 <option value="somatic mutation (SNP and small INDELs)">somatic mutation (SNP and small INDELs)</option> |
d8dc482ef970
add functionality to import probeMap
jingchunzhu <jingchunzhu@gmail.com>
parents:
8
diff
changeset
|
70 <option value="somatic mutation (gene level)">somatic mutation (gene level)</option> |
d8dc482ef970
add functionality to import probeMap
jingchunzhu <jingchunzhu@gmail.com>
parents:
8
diff
changeset
|
71 <option value="protein expression RPPA">protein expression RPPA</option> |
d8dc482ef970
add functionality to import probeMap
jingchunzhu <jingchunzhu@gmail.com>
parents:
8
diff
changeset
|
72 <option value="PARADIGM pathway activity">PARADIGM pathway activity</option> |
d8dc482ef970
add functionality to import probeMap
jingchunzhu <jingchunzhu@gmail.com>
parents:
8
diff
changeset
|
73 </param> |
d8dc482ef970
add functionality to import probeMap
jingchunzhu <jingchunzhu@gmail.com>
parents:
8
diff
changeset
|
74 <when value="custom"> |
d8dc482ef970
add functionality to import probeMap
jingchunzhu <jingchunzhu@gmail.com>
parents:
8
diff
changeset
|
75 <param type="text" name="customSubType" label="Type of data" optional="true"/> |
d8dc482ef970
add functionality to import probeMap
jingchunzhu <jingchunzhu@gmail.com>
parents:
8
diff
changeset
|
76 </when> |
d8dc482ef970
add functionality to import probeMap
jingchunzhu <jingchunzhu@gmail.com>
parents:
8
diff
changeset
|
77 <when value="copy number"/> |
d8dc482ef970
add functionality to import probeMap
jingchunzhu <jingchunzhu@gmail.com>
parents:
8
diff
changeset
|
78 <when value="DNA methylation"/> |
d8dc482ef970
add functionality to import probeMap
jingchunzhu <jingchunzhu@gmail.com>
parents:
8
diff
changeset
|
79 <when value="exon expression"/> |
d8dc482ef970
add functionality to import probeMap
jingchunzhu <jingchunzhu@gmail.com>
parents:
8
diff
changeset
|
80 <when value="gene expression"/> |
d8dc482ef970
add functionality to import probeMap
jingchunzhu <jingchunzhu@gmail.com>
parents:
8
diff
changeset
|
81 <when value="gene expression RNAseq"/> |
d8dc482ef970
add functionality to import probeMap
jingchunzhu <jingchunzhu@gmail.com>
parents:
8
diff
changeset
|
82 <when value="gene expression Array"/> |
d8dc482ef970
add functionality to import probeMap
jingchunzhu <jingchunzhu@gmail.com>
parents:
8
diff
changeset
|
83 <when value="mRNA expression"/> |
d8dc482ef970
add functionality to import probeMap
jingchunzhu <jingchunzhu@gmail.com>
parents:
8
diff
changeset
|
84 <when value="somatic mutation (SNP and small INDELs)"/> |
d8dc482ef970
add functionality to import probeMap
jingchunzhu <jingchunzhu@gmail.com>
parents:
8
diff
changeset
|
85 <when value="somatic mutation (gene level)"/> |
d8dc482ef970
add functionality to import probeMap
jingchunzhu <jingchunzhu@gmail.com>
parents:
8
diff
changeset
|
86 <when value="protein expression RPPA"/> |
d8dc482ef970
add functionality to import probeMap
jingchunzhu <jingchunzhu@gmail.com>
parents:
8
diff
changeset
|
87 <when value="PARADIGM pathway activity"/> |
d8dc482ef970
add functionality to import probeMap
jingchunzhu <jingchunzhu@gmail.com>
parents:
8
diff
changeset
|
88 </conditional> |
49 | 89 |
90 <param type="boolean" name="colNormalization" label="Apply Column Normalization" checked="false"/> | |
0 | 91 </when> |
49 | 92 |
35
d8dc482ef970
add functionality to import probeMap
jingchunzhu <jingchunzhu@gmail.com>
parents:
8
diff
changeset
|
93 <when value="clinicalMatrix"> |
d8dc482ef970
add functionality to import probeMap
jingchunzhu <jingchunzhu@gmail.com>
parents:
8
diff
changeset
|
94 <conditional name="isCustom"> |
d8dc482ef970
add functionality to import probeMap
jingchunzhu <jingchunzhu@gmail.com>
parents:
8
diff
changeset
|
95 <param type="select" name="dataSubType" label="Type of data"> |
d8dc482ef970
add functionality to import probeMap
jingchunzhu <jingchunzhu@gmail.com>
parents:
8
diff
changeset
|
96 <option value="custom">Enter your own</option> |
d8dc482ef970
add functionality to import probeMap
jingchunzhu <jingchunzhu@gmail.com>
parents:
8
diff
changeset
|
97 <option value="phenotype">phenotype</option> |
d8dc482ef970
add functionality to import probeMap
jingchunzhu <jingchunzhu@gmail.com>
parents:
8
diff
changeset
|
98 </param> |
d8dc482ef970
add functionality to import probeMap
jingchunzhu <jingchunzhu@gmail.com>
parents:
8
diff
changeset
|
99 <when value="custom"> |
d8dc482ef970
add functionality to import probeMap
jingchunzhu <jingchunzhu@gmail.com>
parents:
8
diff
changeset
|
100 <param type="text" name="customSubType" label="Type of data" optional="true"/> |
d8dc482ef970
add functionality to import probeMap
jingchunzhu <jingchunzhu@gmail.com>
parents:
8
diff
changeset
|
101 </when> |
d8dc482ef970
add functionality to import probeMap
jingchunzhu <jingchunzhu@gmail.com>
parents:
8
diff
changeset
|
102 <when value="phenotype"/> |
d8dc482ef970
add functionality to import probeMap
jingchunzhu <jingchunzhu@gmail.com>
parents:
8
diff
changeset
|
103 </conditional> |
0 | 104 </when> |
49 | 105 |
106 <when value="mutationVector"> | |
107 <param type="select" name="assembly" label ="assembly"> | |
108 <option value = "hg19"> hg19</option> | |
109 </param> | |
110 </when> | |
0 | 111 </conditional> |
35
d8dc482ef970
add functionality to import probeMap
jingchunzhu <jingchunzhu@gmail.com>
parents:
8
diff
changeset
|
112 <param type="text" name="label" label="Display Name (Optional)" optional="true"/> |
0 | 113 </inputs> |
114 <outputs> | |
115 <data format="txt" name="outfile"/> | |
116 </outputs> | |
117 <help> | |
8
d57b5b3af15c
Minor update to ensure that xena_import correctly has the 'enter your own' metadata option appear first
melissacline
parents:
6
diff
changeset
|
118 To Appear, soon... |
0 | 119 </help> |
120 </tool> |