Mercurial > repos > proteore > proteore_id_converter
comparison id_converter.xml @ 16:b6607b7e683f draft
planemo upload commit f2b3d1ff6bea930b2ce32c009e4d3de39a17edfb-dirty
author | proteore |
---|---|
date | Mon, 28 Jan 2019 11:08:47 -0500 |
parents | b50d913ec067 |
children | 1e45ea50f145 |
comparison
equal
deleted
inserted
replaced
15:b50d913ec067 | 16:b6607b7e683f |
---|---|
1 <tool id="IDconverter" name="ID Converter" version="2018.12.18"> | 1 <tool id="IDconverter" name="ID Converter" version="2019.01.28"> |
2 <description>(Human, Mouse, Rat) | 2 <description>(Human, Mouse, Rat) |
3 </description> | 3 </description> |
4 <requirements> | 4 <requirements> |
5 <requirement type="package" version="3.4.1">R</requirement> | |
6 </requirements> | 5 </requirements> |
7 <stdio> | 6 <stdio> |
8 <exit_code range="1:" /> | 7 <exit_code range="1:" /> |
9 </stdio> | 8 </stdio> |
10 <command interpreter="Rscript"> | 9 <command><![CDATA[ |
11 $__tool_directory__/id_converter.R | 10 python $__tool_directory__/id_converter.py |
12 --id_type="$species.idtypein" | 11 --id_type="$species.idtypein" |
13 #if $input.ids == "text" | 12 #if $input.ids == "text" |
14 --input="$input.txt" | 13 --input="$input.txt" |
15 --input_type="list" | 14 --input_type="list" |
16 #else | 15 #else |
19 --header="$input.header" | 18 --header="$input.header" |
20 --input_type="file" | 19 --input_type="file" |
21 #end if | 20 #end if |
22 --target_ids="$species.idto.idtypeout" | 21 --target_ids="$species.idto.idtypeout" |
23 --output="$output" | 22 --output="$output" |
24 --ref_file="$__tool_directory__/${ filter( lambda x: str( x[0] ) == str( $species.mapping_file ), $__app__.tool_data_tables['proteore_id_mapping'].get_fields() )[0][-1] }" | 23 --ref_file="$__tool_directory__/${ filter( lambda x: str( x[2] ) == str( $species.mapping_file ), $__app__.tool_data_tables['proteore_id_mapping'].get_fields() )[0][-1] }" |
25 | 24 |
26 </command> | 25 ]]></command> |
27 <inputs> | 26 <inputs> |
28 <conditional name="input" > | 27 <conditional name="input" > |
29 <param name="ids" type="select" label="Enter IDs" help="Copy/paste or from a file (e.g. table)" > | 28 <param name="ids" type="select" label="Enter IDs" help="Copy/paste or from a file (e.g. table)" > |
30 <option value="text">Copy/paste your identifiers</option> | 29 <option value="text">Copy/paste your identifiers</option> |
31 <option value="file" selected="true">Input file containing IDs</option> | 30 <option value="file" selected="true">Input file containing IDs</option> |
53 </when> | 52 </when> |
54 </conditional> | 53 </conditional> |
55 <conditional name="species"> | 54 <conditional name="species"> |
56 <param name="mapping_file" type="select" label="Species" > | 55 <param name="mapping_file" type="select" label="Species" > |
57 <options from_data_table="proteore_id_mapping"/> | 56 <options from_data_table="proteore_id_mapping"/> |
58 <option value="human_id_mapping"></option> | 57 <option value="Human"></option> |
59 <option value="mouse_id_mapping"></option> | 58 <option value="Mouse"></option> |
60 <option value="rat_id_mapping"></option> | 59 <option value="Rat"></option> |
61 </param> | 60 </param> |
62 <when value="human_id_mapping"> | 61 <when value="Human"> |
63 <param name="idtypein" type="select" label="Type/source of IDs" optional="false" > | 62 <param name="idtypein" type="select" label="Type/source of IDs" optional="false" > |
64 <option value="neXtProt" >neXtProt ID (e.g. NX_P31946)</option> | 63 <option value="neXtProt" >neXtProt ID (e.g. NX_P31946)</option> |
65 <option value="UniProt-AC" selected="True" >UniProt accession number (e.g. P31946)</option> | 64 <option value="UniProt-AC" selected="True" >UniProt accession number (e.g. P31946)</option> |
66 <option value="UniProt-ID" >UniProt ID (e.g 1433B_HUMAN)</option> | 65 <option value="UniProt-ID" >UniProt ID (e.g 1433B_HUMAN)</option> |
67 <option value="GeneID" >Entrez gene ID (e.g. 7529)</option> | 66 <option value="GeneID" >Entrez gene ID (e.g. 7529)</option> |
99 <option value="STRING" >STRING (e.g. 9606.ENSP00000300161)</option> | 98 <option value="STRING" >STRING (e.g. 9606.ENSP00000300161)</option> |
100 <option value="KEGG" >KEGG gene id (e.g. hsa:7529)</option> | 99 <option value="KEGG" >KEGG gene id (e.g. hsa:7529)</option> |
101 </param> | 100 </param> |
102 </section> | 101 </section> |
103 </when> | 102 </when> |
104 <when value="mouse_id_mapping"> | 103 <when value="Mouse"> |
105 <param name="idtypein" type="select" label="Type/source of IDs" optional="false" > | 104 <param name="idtypein" type="select" label="Type/source of IDs" optional="false" > |
106 <option value="UniProt-AC" selected="True" >UniProt accession number (e.g. P31946)</option> | 105 <option value="UniProt-AC" selected="True" >UniProt accession number (e.g. P31946)</option> |
107 <option value="UniProt-ID" >UniProt ID (e.g 1433B_HUMAN)</option> | 106 <option value="UniProt-ID" >UniProt ID (e.g 1433B_HUMAN)</option> |
108 <option value="GeneID" >Entrez gene ID (e.g. 7529)</option> | 107 <option value="GeneID" >Entrez gene ID (e.g. 7529)</option> |
109 <option value="RefSeq" >RefSeq (NCBI) protein (e.g. NP_003395.1)</option> | 108 <option value="RefSeq" >RefSeq (NCBI) protein (e.g. NP_003395.1)</option> |
138 <option value="STRING" >STRING (e.g. 9606.ENSP00000300161)</option> | 137 <option value="STRING" >STRING (e.g. 9606.ENSP00000300161)</option> |
139 <option value="KEGG" >KEGG gene id (e.g. hsa:7529)</option> | 138 <option value="KEGG" >KEGG gene id (e.g. hsa:7529)</option> |
140 </param> | 139 </param> |
141 </section> | 140 </section> |
142 </when> | 141 </when> |
143 <when value="rat_id_mapping"> | 142 <when value="Rat"> |
144 <param name="idtypein" type="select" label="Select type/source of identifier of your list" optional="false" > | 143 <param name="idtypein" type="select" label="Select type/source of identifier of your list" optional="false" > |
145 <option value="UniProt-AC" selected="True" >UniProt accession number (e.g. P31946)</option> | 144 <option value="UniProt-AC" selected="True" >UniProt accession number (e.g. P31946)</option> |
146 <option value="UniProt-ID" >UniProt ID (e.g 1433B_HUMAN)</option> | 145 <option value="UniProt-ID" >UniProt ID (e.g 1433B_HUMAN)</option> |
147 <option value="GeneID" >Entrez gene ID (e.g. 7529)</option> | 146 <option value="GeneID" >Entrez gene ID (e.g. 7529)</option> |
148 <option value="RefSeq" >RefSeq (NCBI) protein (e.g. NP_003395.1)</option> | 147 <option value="RefSeq" >RefSeq (NCBI) protein (e.g. NP_003395.1)</option> |