annotate xena_import.xml @ 13:be73a33f333b

Tweaking of ucsc data pages tool
author melissacline
date Thu, 19 Mar 2015 14:08:11 -0700
parents d57b5b3af15c
children d8dc482ef970
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
1 <tool id="xenaImport" description="Import into XENA from Galaxy" name="XENA Import" version="0.0.1">
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
2 <description>Import from Galaxy into the Xena VM</description>
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
3 <requirements>
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
4 <requirement type="package" version="1.0">installXena</requirement>
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
5 </requirements>
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
6 <command interpreter="python">
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
7 xena_import.py ${xenaInputData} $outfile
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
8 #if $source.metadataSource == "json"
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
9 --json ${source.xenaMetadata}
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
10 #else
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
11 --cohort "${source.cohort}" --type ${source.format.metadataType}
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
12 #if $source.format.metadataType == "genomicMatrix" or $source.format.metadataType == "clinicalMatrix":
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
13 #if $source.format.isCustom.dataSubType == "custom"
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
14 #if $source.format.isCustom.customSubType
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
15 --dataSubType "${source.format.isCustom.customSubType}"
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
16 #end if
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
17 #else
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
18 --dataSubType "${source.format.isCustom.dataSubType}"
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
19 #end if
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
20 #end if
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
21 #if $source.label
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
22 --label "${source.label}"
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
23 #else
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
24 --label "${xenaInputData.name}"
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
25 #end if
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
26 #end if
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
27 #if $colNormalization:
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
28 --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
29 #end if
0
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
30 </command>
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
31 <inputs>
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
32 <param format="data" type="data" name="xenaInputData" label="Data to import to Xena" optional="false"/>
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
33 <conditional name="source">
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
34 <param type="select" name="metadataSource" label="Metadata entry">
4
1707e82d55bc Tweaking the parameter labels for the xena import tool
melissacline
parents: 2
diff changeset
35 <option value="entry">Enter your own</option>
0
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
36 <option value="json">Specify json metadata file</option>
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
37 </param>
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
38 <when value="json">
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
39 <param format="data" type="data" name="xenaMetadata" label="Metadata file" optional="false"/>
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
40 </when>
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
41 <when value="entry">
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
42 <param format="str" type="text" name="cohort" label="Cohort" optional="false"/>
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
43 <conditional name="format">
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
44 <param type="select" name="metadataType" label="File Format">
4
1707e82d55bc Tweaking the parameter labels for the xena import tool
melissacline
parents: 2
diff changeset
45 <option value="genomicMatrix">Rows (Identifiers) by Columns (Samples) (often genomic data)</option>
1707e82d55bc Tweaking the parameter labels for the xena import tool
melissacline
parents: 2
diff changeset
46 <option value="clinicalMatrix">Rows (Samples) by Columns (Identifiers) (often clinical data)</option>
0
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
47 <option value="mutationVector">Mutation By Position</option>
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
48 </param>
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
49 <when value="genomicMatrix">
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
50 <conditional name="isCustom">
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
51 <param type="select" name="dataSubType" label="Type of data">
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
52 <option value="custom">Enter your own</option>
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
53 <option value="phenotype">phenotype</option>
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
54 <option value="copy number">copy number</option>
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
55 <option value="DNA methylation">DNA methylation</option>
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
56 <option value="exon expression">exon expression</option>
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
57 <option value="gene expression">gene expression</option>
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
58 <option value="gene expression RNAseq">gene expression RNAseq</option>
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
59 <option value="gene expression Array">gene expression Array</option>
5
c5b71ce5f7b1 Tweaking the xena import options - for a second time (grrr)
melissacline
parents: 2
diff changeset
60 <option value="mRNA expression">mRNA expression</option>
0
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
61 <option value="somatic mutation (SNP and small INDELs)">somatic mutation (SNP and small INDELs)</option>
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
62 <option value="somatic mutation (gene level)">somatic mutation (gene level)</option>
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
63 <option value="protein expression RPPA">protein expression RPPA</option>
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
64 <option value="PARADIGM pathway activity">PARADIGM pathway activity</option>
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
65 </param>
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
66 <when value="custom">
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
67 <param type="text" name="customSubType" label="Type of data" optional="true"/>
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
68 </when>
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
69 <when value="phenotype"/>
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
70 <when value="copy number"/>
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
71 <when value="DNA methylation"/>
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
72 <when value="exon expression"/>
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
73 <when value="gene expression"/>
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
74 <when value="gene expression RNAseq"/>
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
75 <when value="gene expression Array"/>
4
1707e82d55bc Tweaking the parameter labels for the xena import tool
melissacline
parents: 2
diff changeset
76 <when value="mRNA expression"/>
0
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
77 <when value="somatic mutation (SNP and small INDELs)"/>
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
78 <when value="somatic mutation (gene level)"/>
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
79 <when value="protein expression RPPA"/>
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
80 <when value="PARADIGM pathway activity"/>
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
81 </conditional>
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
82 </when>
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
83 <when value="clinicalMatrix">
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
84 <conditional name="isCustom">
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
85 <param type="select" name="dataSubType" label="Type of data">
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
86 <option value="custom">Enter your own</option>
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
87 <option value="phenotype">phenotype</option>
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
88 <option value="copy number">copy number</option>
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
89 <option value="DNA methylation">DNA methylation</option>
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
90 <option value="exon expression">exon expression</option>
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
91 <option value="gene expression">gene expression</option>
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
92 <option value="gene expression RNAseq">gene expression RNAseq</option>
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
93 <option value="gene expression Array">gene expression Array</option>
4
1707e82d55bc Tweaking the parameter labels for the xena import tool
melissacline
parents: 2
diff changeset
94 <option value="mRNA expression">mRNA expression</option>
0
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
95 <option value="somatic mutation (SNP and small INDELs)">somatic mutation (SNP and small INDELs)</option>
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
96 <option value="somatic mutation (gene level)">somatic mutation (gene level)</option>
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
97 <option value="protein expression RPPA">protein expression RPPA</option>
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
98 <option value="PARADIGM pathway activity">PARADIGM pathway activity</option>
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
99 </param>
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
100 <when value="custom">
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
101 <param type="text" name="customSubType" label="Type of data" optional="true"/>
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
102 </when>
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
103 <when value="phenotype"/>
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
104 <when value="copy number"/>
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
105 <when value="DNA methylation"/>
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
106 <when value="exon expression"/>
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
107 <when value="gene expression"/>
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
108 <when value="gene expression RNAseq"/>
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
109 <when value="gene expression Array"/>
4
1707e82d55bc Tweaking the parameter labels for the xena import tool
melissacline
parents: 2
diff changeset
110 <when value="mRNA expression"/>
0
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
111 <when value="somatic mutation (SNP and small INDELs)"/>
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
112 <when value="somatic mutation (gene level)"/>
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
113 <when value="protein expression RPPA"/>
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
114 <when value="PARADIGM pathway activity"/>
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
115 </conditional>
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
116 </when>
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
117 <when value="mutationVector"/>
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
118 </conditional>
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
119 <param type="text" name="label" label="Display Name (Optional)" optional="true"/>
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
120 </when>
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
121 </conditional>
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
122 <param type="boolean" name="colNormalization" label="Apply Column Normalization" checked="false"/>
0
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
123 </inputs>
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
124 <outputs>
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
125 <data format="txt" name="outfile"/>
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
126 </outputs>
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
127 <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
128 To Appear, soon...
0
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
129 </help>
8bb037f88ed2 Uploaded
melissacline
parents:
diff changeset
130 </tool>