Mercurial > repos > proteore > proteore_id_converter
view id_converter.xml @ 18:5252bbcfbdd7 draft
planemo upload commit dc6d9d8f1808c4c6bcc42ac6861a8b811e4cee58-dirty
author | proteore |
---|---|
date | Fri, 10 May 2019 10:38:46 -0400 |
parents | 1e45ea50f145 |
children | 9d758344d36e |
line wrap: on
line source
<tool id="IDconverter" name="ID Converter" version="2019.05.10"> <description>(Human, Mouse, Rat) </description> <requirements> </requirements> <stdio> <exit_code range="1:" /> </stdio> <command><![CDATA[ python $__tool_directory__/id_converter.py --id_type="$species.idtypein" #if $input.ids == "text" --input="$input.txt" --input_type="list" #else --input="$input.file" --column_number="$input.ncol" --header="$input.header" --input_type="file" #end if --target_ids="$species.idto.idtypeout" --output="$output" #if "id_mapping" in str($species.mapping_file).split("/") --ref_file="$species.mapping_file" #else --ref_file="$__tool_directory__/$species.mapping_file" #end if ]]></command> <inputs> <conditional name="input" > <param name="ids" type="select" label="Enter IDs" help="Copy/paste or from a file (e.g. table)" > <option value="text">Copy/paste your identifiers</option> <option value="file" selected="true">Input file containing IDs</option> </param> <when value="text" > <param name="txt" type="text" label="Copy/paste IDs" help='IDs must be separated by tab, space or carriage return into the form field, for example: P31946 P62258' > <sanitizer invalid_char=""> <valid initial="string.printable"> <remove value="'"/> </valid> <mapping initial="none"> <add source="'" target="__sq__"/> <add source=" " target=""/> <add source="
" target=""/> <add source="
" target=""/> <add source="	" target=""/> </mapping> </sanitizer> </param> </when> <when value="file" > <param name="file" type="data" format="txt,tabular" label="Select your file" help="" /> <param name="header" type="boolean" checked="true" truevalue="true" falsevalue="false" label="Does file contain header?" /> <param name="ncol" type="text" value="c1" label="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'> <validator type="regex" message="Please enter a column number, for example: 'c1' for the first column">[c]{0,1}[0-9]+</validator> </param> </when> </conditional> <conditional name="species"> <param name="species" type="select" label="Species"> <option value="Human" selected="True">Human (Homo sapiens)</option> <option value="Mouse" selected="True">Mouse (Mus musculus)</option> <option value="Rat" selected="True">Rat (Rattus norvegicus)</option> </param> <when value="Human"> <param name="mapping_file" type="select" label="Release" > <options from_data_table="proteore_id_mapping_Human"> <filter type="sort_by" column="0"/> </options> </param> <param name="idtypein" type="select" label="Type/source of IDs" optional="false" > <option value="neXtProt" >neXtProt ID (e.g. NX_P31946)</option> <option value="UniProt-AC" selected="True" >UniProt accession number (e.g. P31946)</option> <option value="UniProt-ID" >UniProt ID (e.g 1433B_HUMAN)</option> <option value="GeneID" >Entrez gene ID (e.g. 7529)</option> <option value="RefSeq" >RefSeq (NCBI) protein (e.g. NP_003395.1)</option> <option value="GI" >GI (NCBI GI number) (e.g. 21328448)</option> <option value="PDB" >Protein DataBank ID (e.g. 2BR9:A)</option> <option value="GO" >GO terms (Gene Ontology) ID (e.g. GO:0070062)</option> <option value="PIR" >Protein Information Resource ID (e.g. S34755)</option> <option value="MIM" >OMIM (Online Mendelian Inheritance in Man database) ID (e.g: 601289)</option> <option value="UniGene" >Unigene ID (e.g. Hs.643544)</option> <option value="Ensembl_Gene" >Ensembl gene ID (e.g. ENSG00000166913)</option> <option value="Ensembl_Transcript" >Ensembl transcript ID (e.g. ENST00000353703)</option> <option value="Ensembl_Protein" >Ensembl protein ID (e.g. ENSP00000300161)</option> <option value="BioGrid" >BioGrid (e.g. 113361)</option> <option value="STRING" >STRING (e.g. 9606.ENSP00000300161)</option> <option value="KEGG" >KEGG gene id (e.g. hsa:7529)</option> </param> <section name="idto" title="Target type" expanded="True" > <param name="idtypeout" type="select" label="Target type of IDs you would like to map to" display="checkboxes" multiple="True" optional="false" > <option value="neXtProt" >neXtProt ID (e.g. NX_P31946)</option> <option value="UniProt-AC_reviewed" >UniProt accession number (e.g. P31946 - reviewed entries only)</option> <option value="UniProt-AC" >UniProt accession number (e.g. P31946 - reviewed and unreviewed entries)</option> <option value="UniProt-ID" >UniProt ID (e.g 1433B_HUMAN)</option> <option value="GeneID" >Entrez gene ID (e.g. 7529)</option> <option value="RefSeq" >RefSeq (NCBI) protein (e.g. NP_003395.1)</option> <option value="GI" >GI (NCBI GI number) (e.g. 21328448)</option> <option value="PDB" >Protein DataBank ID (e.g. 2BR9:A)</option> <option value="GO" >GOterms (Gene Ontology) ID (e.g. GO:0070062)</option> <option value="PIR" >Protein Information Resource ID (e.g. S34755)</option> <option value="MIM" >OMIM (Online Mendelian Inheritance in Man database) ID (e.g: 601289)</option> <option value="UniGene" >Unigene ID (e.g. Hs.643544)</option> <option value="Ensembl_Gene" >Ensembl gene ID (e.g. ENSG00000166913)</option> <option value="Ensembl_Transcript" >Ensembl transcript ID (e.g. ENST00000353703)</option> <option value="Ensembl_Protein" >Ensembl protein ID (e.g. ENSP00000300161)</option> <option value="BioGrid" >BioGrid (e.g. 113361)</option> <option value="STRING" >STRING (e.g. 9606.ENSP00000300161)</option> <option value="KEGG" >KEGG gene id (e.g. hsa:7529)</option> </param> </section> </when> <when value="Mouse"> <param name="mapping_file" type="select" label="Release" > <options from_data_table="proteore_id_mapping_Mouse"> <filter type="sort_by" column="0"/> </options> </param> <param name="idtypein" type="select" label="Type/source of IDs" optional="false" > <option value="UniProt-AC" selected="True" >UniProt accession number (e.g. P31946)</option> <option value="UniProt-ID" >UniProt ID (e.g 1433B_HUMAN)</option> <option value="GeneID" >Entrez gene ID (e.g. 7529)</option> <option value="RefSeq" >RefSeq (NCBI) protein (e.g. NP_003395.1)</option> <option value="GI" >GI (NCBI GI number) (e.g. 21328448)</option> <option value="PDB" >Protein DataBank ID (e.g. 2BR9:A)</option> <option value="GO" >GOterms (Gene Ontology) ID (e.g. GO:0070062)</option> <option value="PIR" >Protein Information Resource ID (e.g. S34755)</option> <option value="MIM" >OMIM (Online Mendelian Inheritance in Man database) ID (e.g: 601289)</option> <option value="UniGene" >Unigene ID (e.g. Hs.643544)</option> <option value="Ensembl_Gene" >Ensembl gene ID (e.g. ENSG00000166913)</option> <option value="Ensembl_Transcript" >Ensembl transcript ID (e.g. ENST00000353703)</option> <option value="Ensembl_Protein" >Ensembl protein ID (e.g. ENSP00000300161)</option> <option value="BioGrid" >BioGrid (e.g. 113361)</option> <option value="STRING" >STRING (e.g. 9606.ENSP00000300161)</option> <option value="KEGG" >KEGG gene id (e.g. hsa:7529)</option> </param> <section name="idto" title="Target type of IDs" expanded="True" > <param name="idtypeout" type="select" label="Target type of IDs you would like to map to" display="checkboxes" multiple="True" optional="false" > <option value="UniProt-AC_reviewed" >UniProt accession number (e.g. P31946 - reviewed entries only)</option> <option value="UniProt-AC" >UniProt accession number (e.g. P31946 - reviewed and unreviewed entries)</option> <option value="UniProt-ID" >UniProt ID (e.g 1433B_HUMAN)</option> <option value="GeneID" >Entrez gene ID (e.g. 7529)</option> <option value="RefSeq" >RefSeq (NCBI) protein (e.g. NP_003395.1)</option> <option value="GI" >GI (NCBI GI number) (e.g. 21328448)</option> <option value="PDB" >Protein DataBank ID (e.g. 2BR9:A)</option> <option value="GO" >GOterms (Gene Ontology) ID (e.g. GO:0070062)</option> <option value="PIR" >Protein Information Resource ID (e.g. S34755)</option> <option value="UniGene" >Unigene ID (e.g. Hs.643544)</option> <option value="Ensembl_Gene" >Ensembl gene ID (e.g. ENSG00000166913)</option> <option value="Ensembl_Transcript" >Ensembl transcript ID (e.g. ENST00000353703)</option> <option value="Ensembl_Protein" >Ensembl protein ID (e.g. ENSP00000300161)</option> <option value="BioGrid" >BioGrid (e.g. 113361)</option> <option value="STRING" >STRING (e.g. 9606.ENSP00000300161)</option> <option value="KEGG" >KEGG gene id (e.g. hsa:7529)</option> </param> </section> </when> <when value="Rat"> <param name="mapping_file" type="select" label="Release" > <options from_data_table="proteore_id_mapping_Rat"> <filter type="sort_by" column="0"/> </options> </param> <param name="idtypein" type="select" label="Select type/source of identifier of your list" optional="false" > <option value="UniProt-AC" selected="True" >UniProt accession number (e.g. P31946)</option> <option value="UniProt-ID" >UniProt ID (e.g 1433B_HUMAN)</option> <option value="GeneID" >Entrez gene ID (e.g. 7529)</option> <option value="RefSeq" >RefSeq (NCBI) protein (e.g. NP_003395.1)</option> <option value="GI" >GI (NCBI GI number) (e.g. 21328448)</option> <option value="PDB" >Protein DataBank ID (e.g. 2BR9:A)</option> <option value="GO" >GOterms (Gene Ontology) ID (e.g. GO:0070062)</option> <option value="PIR" >Protein Information Resource ID (e.g. S34755)</option> <option value="MIM" >OMIM (Online Mendelian Inheritance in Man database) ID (e.g: 601289)</option> <option value="UniGene" >Unigene ID (e.g. Hs.643544)</option> <option value="Ensembl_Gene" >Ensembl gene ID (e.g. ENSG00000166913)</option> <option value="Ensembl_Transcript" >Ensembl transcript ID (e.g. ENST00000353703)</option> <option value="Ensembl_Protein" >Ensembl protein ID (e.g. ENSP00000300161)</option> <option value="BioGrid" >BioGrid (e.g. 113361)</option> <option value="STRING" >STRING (e.g. 9606.ENSP00000300161)</option> <option value="KEGG" >KEGG gene id (e.g. hsa:7529)</option> </param> <section name="idto" title="Target type of IDs" expanded="True" > <param name="idtypeout" type="select" label="Target type of IDs you would like to map to" display="checkboxes" multiple="True" optional="false" > <option value="UniProt-AC_reviewed" >UniProt accession number (e.g. P31946 - reviewed entries only)</option> <option value="UniProt-AC" >UniProt accession number (e.g. P31946 - reviewed and unreviewed entries)</option> <option value="UniProt-ID" >UniProt ID (e.g 1433B_HUMAN)</option> <option value="GeneID" >Entrez gene ID (e.g. 7529)</option> <option value="RefSeq" >RefSeq (NCBI) protein (e.g. NP_003395.1)</option> <option value="GI" >GI (NCBI GI number) (e.g. 21328448)</option> <option value="PDB" >Protein DataBank ID (e.g. 2BR9:A)</option> <option value="GO" >GOterms (Gene Ontology) ID (e.g. GO:0070062)</option> <option value="PIR" >Protein Information Resource ID (e.g. S34755)</option> <option value="UniGene" >Unigene ID (e.g. Hs.643544)</option> <option value="Ensembl_Gene" >Ensembl gene ID (e.g. ENSG00000166913)</option> <option value="Ensembl_Transcript" >Ensembl transcript ID (e.g. ENST00000353703)</option> <option value="Ensembl_Protein" >Ensembl protein ID (e.g. ENSP00000300161)</option> <option value="BioGrid" >BioGrid (e.g. 113361)</option> <option value="STRING" >STRING (e.g. 9606.ENSP00000300161)</option> <option value="KEGG" >KEGG gene id (e.g. hsa:7529)</option> </param> </section> </when> </conditional> </inputs> <outputs> <data name="output" format="tsv" /> </outputs> <tests> <test> <conditional name="input" > <param name="ids" value="file"/> <param name="file" value="FKW_Lacombe_et_al_2017_OK.txt" /> <param name="header" value="true" /> <param name="ncol" value="c1"/> </conditional> <conditional name="species"> <param name="mapping_file" value="human_id_mapping"/> <param name="idtypein" value="UniProt-AC"/> <section name="idto"> <param name="idtypeout" value="neXtProt,UniProt-ID,GeneID,MIM,Ensembl" /> </section> </conditional> <output name="output" value="ID_Converted_FKW_Lacombe_et_al_2017_OK.txt" /> </test> </tests> <help><![CDATA[ **Description** This tool converts a list of identifiers (IDs) into another type of ID. Currently the conversion of IDs applies to the following three species: Human (homo sapiens, Mouse (Mus musculus), Rat (Rattus norvegicus). Supported source and target type of IDs are listed below. After choosing the type of your input IDs, you can select one or more types of ID you may need. ----- **Input** A list of IDs (entered in a copy/paste mode) or a single-column file, the tool will then return a file containing the mapped IDs. If your input is a multiple-column file, the mapped IDs column(s) will be added at the end of the input file. .. class:: warningmark Accession numbers with an hyphen ("-") that normally correspond to isoform are considered as similar to its canonical form. For example, "Q71U36-2" will be treated as "Q71U36". ----- **Parameters** Target type of IDs currently supported: * neXtProt ID (e.g. NX_P31946) * UniProt accession number (e.g. P31946 - reviewed entries only) * UniProt accession number (e.g. P31946 - reviewed and unreviewed entries) * UniProt ID (e.g 1433B_HUMAN) * Entrez gene ID (e.g. 7529) * RefSeq protein (NCBI) (e.g. NP_003395.1) * GI (NCBI GI number) (e.g. 21328448) * Protein DataBank ID (e.g. 2BR9:A) * GOterms (Gene Ontology) ID (e.g. GO:0070062) * Protein Information Resource ID (e.g. S34755) * OMIM (Online Mendelian Inheritance in Man database) ID (e.g: 601289) * Unigene ID (e.g. Hs.643544) * Ensembl gene ID (e.g. ENSG00000166913) * Ensembl transcript ID (e.g. ENST00000353703) * Ensembl protein ID (e.g. ENSP00000300161) * BioGrid (e.g. 113361) * STRING (e.g. 9606.ENSP00000300161) * KEGG gene id (e.g. hsa:7529) .. class:: warningmark Nextprot and OMIM only applicable to Human species. ----- **Output** A text file containing the selected type of IDs (in addition to the original column(s) provided) Please, note that a "NA" is returned when there is no match between a source ID and the corresponding target ID. ----- **Data sources (release date)** This tool converts human IDs using the following source files: - **HUMAN_9606_idmapping_selected.tab (Uniprot 23/10/2018)**: ftp://ftp.uniprot.org/pub/databases/uniprot/current_release/knowledgebase/idmapping/by_organism/ - **HUMAN_9606_idmapping.dat (Uniprot 23/10/18)**: ftp://ftp.uniprot.org/pub/databases/uniprot/current_release/knowledgebase/idmapping/by_organism/ - `Human uniprot-AC entries reviewed <https://www.uniprot.org/uniprot/?query=reviewed:yes+AND+organism:9606&format=list>`_. - **nextprot_ac_list_all.txt (Nextprot released on 10/10/2018)**: ftp://ftp.nextprot.org/pub/current_release/ac_lists/ - **MOUSE_10090_idmapping_selected.tab (Uniprot 23/10/2018)**: ftp://ftp.uniprot.org/pub/databases/uniprot/current_release/knowledgebase/idmapping/by_organism/ - **MOUSE_10090_idmapping.dat (Uniprot 23/10/18)**: ftp://ftp.uniprot.org/pub/databases/uniprot/current_release/knowledgebase/idmapping/by_organism/ - `Mouse uniprot-AC entries reviewed <https://www.uniprot.org/uniprot/?query=reviewed:yes+AND+organism:10090&format=list>`_. - **RAT_10116_idmapping.dat (Uniprot 23/10/18)**: ftp://ftp.uniprot.org/pub/databases/uniprot/current_release/knowledgebase/idmapping/by_organism/ - **RAT_10116_idmapping_selected.tab (Uniprot 23/10/18)**: ftp://ftp.uniprot.org/pub/databases/uniprot/current_release/knowledgebase/idmapping/by_organism/ - `Rat uniprot-AC entries reviewed <https://www.uniprot.org/uniprot/?query=reviewed:yes+AND+organism:10116&format=list>`_. ----- .. class:: infomark **Authors** David Christiany, T.P. Lien Nguyen, Florence Combes, Yves Vandenbrouck CEA, INSERM, CNRS, Grenoble-Alpes University, BIG Institute, FR Sandra Dérozier, Olivier Rué, Christophe Caron, Valentin Loux INRA, Paris-Saclay University, MAIAGE Unit, Migale Bioinformatics platform, FR This work has been partially funded through the French National Agency for Research (ANR) IFB project. Contact support@proteore.org for any questions or concerns about the Galaxy implementation of this tool. ]]></help> <citations> </citations> </tool>