Mercurial > repos > jjohnson > peptideshaker
comparison 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 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:8b99cb00e1c4 |
---|---|
1 <tool id="fasta_cli" name="FastaCLI" version="1.0"> | |
2 <description> | |
3 Appends decoy sequences to FASTA files | |
4 </description> | |
5 <macros> | |
6 <import>macros_basic.xml</import> | |
7 </macros> | |
8 <requirements> | |
9 <requirement type="package" version="@SEARCHGUI_VERSION@">searchgui</requirement> | |
10 <requirement type="package" version="3.0">zip</requirement> | |
11 </requirements> | |
12 <expand macro="stdio" /> | |
13 <command> | |
14 <![CDATA[ | |
15 | |
16 ## #set $temp_stderr = "searchgui_stderr" | |
17 #set $bin_dir = "bin" | |
18 | |
19 mkdir output; | |
20 cwd=`pwd`; | |
21 export HOME=\$cwd; | |
22 | |
23 ## echo the search engines to run | |
24 ##echo "$search_engines_options.engines"; | |
25 echo "DB: ${input_database.display_name} sequences: ${input_database.metadata.sequences}"; | |
26 | |
27 cp "${input_database}" input_database.fasta; | |
28 | |
29 ########################################### | |
30 #### Creating decoy database #### | |
31 ########################################### | |
32 | |
33 echo "Creating decoy database."; | |
34 searchgui eu.isas.searchgui.cmd.FastaCLI --exec_dir="\$cwd/${bin_dir}" -in input_database.fasta -decoy && | |
35 rm input_database.fasta; | |
36 echo "Decoy database:"; | |
37 echo "\$cwd/input_database_concatenated_target_decoy.fasta"; | |
38 | |
39 exit_code_for_galaxy=\$?; | |
40 ## cat $temp_stderr 2>&1; | |
41 (exit \$exit_code_for_galaxy) | |
42 ]]> | |
43 </command> | |
44 <inputs> | |
45 <param format="fasta" name="input_database" type="data" label="Protein Database" | |
46 help="Select FASTA database from history"/> | |
47 </inputs> | |
48 <outputs> | |
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}" /> | |
50 </outputs> | |
51 <tests> | |
52 <test> | |
53 <param name="input_database" value="searchgui_tinydb1.fasta" ftype="fasta"/> | |
54 <output name="input_database_concatenated_target_decoy" file="searchgui_tinydb1_concatenated_target_decoy.fasta" ftype="fasta" compare="sim_size" delta="1000" /> | |
55 </test> | |
56 </tests> | |
57 <help> | |
58 **What it does** | |
59 | |
60 Appends decoy sequences to FASTA files. | |
61 </help> | |
62 <expand macro="citations" /> | |
63 </tool> |