annotate fasta_cli.xml @ 0:8b99cb00e1c4 draft

planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 3c83b8f8ca60d6399bc5dd7096b830ca1f1c457e-dirty
author jjohnson
date Tue, 15 May 2018 14:50:35 -0400
parents
children fa76abf69433
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
8b99cb00e1c4 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 3c83b8f8ca60d6399bc5dd7096b830ca1f1c457e-dirty
jjohnson
parents:
diff changeset
1 <tool id="fasta_cli" name="FastaCLI" version="1.0">
8b99cb00e1c4 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 3c83b8f8ca60d6399bc5dd7096b830ca1f1c457e-dirty
jjohnson
parents:
diff changeset
2 <description>
8b99cb00e1c4 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 3c83b8f8ca60d6399bc5dd7096b830ca1f1c457e-dirty
jjohnson
parents:
diff changeset
3 Appends decoy sequences to FASTA files
8b99cb00e1c4 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 3c83b8f8ca60d6399bc5dd7096b830ca1f1c457e-dirty
jjohnson
parents:
diff changeset
4 </description>
8b99cb00e1c4 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 3c83b8f8ca60d6399bc5dd7096b830ca1f1c457e-dirty
jjohnson
parents:
diff changeset
5 <macros>
8b99cb00e1c4 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 3c83b8f8ca60d6399bc5dd7096b830ca1f1c457e-dirty
jjohnson
parents:
diff changeset
6 <import>macros_basic.xml</import>
8b99cb00e1c4 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 3c83b8f8ca60d6399bc5dd7096b830ca1f1c457e-dirty
jjohnson
parents:
diff changeset
7 </macros>
8b99cb00e1c4 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 3c83b8f8ca60d6399bc5dd7096b830ca1f1c457e-dirty
jjohnson
parents:
diff changeset
8 <requirements>
8b99cb00e1c4 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 3c83b8f8ca60d6399bc5dd7096b830ca1f1c457e-dirty
jjohnson
parents:
diff changeset
9 <requirement type="package" version="@SEARCHGUI_VERSION@">searchgui</requirement>
8b99cb00e1c4 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 3c83b8f8ca60d6399bc5dd7096b830ca1f1c457e-dirty
jjohnson
parents:
diff changeset
10 <requirement type="package" version="3.0">zip</requirement>
8b99cb00e1c4 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 3c83b8f8ca60d6399bc5dd7096b830ca1f1c457e-dirty
jjohnson
parents:
diff changeset
11 </requirements>
8b99cb00e1c4 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 3c83b8f8ca60d6399bc5dd7096b830ca1f1c457e-dirty
jjohnson
parents:
diff changeset
12 <expand macro="stdio" />
8b99cb00e1c4 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 3c83b8f8ca60d6399bc5dd7096b830ca1f1c457e-dirty
jjohnson
parents:
diff changeset
13 <command>
8b99cb00e1c4 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 3c83b8f8ca60d6399bc5dd7096b830ca1f1c457e-dirty
jjohnson
parents:
diff changeset
14 <![CDATA[
8b99cb00e1c4 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 3c83b8f8ca60d6399bc5dd7096b830ca1f1c457e-dirty
jjohnson
parents:
diff changeset
15
8b99cb00e1c4 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 3c83b8f8ca60d6399bc5dd7096b830ca1f1c457e-dirty
jjohnson
parents:
diff changeset
16 ## #set $temp_stderr = "searchgui_stderr"
8b99cb00e1c4 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 3c83b8f8ca60d6399bc5dd7096b830ca1f1c457e-dirty
jjohnson
parents:
diff changeset
17 #set $bin_dir = "bin"
8b99cb00e1c4 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 3c83b8f8ca60d6399bc5dd7096b830ca1f1c457e-dirty
jjohnson
parents:
diff changeset
18
8b99cb00e1c4 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 3c83b8f8ca60d6399bc5dd7096b830ca1f1c457e-dirty
jjohnson
parents:
diff changeset
19 mkdir output;
8b99cb00e1c4 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 3c83b8f8ca60d6399bc5dd7096b830ca1f1c457e-dirty
jjohnson
parents:
diff changeset
20 cwd=`pwd`;
8b99cb00e1c4 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 3c83b8f8ca60d6399bc5dd7096b830ca1f1c457e-dirty
jjohnson
parents:
diff changeset
21 export HOME=\$cwd;
8b99cb00e1c4 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 3c83b8f8ca60d6399bc5dd7096b830ca1f1c457e-dirty
jjohnson
parents:
diff changeset
22
8b99cb00e1c4 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 3c83b8f8ca60d6399bc5dd7096b830ca1f1c457e-dirty
jjohnson
parents:
diff changeset
23 ## echo the search engines to run
8b99cb00e1c4 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 3c83b8f8ca60d6399bc5dd7096b830ca1f1c457e-dirty
jjohnson
parents:
diff changeset
24 ##echo "$search_engines_options.engines";
8b99cb00e1c4 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 3c83b8f8ca60d6399bc5dd7096b830ca1f1c457e-dirty
jjohnson
parents:
diff changeset
25 echo "DB: ${input_database.display_name} sequences: ${input_database.metadata.sequences}";
8b99cb00e1c4 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 3c83b8f8ca60d6399bc5dd7096b830ca1f1c457e-dirty
jjohnson
parents:
diff changeset
26
8b99cb00e1c4 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 3c83b8f8ca60d6399bc5dd7096b830ca1f1c457e-dirty
jjohnson
parents:
diff changeset
27 cp "${input_database}" input_database.fasta;
8b99cb00e1c4 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 3c83b8f8ca60d6399bc5dd7096b830ca1f1c457e-dirty
jjohnson
parents:
diff changeset
28
8b99cb00e1c4 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 3c83b8f8ca60d6399bc5dd7096b830ca1f1c457e-dirty
jjohnson
parents:
diff changeset
29 ###########################################
8b99cb00e1c4 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 3c83b8f8ca60d6399bc5dd7096b830ca1f1c457e-dirty
jjohnson
parents:
diff changeset
30 #### Creating decoy database ####
8b99cb00e1c4 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 3c83b8f8ca60d6399bc5dd7096b830ca1f1c457e-dirty
jjohnson
parents:
diff changeset
31 ###########################################
8b99cb00e1c4 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 3c83b8f8ca60d6399bc5dd7096b830ca1f1c457e-dirty
jjohnson
parents:
diff changeset
32
8b99cb00e1c4 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 3c83b8f8ca60d6399bc5dd7096b830ca1f1c457e-dirty
jjohnson
parents:
diff changeset
33 echo "Creating decoy database.";
8b99cb00e1c4 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 3c83b8f8ca60d6399bc5dd7096b830ca1f1c457e-dirty
jjohnson
parents:
diff changeset
34 searchgui eu.isas.searchgui.cmd.FastaCLI --exec_dir="\$cwd/${bin_dir}" -in input_database.fasta -decoy &&
8b99cb00e1c4 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 3c83b8f8ca60d6399bc5dd7096b830ca1f1c457e-dirty
jjohnson
parents:
diff changeset
35 rm input_database.fasta;
8b99cb00e1c4 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 3c83b8f8ca60d6399bc5dd7096b830ca1f1c457e-dirty
jjohnson
parents:
diff changeset
36 echo "Decoy database:";
8b99cb00e1c4 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 3c83b8f8ca60d6399bc5dd7096b830ca1f1c457e-dirty
jjohnson
parents:
diff changeset
37 echo "\$cwd/input_database_concatenated_target_decoy.fasta";
8b99cb00e1c4 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 3c83b8f8ca60d6399bc5dd7096b830ca1f1c457e-dirty
jjohnson
parents:
diff changeset
38
8b99cb00e1c4 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 3c83b8f8ca60d6399bc5dd7096b830ca1f1c457e-dirty
jjohnson
parents:
diff changeset
39 exit_code_for_galaxy=\$?;
8b99cb00e1c4 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 3c83b8f8ca60d6399bc5dd7096b830ca1f1c457e-dirty
jjohnson
parents:
diff changeset
40 ## cat $temp_stderr 2>&1;
8b99cb00e1c4 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 3c83b8f8ca60d6399bc5dd7096b830ca1f1c457e-dirty
jjohnson
parents:
diff changeset
41 (exit \$exit_code_for_galaxy)
8b99cb00e1c4 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 3c83b8f8ca60d6399bc5dd7096b830ca1f1c457e-dirty
jjohnson
parents:
diff changeset
42 ]]>
8b99cb00e1c4 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 3c83b8f8ca60d6399bc5dd7096b830ca1f1c457e-dirty
jjohnson
parents:
diff changeset
43 </command>
8b99cb00e1c4 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 3c83b8f8ca60d6399bc5dd7096b830ca1f1c457e-dirty
jjohnson
parents:
diff changeset
44 <inputs>
8b99cb00e1c4 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 3c83b8f8ca60d6399bc5dd7096b830ca1f1c457e-dirty
jjohnson
parents:
diff changeset
45 <param format="fasta" name="input_database" type="data" label="Protein Database"
8b99cb00e1c4 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 3c83b8f8ca60d6399bc5dd7096b830ca1f1c457e-dirty
jjohnson
parents:
diff changeset
46 help="Select FASTA database from history"/>
8b99cb00e1c4 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 3c83b8f8ca60d6399bc5dd7096b830ca1f1c457e-dirty
jjohnson
parents:
diff changeset
47 </inputs>
8b99cb00e1c4 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 3c83b8f8ca60d6399bc5dd7096b830ca1f1c457e-dirty
jjohnson
parents:
diff changeset
48 <outputs>
8b99cb00e1c4 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 3c83b8f8ca60d6399bc5dd7096b830ca1f1c457e-dirty
jjohnson
parents:
diff changeset
49 <data name="input_database_concatenated_target_decoy" format="fasta" from_work_dir="input_database_concatenated_target_decoy.fasta" label="${tool.name}: FASTA file with decoys on ${on_string}" />
8b99cb00e1c4 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 3c83b8f8ca60d6399bc5dd7096b830ca1f1c457e-dirty
jjohnson
parents:
diff changeset
50 </outputs>
8b99cb00e1c4 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 3c83b8f8ca60d6399bc5dd7096b830ca1f1c457e-dirty
jjohnson
parents:
diff changeset
51 <tests>
8b99cb00e1c4 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 3c83b8f8ca60d6399bc5dd7096b830ca1f1c457e-dirty
jjohnson
parents:
diff changeset
52 <test>
8b99cb00e1c4 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 3c83b8f8ca60d6399bc5dd7096b830ca1f1c457e-dirty
jjohnson
parents:
diff changeset
53 <param name="input_database" value="searchgui_tinydb1.fasta" ftype="fasta"/>
8b99cb00e1c4 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 3c83b8f8ca60d6399bc5dd7096b830ca1f1c457e-dirty
jjohnson
parents:
diff changeset
54 <output name="input_database_concatenated_target_decoy" file="searchgui_tinydb1_concatenated_target_decoy.fasta" ftype="fasta" compare="sim_size" delta="1000" />
8b99cb00e1c4 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 3c83b8f8ca60d6399bc5dd7096b830ca1f1c457e-dirty
jjohnson
parents:
diff changeset
55 </test>
8b99cb00e1c4 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 3c83b8f8ca60d6399bc5dd7096b830ca1f1c457e-dirty
jjohnson
parents:
diff changeset
56 </tests>
8b99cb00e1c4 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 3c83b8f8ca60d6399bc5dd7096b830ca1f1c457e-dirty
jjohnson
parents:
diff changeset
57 <help>
8b99cb00e1c4 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 3c83b8f8ca60d6399bc5dd7096b830ca1f1c457e-dirty
jjohnson
parents:
diff changeset
58 **What it does**
8b99cb00e1c4 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 3c83b8f8ca60d6399bc5dd7096b830ca1f1c457e-dirty
jjohnson
parents:
diff changeset
59
8b99cb00e1c4 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 3c83b8f8ca60d6399bc5dd7096b830ca1f1c457e-dirty
jjohnson
parents:
diff changeset
60 Appends decoy sequences to FASTA files.
8b99cb00e1c4 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 3c83b8f8ca60d6399bc5dd7096b830ca1f1c457e-dirty
jjohnson
parents:
diff changeset
61 </help>
8b99cb00e1c4 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 3c83b8f8ca60d6399bc5dd7096b830ca1f1c457e-dirty
jjohnson
parents:
diff changeset
62 <expand macro="citations" />
8b99cb00e1c4 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 3c83b8f8ca60d6399bc5dd7096b830ca1f1c457e-dirty
jjohnson
parents:
diff changeset
63 </tool>