Mercurial > repos > jjohnson > peptideshaker
annotate fasta_cli.xml @ 1:fa76abf69433 draft
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit e09348a0c372d4355c5dda6519e52ff17e0e8621-dirty
author | jjohnson |
---|---|
date | Fri, 08 Jun 2018 15:58:53 -0400 |
parents | 8b99cb00e1c4 |
children |
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 #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
|
16 |
8b99cb00e1c4
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 3c83b8f8ca60d6399bc5dd7096b830ca1f1c457e-dirty
jjohnson
parents:
diff
changeset
|
17 mkdir output; |
8b99cb00e1c4
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 3c83b8f8ca60d6399bc5dd7096b830ca1f1c457e-dirty
jjohnson
parents:
diff
changeset
|
18 cwd=`pwd`; |
8b99cb00e1c4
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 3c83b8f8ca60d6399bc5dd7096b830ca1f1c457e-dirty
jjohnson
parents:
diff
changeset
|
19 |
1
fa76abf69433
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit e09348a0c372d4355c5dda6519e52ff17e0e8621-dirty
jjohnson
parents:
0
diff
changeset
|
20 echo 'DB: ${input_database.display_name} sequences: ${input_database.metadata.sequences}'; |
0
8b99cb00e1c4
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 3c83b8f8ca60d6399bc5dd7096b830ca1f1c457e-dirty
jjohnson
parents:
diff
changeset
|
21 |
1
fa76abf69433
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit e09348a0c372d4355c5dda6519e52ff17e0e8621-dirty
jjohnson
parents:
0
diff
changeset
|
22 cp '${input_database}' input_database.fasta; |
0
8b99cb00e1c4
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 3c83b8f8ca60d6399bc5dd7096b830ca1f1c457e-dirty
jjohnson
parents:
diff
changeset
|
23 |
8b99cb00e1c4
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 3c83b8f8ca60d6399bc5dd7096b830ca1f1c457e-dirty
jjohnson
parents:
diff
changeset
|
24 ########################################### |
8b99cb00e1c4
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 3c83b8f8ca60d6399bc5dd7096b830ca1f1c457e-dirty
jjohnson
parents:
diff
changeset
|
25 #### 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
|
26 ########################################### |
8b99cb00e1c4
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 3c83b8f8ca60d6399bc5dd7096b830ca1f1c457e-dirty
jjohnson
parents:
diff
changeset
|
27 |
1
fa76abf69433
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit e09348a0c372d4355c5dda6519e52ff17e0e8621-dirty
jjohnson
parents:
0
diff
changeset
|
28 echo 'Creating decoy database.'; |
fa76abf69433
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit e09348a0c372d4355c5dda6519e52ff17e0e8621-dirty
jjohnson
parents:
0
diff
changeset
|
29 searchgui eu.isas.searchgui.cmd.FastaCLI --exec_dir='./bin/' -in input_database.fasta -decoy && |
0
8b99cb00e1c4
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 3c83b8f8ca60d6399bc5dd7096b830ca1f1c457e-dirty
jjohnson
parents:
diff
changeset
|
30 rm input_database.fasta; |
1
fa76abf69433
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit e09348a0c372d4355c5dda6519e52ff17e0e8621-dirty
jjohnson
parents:
0
diff
changeset
|
31 echo 'Decoy database:'; |
fa76abf69433
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit e09348a0c372d4355c5dda6519e52ff17e0e8621-dirty
jjohnson
parents:
0
diff
changeset
|
32 echo '\$cwd/input_database_concatenated_target_decoy.fasta'; |
fa76abf69433
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit e09348a0c372d4355c5dda6519e52ff17e0e8621-dirty
jjohnson
parents:
0
diff
changeset
|
33 echo "new fasta"; |
fa76abf69433
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit e09348a0c372d4355c5dda6519e52ff17e0e8621-dirty
jjohnson
parents:
0
diff
changeset
|
34 echo './input_database_concatenated_target_decoy.fasta'; |
0
8b99cb00e1c4
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 3c83b8f8ca60d6399bc5dd7096b830ca1f1c457e-dirty
jjohnson
parents:
diff
changeset
|
35 |
8b99cb00e1c4
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 3c83b8f8ca60d6399bc5dd7096b830ca1f1c457e-dirty
jjohnson
parents:
diff
changeset
|
36 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
|
37 (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
|
38 ]]> |
8b99cb00e1c4
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 3c83b8f8ca60d6399bc5dd7096b830ca1f1c457e-dirty
jjohnson
parents:
diff
changeset
|
39 </command> |
8b99cb00e1c4
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 3c83b8f8ca60d6399bc5dd7096b830ca1f1c457e-dirty
jjohnson
parents:
diff
changeset
|
40 <inputs> |
8b99cb00e1c4
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 3c83b8f8ca60d6399bc5dd7096b830ca1f1c457e-dirty
jjohnson
parents:
diff
changeset
|
41 <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
|
42 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
|
43 </inputs> |
8b99cb00e1c4
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 3c83b8f8ca60d6399bc5dd7096b830ca1f1c457e-dirty
jjohnson
parents:
diff
changeset
|
44 <outputs> |
8b99cb00e1c4
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 3c83b8f8ca60d6399bc5dd7096b830ca1f1c457e-dirty
jjohnson
parents:
diff
changeset
|
45 <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
|
46 </outputs> |
8b99cb00e1c4
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 3c83b8f8ca60d6399bc5dd7096b830ca1f1c457e-dirty
jjohnson
parents:
diff
changeset
|
47 <tests> |
8b99cb00e1c4
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 3c83b8f8ca60d6399bc5dd7096b830ca1f1c457e-dirty
jjohnson
parents:
diff
changeset
|
48 <test> |
8b99cb00e1c4
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 3c83b8f8ca60d6399bc5dd7096b830ca1f1c457e-dirty
jjohnson
parents:
diff
changeset
|
49 <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
|
50 <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
|
51 </test> |
8b99cb00e1c4
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 3c83b8f8ca60d6399bc5dd7096b830ca1f1c457e-dirty
jjohnson
parents:
diff
changeset
|
52 </tests> |
8b99cb00e1c4
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 3c83b8f8ca60d6399bc5dd7096b830ca1f1c457e-dirty
jjohnson
parents:
diff
changeset
|
53 <help> |
8b99cb00e1c4
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 3c83b8f8ca60d6399bc5dd7096b830ca1f1c457e-dirty
jjohnson
parents:
diff
changeset
|
54 **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
|
55 |
1
fa76abf69433
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit e09348a0c372d4355c5dda6519e52ff17e0e8621-dirty
jjohnson
parents:
0
diff
changeset
|
56 Appends decoy sequences to FASTA files adding to the accessions (as a suffix) "_REVERSED". |
fa76abf69433
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit e09348a0c372d4355c5dda6519e52ff17e0e8621-dirty
jjohnson
parents:
0
diff
changeset
|
57 This format is adequated to be used by SearchGUI and PeptideShaker tools. |
0
8b99cb00e1c4
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 3c83b8f8ca60d6399bc5dd7096b830ca1f1c457e-dirty
jjohnson
parents:
diff
changeset
|
58 </help> |
8b99cb00e1c4
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 3c83b8f8ca60d6399bc5dd7096b830ca1f1c457e-dirty
jjohnson
parents:
diff
changeset
|
59 <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
|
60 </tool> |