annotate id_converter.xml @ 0:02c549457875 draft default tip

planemo upload
author lnguyen
date Fri, 15 Sep 2017 06:02:03 -0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
02c549457875 planemo upload
lnguyen
parents:
diff changeset
1 <tool id="IDconverter" name="ID Converter" version="0.1.0">
02c549457875 planemo upload
lnguyen
parents:
diff changeset
2 <description>converts identifiers which are of a different type/source to another type of identifiers and create the identifier lists.
02c549457875 planemo upload
lnguyen
parents:
diff changeset
3 </description>
02c549457875 planemo upload
lnguyen
parents:
diff changeset
4 <requirements>
02c549457875 planemo upload
lnguyen
parents:
diff changeset
5 </requirements>
02c549457875 planemo upload
lnguyen
parents:
diff changeset
6 <stdio>
02c549457875 planemo upload
lnguyen
parents:
diff changeset
7 <exit_code range="1:" />
02c549457875 planemo upload
lnguyen
parents:
diff changeset
8 </stdio>
02c549457875 planemo upload
lnguyen
parents:
diff changeset
9 <command interpreter="Rscript">
02c549457875 planemo upload
lnguyen
parents:
diff changeset
10 id_converter_UniProt.R
02c549457875 planemo upload
lnguyen
parents:
diff changeset
11 "$idti.idtypein"
02c549457875 planemo upload
lnguyen
parents:
diff changeset
12 #if $input.ids == "text"
02c549457875 planemo upload
lnguyen
parents:
diff changeset
13 "$input.txt"
02c549457875 planemo upload
lnguyen
parents:
diff changeset
14 "list"
02c549457875 planemo upload
lnguyen
parents:
diff changeset
15 #else
02c549457875 planemo upload
lnguyen
parents:
diff changeset
16 "$input.file,$input.ncol,$input.header"
02c549457875 planemo upload
lnguyen
parents:
diff changeset
17 "file"
02c549457875 planemo upload
lnguyen
parents:
diff changeset
18 #end if
02c549457875 planemo upload
lnguyen
parents:
diff changeset
19 "$idto.idtypeout"
02c549457875 planemo upload
lnguyen
parents:
diff changeset
20 "$output"
02c549457875 planemo upload
lnguyen
parents:
diff changeset
21 $__tool_directory__/ID_mapping_Uniprot_HomoSapiens_20170809.txt
02c549457875 planemo upload
lnguyen
parents:
diff changeset
22 $__tool_directory__/Nextprot_Uniprot_id_mapping_file.txt
02c549457875 planemo upload
lnguyen
parents:
diff changeset
23
02c549457875 planemo upload
lnguyen
parents:
diff changeset
24 </command>
02c549457875 planemo upload
lnguyen
parents:
diff changeset
25 <inputs>
02c549457875 planemo upload
lnguyen
parents:
diff changeset
26 <conditional name="input" >
02c549457875 planemo upload
lnguyen
parents:
diff changeset
27 <param name="ids" type="select" label="Provide your identifiers" help="Copy/paste or ID list from a file (e.g. table)" >
02c549457875 planemo upload
lnguyen
parents:
diff changeset
28 <option value="text">Copy/paste your identifiers</option>
02c549457875 planemo upload
lnguyen
parents:
diff changeset
29 <option value="file">Input file containing your identifiers</option>
02c549457875 planemo upload
lnguyen
parents:
diff changeset
30 </param>
02c549457875 planemo upload
lnguyen
parents:
diff changeset
31 <when value="text" >
02c549457875 planemo upload
lnguyen
parents:
diff changeset
32 <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' >
02c549457875 planemo upload
lnguyen
parents:
diff changeset
33 <sanitizer>
02c549457875 planemo upload
lnguyen
parents:
diff changeset
34 <valid initial="string.printable">
02c549457875 planemo upload
lnguyen
parents:
diff changeset
35 <remove value="&apos;"/>
02c549457875 planemo upload
lnguyen
parents:
diff changeset
36 </valid>
02c549457875 planemo upload
lnguyen
parents:
diff changeset
37 <mapping initial="none">
02c549457875 planemo upload
lnguyen
parents:
diff changeset
38 <add source="&apos;" target="__sq__"/>
02c549457875 planemo upload
lnguyen
parents:
diff changeset
39 </mapping>
02c549457875 planemo upload
lnguyen
parents:
diff changeset
40 </sanitizer>
02c549457875 planemo upload
lnguyen
parents:
diff changeset
41 </param>
02c549457875 planemo upload
lnguyen
parents:
diff changeset
42 </when>
02c549457875 planemo upload
lnguyen
parents:
diff changeset
43 <when value="file" >
02c549457875 planemo upload
lnguyen
parents:
diff changeset
44 <param name="file" type="data" format="txt,tabular" label="Choose a file that contains your list of IDs" help="" />
02c549457875 planemo upload
lnguyen
parents:
diff changeset
45 <param name="header" type="boolean" checked="true" truevalue="true" falsevalue="false" label="Does your input file contain header?" />
02c549457875 planemo upload
lnguyen
parents:
diff changeset
46 <param name="ncol" type="text" label="The column number of IDs to map" help='For example, fill in "c1" if it is the first column, "c2" if it is the second column and so on' />
02c549457875 planemo upload
lnguyen
parents:
diff changeset
47 </when>
02c549457875 planemo upload
lnguyen
parents:
diff changeset
48 </conditional>
02c549457875 planemo upload
lnguyen
parents:
diff changeset
49 <conditional name="idti" >
02c549457875 planemo upload
lnguyen
parents:
diff changeset
50 <param name="idtypein" type="select" label="Select type/source of identifier of your list" >
02c549457875 planemo upload
lnguyen
parents:
diff changeset
51 <option value="neXtProt_ID" >neXtProt ID</option>
02c549457875 planemo upload
lnguyen
parents:
diff changeset
52 <option value="UNIPROT_AC" >Uniprot accession number</option>
02c549457875 planemo upload
lnguyen
parents:
diff changeset
53 <option value="UNIPROT_ID" >Uniprot ID</option>
02c549457875 planemo upload
lnguyen
parents:
diff changeset
54 <option value="GeneID_EntrezGene" >Entrez gene ID</option>
02c549457875 planemo upload
lnguyen
parents:
diff changeset
55 <option value="RefSeq" >RefSeq (NCBI) protein</option>
02c549457875 planemo upload
lnguyen
parents:
diff changeset
56 <option value="GI_number" >GI (NCBI GI number) ID assigned to each sequence record processed by NCBI</option>
02c549457875 planemo upload
lnguyen
parents:
diff changeset
57 <option value="PDB" >Protein DataBank ID</option>
02c549457875 planemo upload
lnguyen
parents:
diff changeset
58 <option value="GO_ID" >GOterms (Gene Ontology) ID</option>
02c549457875 planemo upload
lnguyen
parents:
diff changeset
59 <option value="PIR" >Protein Information Resource ID</option>
02c549457875 planemo upload
lnguyen
parents:
diff changeset
60 <option value="OMIM" >OMIM (Online Mendelian Inheritance in Man database) ID</option>
02c549457875 planemo upload
lnguyen
parents:
diff changeset
61 <option value="UniGene" >Unigene ID</option>
02c549457875 planemo upload
lnguyen
parents:
diff changeset
62 <option value="Ensembl.ENSG" >Ensembl gene ID</option>
02c549457875 planemo upload
lnguyen
parents:
diff changeset
63 <option value="Ensembl.ENST" >Ensembl transcript ID</option>
02c549457875 planemo upload
lnguyen
parents:
diff changeset
64 <option value="Ensembl.ENSP" >Ensembl protein ID</option>
02c549457875 planemo upload
lnguyen
parents:
diff changeset
65 </param>
02c549457875 planemo upload
lnguyen
parents:
diff changeset
66 <when value="neXtProt_ID" >
02c549457875 planemo upload
lnguyen
parents:
diff changeset
67 </when>
02c549457875 planemo upload
lnguyen
parents:
diff changeset
68 <when value="UNIPROT_AC" >
02c549457875 planemo upload
lnguyen
parents:
diff changeset
69 </when>
02c549457875 planemo upload
lnguyen
parents:
diff changeset
70 <when value="UNIPROT_ID" >
02c549457875 planemo upload
lnguyen
parents:
diff changeset
71 </when>
02c549457875 planemo upload
lnguyen
parents:
diff changeset
72 <when value="GeneID_EntrezGene" >
02c549457875 planemo upload
lnguyen
parents:
diff changeset
73 </when>
02c549457875 planemo upload
lnguyen
parents:
diff changeset
74 <when value="RefSeq" >
02c549457875 planemo upload
lnguyen
parents:
diff changeset
75 </when>
02c549457875 planemo upload
lnguyen
parents:
diff changeset
76 <when value="GI_number" >
02c549457875 planemo upload
lnguyen
parents:
diff changeset
77 </when>
02c549457875 planemo upload
lnguyen
parents:
diff changeset
78 <when value="PDB" >
02c549457875 planemo upload
lnguyen
parents:
diff changeset
79 </when>
02c549457875 planemo upload
lnguyen
parents:
diff changeset
80 <when value="GO_ID" >
02c549457875 planemo upload
lnguyen
parents:
diff changeset
81 </when>
02c549457875 planemo upload
lnguyen
parents:
diff changeset
82 <when value="PIR" >
02c549457875 planemo upload
lnguyen
parents:
diff changeset
83 </when>
02c549457875 planemo upload
lnguyen
parents:
diff changeset
84 <when value="OMIM" >
02c549457875 planemo upload
lnguyen
parents:
diff changeset
85 </when>
02c549457875 planemo upload
lnguyen
parents:
diff changeset
86 <when value="UniGene" >
02c549457875 planemo upload
lnguyen
parents:
diff changeset
87 </when>
02c549457875 planemo upload
lnguyen
parents:
diff changeset
88 <when value="Ensembl.ENSG" >
02c549457875 planemo upload
lnguyen
parents:
diff changeset
89 </when>
02c549457875 planemo upload
lnguyen
parents:
diff changeset
90 <when value="Ensembl.ENST" >
02c549457875 planemo upload
lnguyen
parents:
diff changeset
91 </when>
02c549457875 planemo upload
lnguyen
parents:
diff changeset
92 <when value="Ensembl.ENSP" >
02c549457875 planemo upload
lnguyen
parents:
diff changeset
93 </when>
02c549457875 planemo upload
lnguyen
parents:
diff changeset
94 </conditional>
02c549457875 planemo upload
lnguyen
parents:
diff changeset
95 <section name="idto" title="Target type of IDs" expanded="True" >
02c549457875 planemo upload
lnguyen
parents:
diff changeset
96 <param name="idtypeout" type="select" label="Target type of IDs you would like to map to" display="checkboxes" multiple="True" >
02c549457875 planemo upload
lnguyen
parents:
diff changeset
97 <option value="neXtProt_ID" >neXtProt ID</option>
02c549457875 planemo upload
lnguyen
parents:
diff changeset
98 <option value="UNIPROT_AC" >Uniprot accession number</option>
02c549457875 planemo upload
lnguyen
parents:
diff changeset
99 <option value="UNIPROT_ID" >Uniprot ID</option>
02c549457875 planemo upload
lnguyen
parents:
diff changeset
100 <option value="GeneID_EntrezGene" >Entrez gene ID</option>
02c549457875 planemo upload
lnguyen
parents:
diff changeset
101 <option value="RefSeq" >RefSeq (NCBI) protein</option>
02c549457875 planemo upload
lnguyen
parents:
diff changeset
102 <option value="GI_number" >GI (NCBI GI number) ID assigned to each sequence record processed by NCBI</option>
02c549457875 planemo upload
lnguyen
parents:
diff changeset
103 <option value="PDB" >Protein DataBank ID</option>
02c549457875 planemo upload
lnguyen
parents:
diff changeset
104 <option value="GO_ID" >GOterms (Gene Ontology) ID</option>
02c549457875 planemo upload
lnguyen
parents:
diff changeset
105 <option value="PIR" >Protein Information Resource ID</option>
02c549457875 planemo upload
lnguyen
parents:
diff changeset
106 <option value="OMIM" >OMIM (Online Mendelian Inheritance in Man database) ID</option>
02c549457875 planemo upload
lnguyen
parents:
diff changeset
107 <option value="UniGene" >Unigene ID</option>
02c549457875 planemo upload
lnguyen
parents:
diff changeset
108 <option value="Ensembl.ENSG" >Ensembl gene ID</option>
02c549457875 planemo upload
lnguyen
parents:
diff changeset
109 <option value="Ensembl.ENST" >Ensembl transcript ID</option>
02c549457875 planemo upload
lnguyen
parents:
diff changeset
110 <option value="Ensembl.ENSP" >Ensembl protein ID</option>
02c549457875 planemo upload
lnguyen
parents:
diff changeset
111 </param>
02c549457875 planemo upload
lnguyen
parents:
diff changeset
112 </section>
02c549457875 planemo upload
lnguyen
parents:
diff changeset
113 </inputs>
02c549457875 planemo upload
lnguyen
parents:
diff changeset
114 <outputs>
02c549457875 planemo upload
lnguyen
parents:
diff changeset
115 <data name="output" format="tabular" />
02c549457875 planemo upload
lnguyen
parents:
diff changeset
116 </outputs>
02c549457875 planemo upload
lnguyen
parents:
diff changeset
117 <tests>
02c549457875 planemo upload
lnguyen
parents:
diff changeset
118 <test>
02c549457875 planemo upload
lnguyen
parents:
diff changeset
119 <conditional name="input">
02c549457875 planemo upload
lnguyen
parents:
diff changeset
120 <param name="ids" value="file" />
02c549457875 planemo upload
lnguyen
parents:
diff changeset
121 <param name="file" value="UnipIDs.txt" />
02c549457875 planemo upload
lnguyen
parents:
diff changeset
122 <param name="header" value="false" />
02c549457875 planemo upload
lnguyen
parents:
diff changeset
123 <param name="ncol" value="c1" />
02c549457875 planemo upload
lnguyen
parents:
diff changeset
124 </conditional>
02c549457875 planemo upload
lnguyen
parents:
diff changeset
125 <conditional name="idti">
02c549457875 planemo upload
lnguyen
parents:
diff changeset
126 <param name="idtypein" value="UNIPROT_AC" />
02c549457875 planemo upload
lnguyen
parents:
diff changeset
127 </conditional>
02c549457875 planemo upload
lnguyen
parents:
diff changeset
128 <section name="idto">
02c549457875 planemo upload
lnguyen
parents:
diff changeset
129 <param name="idtypeout" value="Ensembl.ENSP,Ensembl.ENSG,neXtProt_ID" />
02c549457875 planemo upload
lnguyen
parents:
diff changeset
130 </section>
02c549457875 planemo upload
lnguyen
parents:
diff changeset
131 <output name="output" file="output.txt" />
02c549457875 planemo upload
lnguyen
parents:
diff changeset
132 </test>
02c549457875 planemo upload
lnguyen
parents:
diff changeset
133 </tests>
02c549457875 planemo upload
lnguyen
parents:
diff changeset
134 <help><![CDATA[
02c549457875 planemo upload
lnguyen
parents:
diff changeset
135 This tool converts a list of IDs to another identifier type, select the source and target type from the dropdown menus above (see below supported source and target types).
02c549457875 planemo upload
lnguyen
parents:
diff changeset
136
02c549457875 planemo upload
lnguyen
parents:
diff changeset
137 After choosing the type of input IDs, you can choose one or more types of IDs you would like to map to.
02c549457875 planemo upload
lnguyen
parents:
diff changeset
138
02c549457875 planemo upload
lnguyen
parents:
diff changeset
139 If your input is a list of IDs or a single-column file, the tool will return a file containing the mapped IDs.
02c549457875 planemo upload
lnguyen
parents:
diff changeset
140
02c549457875 planemo upload
lnguyen
parents:
diff changeset
141 If your input is a multiple-column file, the mapped IDs column(s) will be added at the end of the input file.
02c549457875 planemo upload
lnguyen
parents:
diff changeset
142
02c549457875 planemo upload
lnguyen
parents:
diff changeset
143 **Available databases**
02c549457875 planemo upload
lnguyen
parents:
diff changeset
144
02c549457875 planemo upload
lnguyen
parents:
diff changeset
145 * neXtProt ID
02c549457875 planemo upload
lnguyen
parents:
diff changeset
146
02c549457875 planemo upload
lnguyen
parents:
diff changeset
147 * Uniprot accession number
02c549457875 planemo upload
lnguyen
parents:
diff changeset
148
02c549457875 planemo upload
lnguyen
parents:
diff changeset
149 * Uniprot ID
02c549457875 planemo upload
lnguyen
parents:
diff changeset
150
02c549457875 planemo upload
lnguyen
parents:
diff changeset
151 * Entrez gene ID
02c549457875 planemo upload
lnguyen
parents:
diff changeset
152
02c549457875 planemo upload
lnguyen
parents:
diff changeset
153 * RefSeq (NCBI) protein
02c549457875 planemo upload
lnguyen
parents:
diff changeset
154
02c549457875 planemo upload
lnguyen
parents:
diff changeset
155 * GI (NCBI GI number) ID assigned to each sequence record processed by NCBI
02c549457875 planemo upload
lnguyen
parents:
diff changeset
156
02c549457875 planemo upload
lnguyen
parents:
diff changeset
157 * Protein DataBank ID
02c549457875 planemo upload
lnguyen
parents:
diff changeset
158
02c549457875 planemo upload
lnguyen
parents:
diff changeset
159 * GOterms (Gene Ontology) ID
02c549457875 planemo upload
lnguyen
parents:
diff changeset
160
02c549457875 planemo upload
lnguyen
parents:
diff changeset
161 * Protein Information Resource ID
02c549457875 planemo upload
lnguyen
parents:
diff changeset
162
02c549457875 planemo upload
lnguyen
parents:
diff changeset
163 * OMIM (Online Mendelian Inheritance in Man database) ID
02c549457875 planemo upload
lnguyen
parents:
diff changeset
164
02c549457875 planemo upload
lnguyen
parents:
diff changeset
165 * Unigene ID
02c549457875 planemo upload
lnguyen
parents:
diff changeset
166
02c549457875 planemo upload
lnguyen
parents:
diff changeset
167 * Ensembl gene ID
02c549457875 planemo upload
lnguyen
parents:
diff changeset
168
02c549457875 planemo upload
lnguyen
parents:
diff changeset
169 * Ensembl transcript ID
02c549457875 planemo upload
lnguyen
parents:
diff changeset
170
02c549457875 planemo upload
lnguyen
parents:
diff changeset
171 * Ensembl protein ID
02c549457875 planemo upload
lnguyen
parents:
diff changeset
172
02c549457875 planemo upload
lnguyen
parents:
diff changeset
173 -----
02c549457875 planemo upload
lnguyen
parents:
diff changeset
174
02c549457875 planemo upload
lnguyen
parents:
diff changeset
175 .. class:: infomark
02c549457875 planemo upload
lnguyen
parents:
diff changeset
176
02c549457875 planemo upload
lnguyen
parents:
diff changeset
177 **Authors**
02c549457875 planemo upload
lnguyen
parents:
diff changeset
178
02c549457875 planemo upload
lnguyen
parents:
diff changeset
179 T.P. Lien Nguyen, Florence Combes, Yves Vandenbrouck CEA, INSERM, CNRS, Grenoble-Alpes University, BIG Institute, FR
02c549457875 planemo upload
lnguyen
parents:
diff changeset
180 Sandra Dérozier, Olivier Rué, Christophe Caron, Valentin Loux INRA, Paris-Saclay University, MAIAGE Unit, Migale Bioinformatics platform
02c549457875 planemo upload
lnguyen
parents:
diff changeset
181
02c549457875 planemo upload
lnguyen
parents:
diff changeset
182 This work has been partially funded through the French National Agency for Research (ANR) IFB project.
02c549457875 planemo upload
lnguyen
parents:
diff changeset
183
02c549457875 planemo upload
lnguyen
parents:
diff changeset
184 Contact support@proteore.org for any questions or concerns about the Galaxy implementation of this tool.
02c549457875 planemo upload
lnguyen
parents:
diff changeset
185
02c549457875 planemo upload
lnguyen
parents:
diff changeset
186 ]]></help>
02c549457875 planemo upload
lnguyen
parents:
diff changeset
187 <citations>
02c549457875 planemo upload
lnguyen
parents:
diff changeset
188 </citations>
02c549457875 planemo upload
lnguyen
parents:
diff changeset
189 </tool>