annotate dbbuilder.xml @ 3:a38cd98a6b41 draft

Uploaded
author galaxyp
date Fri, 12 Jul 2013 12:57:50 -0400
parents 6c624803c5f9
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
6c624803c5f9 Update.
galaxyp
parents: 0
diff changeset
1 <tool id="dbbuilder" version="0.2.0" name="Protein Database Downloader">
0
487f80fb99ae Uploaded
galaxyp
parents:
diff changeset
2 <description>
487f80fb99ae Uploaded
galaxyp
parents:
diff changeset
3 </description>
487f80fb99ae Uploaded
galaxyp
parents:
diff changeset
4 <requirements>
487f80fb99ae Uploaded
galaxyp
parents:
diff changeset
5 <requirement type="binary">wget</requirement>
487f80fb99ae Uploaded
galaxyp
parents:
diff changeset
6 </requirements>
487f80fb99ae Uploaded
galaxyp
parents:
diff changeset
7 <stdio>
2
6c624803c5f9 Update.
galaxyp
parents: 0
diff changeset
8 <exit_code range="1:" level="fatal" description="Error downloading database." />
6c624803c5f9 Update.
galaxyp
parents: 0
diff changeset
9 <regex match="ERROR" level="fatal" source="stderr" description="Error downloading database." />
0
487f80fb99ae Uploaded
galaxyp
parents:
diff changeset
10 </stdio>
2
6c624803c5f9 Update.
galaxyp
parents: 0
diff changeset
11 <!-- TODO: escape quotes. -->
6c624803c5f9 Update.
galaxyp
parents: 0
diff changeset
12 <!-- Add NCBI and maxquant contaminants. -->
6c624803c5f9 Update.
galaxyp
parents: 0
diff changeset
13 <!-- http://maxquant.org/contaminants.zip -->
6c624803c5f9 Update.
galaxyp
parents: 0
diff changeset
14 <!-- ftp://ftp.ncbi.nih.gov/refseq/H_sapiens/mRNA_Prot/human.protein.faa.gz-->
0
487f80fb99ae Uploaded
galaxyp
parents:
diff changeset
15 <command>
487f80fb99ae Uploaded
galaxyp
parents:
diff changeset
16 #if $source.from == "uniprot"
2
6c624803c5f9 Update.
galaxyp
parents: 0
diff changeset
17 #set $url = "http://www.uniprot.org/uniprot/?query=taxonomy%3a%22" + str($source.taxon) + "%22" + str($source.set) + str($source.reviewed) + "&amp;force=yes&amp;format=fasta" + str($source.include_isoform)
6c624803c5f9 Update.
galaxyp
parents: 0
diff changeset
18 #set $type = "direct"
0
487f80fb99ae Uploaded
galaxyp
parents:
diff changeset
19 #elif $source.from == "cRAP"
487f80fb99ae Uploaded
galaxyp
parents:
diff changeset
20 #set $url = "ftp://ftp.thegpm.org/fasta/cRAP/crap.fasta"
2
6c624803c5f9 Update.
galaxyp
parents: 0
diff changeset
21 #set $type = "direct"
6c624803c5f9 Update.
galaxyp
parents: 0
diff changeset
22 #elif $source.from == "url"
6c624803c5f9 Update.
galaxyp
parents: 0
diff changeset
23 #set $url = $source.url
6c624803c5f9 Update.
galaxyp
parents: 0
diff changeset
24 #set $type = "direct"
0
487f80fb99ae Uploaded
galaxyp
parents:
diff changeset
25 #end if
2
6c624803c5f9 Update.
galaxyp
parents: 0
diff changeset
26 #if $type =="direct"
0
487f80fb99ae Uploaded
galaxyp
parents:
diff changeset
27 wget -nv '$url' -O '${output_database}'
2
6c624803c5f9 Update.
galaxyp
parents: 0
diff changeset
28 #end if
0
487f80fb99ae Uploaded
galaxyp
parents:
diff changeset
29 </command>
487f80fb99ae Uploaded
galaxyp
parents:
diff changeset
30 <inputs>
487f80fb99ae Uploaded
galaxyp
parents:
diff changeset
31 <conditional name="source">
3
a38cd98a6b41 Uploaded
galaxyp
parents: 2
diff changeset
32 <param name="from" type="select" label="Download from" help="select database source. cRAP acts as a database for common MS contaminants. UniProtKB is a corss species collection of functional protein databases">
0
487f80fb99ae Uploaded
galaxyp
parents:
diff changeset
33 <option value="uniprot">UniProtKB</option>
487f80fb99ae Uploaded
galaxyp
parents:
diff changeset
34 <option value="cRAP">cRAP (contaminants)</option>
2
6c624803c5f9 Update.
galaxyp
parents: 0
diff changeset
35 <option value="url">Custom URL</option>
0
487f80fb99ae Uploaded
galaxyp
parents:
diff changeset
36 </param>
487f80fb99ae Uploaded
galaxyp
parents:
diff changeset
37 <when value="uniprot">
3
a38cd98a6b41 Uploaded
galaxyp
parents: 2
diff changeset
38 <param name="taxon" type="select" format="text" help="select species for protein database">
0
487f80fb99ae Uploaded
galaxyp
parents:
diff changeset
39 <label>Taxonomy</label>
487f80fb99ae Uploaded
galaxyp
parents:
diff changeset
40 <options from_file="uniprot_taxons.loc">
487f80fb99ae Uploaded
galaxyp
parents:
diff changeset
41 <column name="name" index="0" />
487f80fb99ae Uploaded
galaxyp
parents:
diff changeset
42 <column name="value" index="1" />
487f80fb99ae Uploaded
galaxyp
parents:
diff changeset
43 </options>
487f80fb99ae Uploaded
galaxyp
parents:
diff changeset
44 </param>
3
a38cd98a6b41 Uploaded
galaxyp
parents: 2
diff changeset
45 <param name="reviewed" type="select" help="UniProtKB/TrEMBL (unreviewed)is a large, automatically annotated database- may contain redundant sequences, but there is a higher chance peptides will be identified. UniProtKB/Swiss-Prot (reviewed) is a smaller, manually annotated database- less of a chance peptides will be identified but less sequence redundancy">
2
6c624803c5f9 Update.
galaxyp
parents: 0
diff changeset
46 <option value="+">UniProtKB</option>
6c624803c5f9 Update.
galaxyp
parents: 0
diff changeset
47 <option value="+reviewed%3Ayes">UniProtKB/Swiss-Prot (reviewed only)</option>
6c624803c5f9 Update.
galaxyp
parents: 0
diff changeset
48 <option value="+reviewed%3Ano">UniProtKB/TrEMBL (unreviewed only)</option>
6c624803c5f9 Update.
galaxyp
parents: 0
diff changeset
49 <sanitizer>
6c624803c5f9 Update.
galaxyp
parents: 0
diff changeset
50 <valid>
6c624803c5f9 Update.
galaxyp
parents: 0
diff changeset
51 <add value="%"/>
6c624803c5f9 Update.
galaxyp
parents: 0
diff changeset
52 </valid>
6c624803c5f9 Update.
galaxyp
parents: 0
diff changeset
53 </sanitizer>
6c624803c5f9 Update.
galaxyp
parents: 0
diff changeset
54 </param>
6c624803c5f9 Update.
galaxyp
parents: 0
diff changeset
55 <param name="set" type="select" label="Proteome Set">
6c624803c5f9 Update.
galaxyp
parents: 0
diff changeset
56 <option value="+">Any</option>
6c624803c5f9 Update.
galaxyp
parents: 0
diff changeset
57 <option value="+keyword%3a1185" selected="true">Reference Proteome Set</option>
6c624803c5f9 Update.
galaxyp
parents: 0
diff changeset
58 <option value="+keyword%3a181">Complete Proteome Set</option>
6c624803c5f9 Update.
galaxyp
parents: 0
diff changeset
59 <sanitizer>
6c624803c5f9 Update.
galaxyp
parents: 0
diff changeset
60 <valid>
6c624803c5f9 Update.
galaxyp
parents: 0
diff changeset
61 <add value="%"/>
6c624803c5f9 Update.
galaxyp
parents: 0
diff changeset
62 </valid>
6c624803c5f9 Update.
galaxyp
parents: 0
diff changeset
63 </sanitizer>
6c624803c5f9 Update.
galaxyp
parents: 0
diff changeset
64 </param>
3
a38cd98a6b41 Uploaded
galaxyp
parents: 2
diff changeset
65 <param name="include_isoform" type="boolean" truevalue="&amp;include=yes" falsevalue="" label="Include isoform data" help="several different forms of a given protein are incorporated into database" />
0
487f80fb99ae Uploaded
galaxyp
parents:
diff changeset
66 </when>
2
6c624803c5f9 Update.
galaxyp
parents: 0
diff changeset
67 <when value="cRAP" />
6c624803c5f9 Update.
galaxyp
parents: 0
diff changeset
68 <when value="url">
6c624803c5f9 Update.
galaxyp
parents: 0
diff changeset
69 <param name="url" value="" type="text" label="URL (http, ftp)">
6c624803c5f9 Update.
galaxyp
parents: 0
diff changeset
70 <sanitizer>
6c624803c5f9 Update.
galaxyp
parents: 0
diff changeset
71 <valid>
6c624803c5f9 Update.
galaxyp
parents: 0
diff changeset
72 <add value="%"/>
6c624803c5f9 Update.
galaxyp
parents: 0
diff changeset
73 </valid>
6c624803c5f9 Update.
galaxyp
parents: 0
diff changeset
74 </sanitizer>
6c624803c5f9 Update.
galaxyp
parents: 0
diff changeset
75 </param>
6c624803c5f9 Update.
galaxyp
parents: 0
diff changeset
76 </when>
0
487f80fb99ae Uploaded
galaxyp
parents:
diff changeset
77 </conditional>
487f80fb99ae Uploaded
galaxyp
parents:
diff changeset
78 </inputs>
487f80fb99ae Uploaded
galaxyp
parents:
diff changeset
79 <outputs>
487f80fb99ae Uploaded
galaxyp
parents:
diff changeset
80 <data format="fasta" name="output_database" label="Protein Database" />
487f80fb99ae Uploaded
galaxyp
parents:
diff changeset
81 </outputs>
487f80fb99ae Uploaded
galaxyp
parents:
diff changeset
82 <help>
487f80fb99ae Uploaded
galaxyp
parents:
diff changeset
83 **Output**
487f80fb99ae Uploaded
galaxyp
parents:
diff changeset
84
3
a38cd98a6b41 Uploaded
galaxyp
parents: 2
diff changeset
85 Creates a FASTA file of specified protein sequences for comparison with experimental MS/MS data in search algorithm.
a38cd98a6b41 Uploaded
galaxyp
parents: 2
diff changeset
86
a38cd98a6b41 Uploaded
galaxyp
parents: 2
diff changeset
87 **External Links**
0
487f80fb99ae Uploaded
galaxyp
parents:
diff changeset
88
3
a38cd98a6b41 Uploaded
galaxyp
parents: 2
diff changeset
89 _Galaxy-P 101 shows usage Protein Database Downloader tool in the creation of a workflow
a38cd98a6b41 Uploaded
galaxyp
parents: 2
diff changeset
90 .. _Galaxy-P 101: http://msi-galaxy-p.readthedocs.org/en/latest/sections/galaxyp_101.html
a38cd98a6b41 Uploaded
galaxyp
parents: 2
diff changeset
91 _UniProtKB provides additional information about the UniProt Knowledgebase
a38cd98a6b41 Uploaded
galaxyp
parents: 2
diff changeset
92 .. _UniProtKB: http://www.uniprot.org/help/uniprotkb
0
487f80fb99ae Uploaded
galaxyp
parents:
diff changeset
93 </help>
487f80fb99ae Uploaded
galaxyp
parents:
diff changeset
94 </tool>
487f80fb99ae Uploaded
galaxyp
parents:
diff changeset
95