Mercurial > repos > devteam > ncbi_blast_plus
comparison tools/ncbi_blast_plus/ncbi_blastdbcmd_wrapper.xml @ 22:6f386c5dc4fb draft
v0.2.01 add -max_hsps, -use_sw_tback; lists args; internal updates
author | peterjc |
---|---|
date | Mon, 18 Sep 2017 06:21:27 -0400 |
parents | 7538e2bfcd41 |
children | 31e517610e1f |
comparison
equal
deleted
inserted
replaced
21:7538e2bfcd41 | 22:6f386c5dc4fb |
---|---|
3 <macros> | 3 <macros> |
4 <token name="@BINARY@">blastdbcmd</token> | 4 <token name="@BINARY@">blastdbcmd</token> |
5 <import>ncbi_macros.xml</import> | 5 <import>ncbi_macros.xml</import> |
6 </macros> | 6 </macros> |
7 <expand macro="preamble" /> | 7 <expand macro="preamble" /> |
8 <command> | 8 <command detect_errors="aggressive" strict="true"> |
9 ## The command is a Cheetah template which allows some Python based syntax. | 9 ## The command is a Cheetah template which allows some Python based syntax. |
10 ## Lines starting hash hash are comments. Galaxy will turn newlines into spaces | 10 ## Lines starting hash hash are comments. Galaxy will turn newlines into spaces |
11 blastdbcmd -dbtype $db_opts.db_type -db "${db_opts.database.fields.path}" | 11 blastdbcmd -dbtype $db_opts.db_type -db "${db_opts.database.fields.path}" |
12 | 12 |
13 ##TODO: What about -ctrl_a and -target_only as advanced options? | 13 ##TODO: What about -ctrl_a and -target_only as advanced options? |
14 | 14 |
15 #if $id_opts.id_type=="file": | 15 #if $id_opts.id_type=="file": |
16 -entry_batch "$id_opts.entries" | 16 -entry_batch '$id_opts.entries' |
17 #else: | 17 #else: |
18 ##Perform some simple search/replaces to remove whitespace | 18 ##Perform some simple search/replaces to remove whitespace |
19 ##and make it comma separated. Quoted so don't escape pipes. | 19 ##and make it comma separated. Quoted so don't escape pipes. |
20 -entry "$id_opts.entries.replace('\r',',').replace('\n',',').replace(' ','').replace(',,',',').replace(',,',',').strip(',')" | 20 -entry "$id_opts.entries.replace('\r',',').replace('\n',',').replace(' ','').replace(',,',',').replace(',,',',').strip(',')" |
21 #end if | 21 #end if |
38 ## | 38 ## |
39 ##We remove the NCBI's lcl|... or gnl|BL_ORD_ID|123 prefixes | 39 ##We remove the NCBI's lcl|... or gnl|BL_ORD_ID|123 prefixes |
40 ##using sed, however the exact syntax differs for Mac OS X's sed | 40 ##using sed, however the exact syntax differs for Mac OS X's sed |
41 | 41 |
42 #if str($outfmt)=="blastid": | 42 #if str($outfmt)=="blastid": |
43 -out "$seq" | 43 -out '$seq' |
44 #else if sys.platform == "darwin": | 44 #else if sys.platform == "darwin": |
45 | sed -E 's/^>(lcl\||gnl\|BL_ORD_ID\|[0-9]* )/>/1' > "$seq" | 45 | sed -E 's/^>(lcl\||gnl\|BL_ORD_ID\|[0-9]* )/>/1' > "$seq" |
46 #else: | 46 #else: |
47 | sed 's/>\(lcl|\|gnl|BL_ORD_ID|[0-9]* \)/>/1' > "$seq" | 47 | sed 's/>\(lcl|\|gnl|BL_ORD_ID|[0-9]* \)/>/1' > "$seq" |
48 #end if | 48 #end if |
49 </command> | 49 </command> |
50 <inputs> | 50 <inputs> |
51 <expand macro="input_conditional_choose_db_type" /> | 51 <expand macro="input_conditional_choose_db_type" /> |
52 <conditional name="id_opts"> | 52 <conditional name="id_opts"> |
53 <param name="id_type" type="select" label="Type of identifier list"> | 53 <param name="id_type" type="select" label="Type of identifier list"> |
54 <option value="file">From file</option> | 54 <option value="file">From file</option> |
55 <option value="prompt">User entered</option> | 55 <option value="prompt">User entered</option> |
56 </param> | 56 </param> |
57 <when value="file"> | 57 <when value="file"> |
58 <param name="entries" type="data" format="txt,tabular" label="Sequence identifier(s)" help="Plain text file with one ID per line (i.e. single column tabular file)"/> | 58 <param name="entries" argument="-entry_batch" type="data" format="txt,tabular" label="Sequence identifier(s)" help="Plain text file with one ID per line (i.e. single column tabular file)"/> |
59 </when> | 59 </when> |
60 <when value="prompt"> | 60 <when value="prompt"> |
61 <param name="entries" type="text" label="Sequence identifier(s)" help="Comma or new line separated list." optional="False" area="True" size="10x30"/> | 61 <param name="entries" argument="-entry" type="text" optional="false" area="true" size="10x30" label="Sequence identifier(s)" help="Comma or new line separated list"/> |
62 </when> | 62 </when> |
63 </conditional> | 63 </conditional> |
64 <param name="outfmt" type="select" label="Output format"> | 64 <param name="outfmt" type="select" label="Output format"> |
65 <option value="original">FASTA with original identifiers</option> | 65 <option value="original">FASTA with original identifiers</option> |
66 <option value="blastid">FASTA with BLAST assigned identifiers</option> | 66 <option value="blastid">FASTA with BLAST assigned identifiers</option> |
103 <param name="outfmt" value="original" /> | 103 <param name="outfmt" value="original" /> |
104 <output name="seq" file="rhodopsin_bufo.fasta" ftype="fasta" /> | 104 <output name="seq" file="rhodopsin_bufo.fasta" ftype="fasta" /> |
105 </test> | 105 </test> |
106 </tests> | 106 </tests> |
107 <help> | 107 <help> |
108 | 108 |
109 **What it does** | 109 **What it does** |
110 | 110 |
111 Extracts FASTA formatted sequences from a BLAST database | 111 Extracts FASTA formatted sequences from a BLAST database |
112 using the NCBI BLAST+ blastdbcmd command line tool. | 112 using the NCBI BLAST+ blastdbcmd command line tool. |
113 | 113 |
136 If you use this Galaxy tool in work leading to a scientific publication please | 136 If you use this Galaxy tool in work leading to a scientific publication please |
137 cite the following papers: | 137 cite the following papers: |
138 | 138 |
139 @REFERENCES@ | 139 @REFERENCES@ |
140 </help> | 140 </help> |
141 <expand macro="blast_citations" /> | 141 <expand macro="blast_citations" /> |
142 </tool> | 142 </tool> |