comparison sort_by_tissue.xml @ 0:3155d867c056 draft default tip

planemo upload
author lnguyen
date Fri, 15 Sep 2017 11:04:37 -0400
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:3155d867c056
1 <tool id="biofilter" name="Sort your proteins by tissue expression profiles (From HPA)" version="0.1.0">
2 <description>selects/discards proteins according to their expression profiles (absence/presence) in a list of tissues/organs)
3 </description>
4 <requirements>
5 </requirements>
6 <stdio>
7 <exit_code range="1:" />
8 </stdio>
9 <command><![CDATA[
10 python $__tool_directory__/sort_by_tissue.py
11 --input
12 #if $input.ids == "text"
13 "$input.txt" "list"
14 #else if $input.ids == "file"
15 "$input.file" "file" "$input.header" "$input.ncol"
16 #end if
17 --hpa "$__tool_directory__/normal_tissue.csv"
18 -o "$hpa_output"
19 --tissues_del "$opt_del.tdel"
20 --trash "$trash_output"
21 --trash_file_detail "$trash_detail_output"
22 --na_file "$na_file"
23 #if $opt_keep.tkeep:
24 --tissues_keep "$opt_keep.tkeep"
25 #end if
26 ]]></command>
27 <inputs>
28 <conditional name="input" >
29 <param name="ids" type="select" label="Please provide your ENSG identifiers" help="Copy/paste or ID list from a file (e.g. table)" >
30 <option value="text">Copy/paste your identifiers</option>
31 <option value="file">Input file containing your identifiers</option>
32 </param>
33 <when value="text" >
34 <param name="txt" type="text" label="Copy/paste your identifiers" help='IDs must be separated by spaces into the form field, for example: P31946 P62258' >
35 <sanitizer>
36 <valid initial="string.printable">
37 <remove value="&apos;"/>
38 </valid>
39 <mapping initial="none">
40 <add source="&apos;" target="__sq__"/>
41 </mapping>
42 </sanitizer>
43 </param>
44 </when>
45 <when value="file" >
46 <param name="file" type="data" format="txt,tabular" label="Choose a file that contains your list of IDs" help="" />
47 <param name="header" type="boolean" checked="true" truevalue="true" falsevalue="false" label="Does your input file contain header?" />
48 <param name="ncol" type="text" label="The column number of ENSG IDs" help='For example, fill in "c1" if it is the first column, "c2" if it is the second column and so on' />
49 </when>
50 </conditional>
51 <section name="opt_del" title="Step 1: Eliminate from my list genes expressed in the following tissue(s)" expanded="True">
52 <param name="tdel" type="select" label="Eliminate from my list genes expressed in the following tissue(s)" multiple="True" display="checkboxes">
53 <option value="adrenal gland" >Adrenal gland</option>
54 <option value="appendix" >Appendix</option>
55 <option value="bone marrow" >Bone marrow</option>
56 <option value="breast" >Breast</option>
57 <option value="bronchus" >Bronchus</option>
58 <option value="caudate" >Caudate</option>
59 <option value="cerebellum" >Cerebellum</option>
60 <option value="cerebral cortex" >Cerebral cortex</option>
61 <option value="cervix" >Cervix</option>
62 <option value="colon" >Colon</option>
63 <option value="duodenum" >Duodenum</option>
64 <option value="endometrium 1" >Endometrium 1</option>
65 <option value="endometrium 2" >Endometrium 2</option>
66 <option value="epididymis" >Epididymis</option>
67 <option value="esophagus" >Esophagus</option>
68
69 <option value="fallopian tube" >Fallopian tube</option>
70 <option value="gallbladder" >Gallbladder</option>
71
72 <option value="heart muscle" >Heart muscle</option>
73 <option value="hippocampus" >Hippocampus</option>
74
75 <option value="kidney" >Kidney</option>
76
77 <option value="liver" >Liver</option>
78 <option value="lung" >Lung</option>
79 <option value="lymph node" >Lymph node</option>
80 <option value="nasopharynx" >Nasopharynx</option>
81 <option value="oral mucosa" >Oral mucosa</option>
82 <option value="ovary" >Ovary</option>
83 <option value="pancreas" >Pancreas</option>
84 <option value="parathyroid gland" >Parathyroid gland</option>
85
86 <option value="placenta" >Placenta</option>
87 <option value="prostate" >Prostate</option>
88 <option value="rectum" >Rectum</option>
89
90 <option value="salivary gland" >Salivary gland</option>
91 <option value="seminal vesicle" >Seminal vesicle</option>
92 <option value="skeletal muscle" >Skeletal muscle</option>
93 <option value="skin 1" >Skin 1</option>
94 <option value="skin 2" >Skin 2</option>
95
96 <option value="small intestine" >Small intestine</option>
97 <option value="smooth muscle" >Smooth muscle</option>
98 <option value="soft tissue 1" >Soft tissue 1</option>
99 <option value="soft tissue 2" >Soft tissue 2</option>
100 <option value="spleen" >Spleen</option>
101 <option value="stomach 1" >Stomach 1</option>
102 <option value="stomach 2" >Stomach 2</option>
103 <option value="testis" >Testis</option>
104 <option value="thyroid gland" >Thyroid gland</option>
105 <option value="tonsil" >Tonsil</option>
106 <option value="urinary bladder" >Urinary bladder</option>
107 <option value="vagina" >Vagina</option>
108 </param>
109 </section>
110 <section name="opt_keep" title="Step 2 (optional): Choose tissues where expressed genes need to be kept even if expressed in list of tissues in step 1" expanded="False">
111 <param name="tkeep" type="select" label="Choose tissues where expressed genes need to be kept even if expressed in list of tissues in step 1" multiple="True" optional="True" display="checkboxes" >
112 <option value="adrenal gland" >Adrenal gland</option>
113 <option value="appendix" >Appendix</option>
114 <option value="bone marrow" >Bone marrow</option>
115 <option value="breast" >Breast</option>
116 <option value="bronchus" >Bronchus</option>
117 <option value="caudate" >Caudate</option>
118 <option value="cerebellum" >Cerebellum</option>
119 <option value="cerebral cortex" >Cerebral cortex</option>
120 <option value="cervix" >Cervix</option>
121 <option value="colon" >Colon</option>
122 <option value="duodenum" >Duodenum</option>
123 <option value="endometrium 1" >Endometrium 1</option>
124 <option value="endometrium 2" >Endometrium 2</option>
125 <option value="epididymis" >Epididymis</option>
126 <option value="esophagus" >Esophagus</option>
127
128 <option value="fallopian tube" >Fallopian tube</option>
129 <option value="gallbladder" >Gallbladder</option>
130
131 <option value="heart muscle" >Heart muscle</option>
132 <option value="hippocampus" >Hippocampus</option>
133
134 <option value="kidney" >Kidney</option>
135
136 <option value="liver" >Liver</option>
137 <option value="lung" >Lung</option>
138 <option value="lymph node" >Lymph node</option>
139 <option value="nasopharynx" >Nasopharynx</option>
140 <option value="oral mucosa" >Oral mucosa</option>
141 <option value="ovary" >Ovary</option>
142 <option value="pancreas" >Pancreas</option>
143 <option value="parathyroid gland" >Parathyroid gland</option>
144
145 <option value="placenta" >Placenta</option>
146 <option value="prostate" >Prostate</option>
147 <option value="rectum" >Rectum</option>
148
149 <option value="salivary gland" >Salivary gland</option>
150 <option value="seminal vesicle" >Seminal vesicle</option>
151 <option value="skeletal muscle" >Skeletal muscle</option>
152 <option value="skin 1" >Skin 1</option>
153 <option value="skin 2" >Skin 2</option>
154
155 <option value="small intestine" >Small intestine</option>
156 <option value="smooth muscle" >Smooth muscle</option>
157 <option value="soft tissue 1" >Soft tissue 1</option>
158 <option value="soft tissue 2" >Soft tissue 2</option>
159 <option value="spleen" >Spleen</option>
160 <option value="stomach 1" >Stomach 1</option>
161 <option value="stomach 2" >Stomach 2</option>
162 <option value="testis" >Testis</option>
163 <option value="thyroid gland" >Thyroid gland</option>
164 <option value="tonsil" >Tonsil</option>
165 <option value="urinary bladder" >Urinary bladder</option>
166 <option value="vagina" >Vagina</option>
167 </param>
168 </section>
169 </inputs>
170 <outputs>
171 <data name="hpa_output" format="tabular" label="HPA selection" />
172 <data name="trash_detail_output" format="tabular" label="HPA information of excluded genes" />
173 <data name="trash_output" format="tabular" label="Excluded genes ID" />
174 <data name="na_file" format="tabular" label="Genes without tissues information" />
175 </outputs>
176 <tests>
177 <test>
178 <conditional name="input">
179 <param name="ids" value="file" />
180 <param name="file" value="IDs.txt" />
181 <param name="header" value="true" />
182 <param name="ncol" value="c3" />
183 </conditional>
184 <section name="opt_del">
185 <param name="tdel" value="salivary gland" />
186 </section>
187 <section name="opt_keep">
188 <param name="tkeep" value="lung" />
189 </section>
190 <output name="hpa_output" file="sort_by_tissue_output.txt" />
191 <output name="trash_detail_output" file="trash_detail_sort_by_tissue.txt" />
192 <output name="trash_output" file="trash_sort_by_tissue.txt" />
193 <output name="na_file" file="na_sort_by_tissue.txt" />
194 </test>
195 </tests>
196 <help><![CDATA[
197 This tool filters the proteins according to their tissue(s) of origin using Human Protein Atlas (http://www.proteinatlas.org/).
198
199 **Input**
200
201 This tool requires a list of ENSG IDs, by copy/paste into text field or choose from a file.
202
203 **Option**
204
205 Firstly, you can choose tissues in which genes expressed need to be eliminated. If among these eliminated genes, you want to keep genes expressed in some other tissues, you can choose these tissues in the second list.
206
207 For example, when you want to eliminate from input file the genes that are expressed in salivary, but among these genes, you want to keep the genes that are also expressed in lung:
208
209 * Step 1: choose salivary gland
210
211 * Step 2: choose lung
212
213 -----
214
215 .. class:: infomark
216
217 **Authors**
218
219 T.P. Lien Nguyen, Florence Combes, Yves Vandenbrouck CEA, INSERM, CNRS, Grenoble-Alpes University, BIG Institute, FR
220 Sandra Dérozier, Olivier Rué, Christophe Caron, Valentin Loux INRA, Paris-Saclay University, MAIAGE Unit, Migale Bioinformatics platform
221
222 This work has been partially funded through the French National Agency for Research (ANR) IFB project.
223
224 Contact support@proteore.org for any questions or concerns about the Galaxy implementation of this tool.
225
226 ]]></help>
227 <citations>
228 </citations>
229 </tool>