Debian Codegraph @

doc/programs/html/whichdb.html

raw symbols SCIP
1 <HTML>
2 <HEAD>
3 <TITLE>
4 EMBOSS: whichdb
5 </TITLE>
6 </HEAD>
7 <BODY BGCOLOR="#FFFFFF" text="#000000">
8
9 <table align=center border=0 cellspacing=0 cellpadding=0>
10 <tr><td valign=top>
11 <A HREF="/" ONMOUSEOVER="self.status='Go to the EMBOSS home page';return true"><img border=0 src="/images/emboss_icon.jpg" alt="" width=150 height=48></a>
12 </td>
13 <td align=left valign=middle>
14 <b><font size="+6">
15 whichdb
16 </font></b>
17 </td></tr>
18 </table>
19 <br>&nbsp;
20 <p>
21
22
23 <H2>
24 Wiki
25 </H2>
26
27 The master copies of EMBOSS documentation are available
28 at <a href="http://emboss.open-bio.org/wiki/Appdocs">
29 http://emboss.open-bio.org/wiki/Appdocs</a>
30 on the EMBOSS Wiki.
31
32 <p>
33 Please help by correcting and extending the Wiki pages.
34
35 <H2>
36 Function
37 </H2>
38 Search all sequence databases for an entry and retrieve it
39 <H2>
40 Description
41 </H2>
42
43 <p><b>whichdb</b> searches all available sequence databases for sequences with a specified ID name or accession number. The uniform sequence address (USA) of matching database entries is written to an output file. <b>whichdb</b> will, optionally, write out the sequences it finds to files. An "available" database is one that has been defined in the EMBOSS system file (<tt>.embossrc</tt> or <tt>emboss.login</tt>) and is available from the system you are running EMBOSS. If you do not know which database(s) contain the entry you are interested in, <b>whichdb</b> will tell you.</p>
44
45
46 <H2>
47 Usage
48 </H2>
49 Here is a sample session with <b>whichdb</b>
50 <p>
51
52 <p>
53 <table width="90%"><tr><td bgcolor="#CCFFFF"><pre>
54
55 % <b>whichdb -showall </b>
56 Search all sequence databases for an entry and retrieve it
57 ID or Accession number: <b>x65923</b>
58 Output file [outfile.whichdb]: <b></b>
59
60 </pre></td></tr></table><p>
61 <p>
62 <a href="#output.1">Go to the output files for this example</a><p><p>
63
64
65 <H2>
66 Command line arguments
67 </H2>
68
69 <table CELLSPACING=0 CELLPADDING=3 BGCOLOR="#f5f5ff" ><tr><td>
70 <pre>
71 Search all sequence databases for an entry and retrieve it
72 Version: EMBOSS:6.6.0.0
73
74 Standard (Mandatory) qualifiers (* if not always prompted):
75 [-entry] string ID or Accession number (Any string)
76 * -outfile outfile [*.whichdb] Output file name
77
78 Additional (Optional) qualifiers: (none)
79 Advanced (Unprompted) qualifiers:
80 -get toggle [N] Retrieve sequences
81 -showall boolean [N] Show failed attempts
82
83 Associated qualifiers:
84
85 "-outfile" associated qualifiers
86 -odirectory string Output directory
87
88 General qualifiers:
89 -auto boolean Turn off prompts
90 -stdout boolean Write first file to standard output
91 -filter boolean Read first file from standard input, write
92 first file to standard output
93 -options boolean Prompt for standard and additional values
94 -debug boolean Write debug output to program.dbg
95 -verbose boolean Report some/full command line options
96 -help boolean Report command line options and exit. More
97 information on associated and general
98 qualifiers can be found with -help -verbose
99 -warning boolean Report warnings
100 -error boolean Report errors
101 -fatal boolean Report fatal errors
102 -die boolean Report dying program messages
103 -version boolean Report version number and exit
104
105 </pre>
106 </td></tr></table>
107 <P>
108 <table border cellspacing=0 cellpadding=3 bgcolor="#ccccff">
109 <tr bgcolor="#FFFFCC">
110 <th align="left">Qualifier</th>
111 <th align="left">Type</th>
112 <th align="left">Description</th>
113 <th align="left">Allowed values</th>
114 <th align="left">Default</th>
115 </tr>
116
117 <tr bgcolor="#FFFFCC">
118 <th align="left" colspan=5>Standard (Mandatory) qualifiers</th>
119 </tr>
120
121 <tr bgcolor="#FFFFCC">
122 <td>[-entry]<br>(Parameter 1)</td>
123 <td>string</td>
124 <td>ID or Accession number</td>
125 <td>Any string</td>
126 <td>&nbsp;</td>
127 </tr>
128
129 <tr bgcolor="#FFFFCC">
130 <td>-outfile</td>
131 <td>outfile</td>
132 <td>Output file name</td>
133 <td>Output file</td>
134 <td><i>&lt;*&gt;</i>.whichdb</td>
135 </tr>
136
137 <tr bgcolor="#FFFFCC">
138 <th align="left" colspan=5>Additional (Optional) qualifiers</th>
139 </tr>
140
141 <tr>
142 <td colspan=5>(none)</td>
143 </tr>
144
145 <tr bgcolor="#FFFFCC">
146 <th align="left" colspan=5>Advanced (Unprompted) qualifiers</th>
147 </tr>
148
149 <tr bgcolor="#FFFFCC">
150 <td>-get</td>
151 <td>toggle</td>
152 <td>Retrieve sequences</td>
153 <td>Toggle value Yes/No</td>
154 <td>No</td>
155 </tr>
156
157 <tr bgcolor="#FFFFCC">
158 <td>-showall</td>
159 <td>boolean</td>
160 <td>Show failed attempts</td>
161 <td>Boolean value Yes/No</td>
162 <td>No</td>
163 </tr>
164
165 <tr bgcolor="#FFFFCC">
166 <th align="left" colspan=5>Associated qualifiers</th>
167 </tr>
168
169 <tr bgcolor="#FFFFCC">
170 <td align="left" colspan=5>"-outfile" associated outfile qualifiers
171 </td>
172 </tr>
173
174 <tr bgcolor="#FFFFCC">
175 <td> -odirectory</td>
176 <td>string</td>
177 <td>Output directory</td>
178 <td>Any string</td>
179 <td>&nbsp;</td>
180 </tr>
181
182 <tr bgcolor="#FFFFCC">
183 <th align="left" colspan=5>General qualifiers</th>
184 </tr>
185
186 <tr bgcolor="#FFFFCC">
187 <td> -auto</td>
188 <td>boolean</td>
189 <td>Turn off prompts</td>
190 <td>Boolean value Yes/No</td>
191 <td>N</td>
192 </tr>
193
194 <tr bgcolor="#FFFFCC">
195 <td> -stdout</td>
196 <td>boolean</td>
197 <td>Write first file to standard output</td>
198 <td>Boolean value Yes/No</td>
199 <td>N</td>
200 </tr>
201
202 <tr bgcolor="#FFFFCC">
203 <td> -filter</td>
204 <td>boolean</td>
205 <td>Read first file from standard input, write first file to standard output</td>
206 <td>Boolean value Yes/No</td>
207 <td>N</td>
208 </tr>
209
210 <tr bgcolor="#FFFFCC">
211 <td> -options</td>
212 <td>boolean</td>
213 <td>Prompt for standard and additional values</td>
214 <td>Boolean value Yes/No</td>
215 <td>N</td>
216 </tr>
217
218 <tr bgcolor="#FFFFCC">
219 <td> -debug</td>
220 <td>boolean</td>
221 <td>Write debug output to program.dbg</td>
222 <td>Boolean value Yes/No</td>
223 <td>N</td>
224 </tr>
225
226 <tr bgcolor="#FFFFCC">
227 <td> -verbose</td>
228 <td>boolean</td>
229 <td>Report some/full command line options</td>
230 <td>Boolean value Yes/No</td>
231 <td>Y</td>
232 </tr>
233
234 <tr bgcolor="#FFFFCC">
235 <td> -help</td>
236 <td>boolean</td>
237 <td>Report command line options and exit. More information on associated and general qualifiers can be found with -help -verbose</td>
238 <td>Boolean value Yes/No</td>
239 <td>N</td>
240 </tr>
241
242 <tr bgcolor="#FFFFCC">
243 <td> -warning</td>
244 <td>boolean</td>
245 <td>Report warnings</td>
246 <td>Boolean value Yes/No</td>
247 <td>Y</td>
248 </tr>
249
250 <tr bgcolor="#FFFFCC">
251 <td> -error</td>
252 <td>boolean</td>
253 <td>Report errors</td>
254 <td>Boolean value Yes/No</td>
255 <td>Y</td>
256 </tr>
257
258 <tr bgcolor="#FFFFCC">
259 <td> -fatal</td>
260 <td>boolean</td>
261 <td>Report fatal errors</td>
262 <td>Boolean value Yes/No</td>
263 <td>Y</td>
264 </tr>
265
266 <tr bgcolor="#FFFFCC">
267 <td> -die</td>
268 <td>boolean</td>
269 <td>Report dying program messages</td>
270 <td>Boolean value Yes/No</td>
271 <td>Y</td>
272 </tr>
273
274 <tr bgcolor="#FFFFCC">
275 <td> -version</td>
276 <td>boolean</td>
277 <td>Report version number and exit</td>
278 <td>Boolean value Yes/No</td>
279 <td>N</td>
280 </tr>
281
282 </table>
283
284 <H2>
285 Input file format
286 </H2>
287
288 None.
289
290 <p>
291
292
293 <H2>
294 Output file format
295 </H2>
296
297
298 <a name="output.1"></a>
299 <h3>Output files for usage example </h3>
300 <p><h3>File: outfile.whichdb</h3>
301 <table width="90%"><tr><td bgcolor="#CCFFCC">
302 <pre>
303 # Trying 'bpembl:x65923'
304 bpembl:x65923
305 # Trying 'bpgb:x65923'
306 bpgb:x65923
307 # Trying 'bpsw:x65923'
308 # Failed 'bpsw:x65923'
309 # Trying 'bpworm:x65923'
310 # Failed 'bpworm:x65923'
311 # Trying 'ena:x65923'
312 ena:x65923
313 # Trying 'qanfasta:x65923'
314 # Failed 'qanfasta:x65923'
315 # Trying 'qanfastaall:x65923'
316 # Failed 'qanfastaall:x65923'
317 # Trying 'qanflat:x65923'
318 # Failed 'qanflat:x65923'
319 # Trying 'qanflatall:x65923'
320 qanflatall:x65923
321 # Trying 'qanflatexc:x65923'
322 qanflatexc:x65923
323 # Trying 'qanflatinc:x65923'
324 # Failed 'qanflatinc:x65923'
325 # Trying 'qangcg:x65923'
326 qangcg:x65923
327 # Trying 'qangcgall:x65923'
328 qangcgall:x65923
329 # Trying 'qangcgexc:x65923'
330 qangcgexc:x65923
331 # Trying 'qangcginc:x65923'
332 # Failed 'qangcginc:x65923'
333 # Trying 'qanxfasta:x65923'
334 # Failed 'qanxfasta:x65923'
335 # Trying 'qanxfastaall:x65923'
336 # Failed 'qanxfastaall:x65923'
337 # Trying 'qanxflat:x65923'
338 # Failed 'qanxflat:x65923'
339 # Trying 'qanxflatall:x65923'
340 qanxflatall:x65923
341 # Trying 'qanxflatexc:x65923'
342 qanxflatexc:x65923
343 # Trying 'qanxflatinc:x65923'
344 # Failed 'qanxflatinc:x65923'
345 # Trying 'qanxgcg:x65923'
346 qanxgcg:x65923
347 # Trying 'qanxgcgall:x65923'
348 qanxgcgall:x65923
349 # Trying 'qanxgcgexc:x65923'
350 qanxgcgexc:x65923
351 # Trying 'qanxgcginc:x65923'
352 # Failed 'qanxgcginc:x65923'
353
354
355 <font color=red> [Part of this file has been deleted for brevity]</font>
356
357 # Failed 'qapir:x65923'
358 # Trying 'qapirall:x65923'
359 # Failed 'qapirall:x65923'
360 # Trying 'qapirexc:x65923'
361 # Failed 'qapirexc:x65923'
362 # Trying 'qapirinc:x65923'
363 # Failed 'qapirinc:x65923'
364 # Trying 'qapxfasta:x65923'
365 # Failed 'qapxfasta:x65923'
366 # Trying 'qapxflat:x65923'
367 # Failed 'qapxflat:x65923'
368 # Trying 'qasrswww:x65923'
369 # Failed 'qasrswww:x65923'
370 # Trying 'qawfasta:x65923'
371 # Failed 'qawfasta:x65923'
372 # Trying 'qawxfasta:x65923'
373 # Failed 'qawxfasta:x65923'
374 # Trying 'qaxembl:x65923'
375 qaxembl:x65923
376 # Trying 'qaxpir:x65923'
377 # Failed 'qaxpir:x65923'
378 # Trying 'qaxpirall:x65923'
379 # Failed 'qaxpirall:x65923'
380 # Trying 'qaxpirexc:x65923'
381 # Failed 'qaxpirexc:x65923'
382 # Trying 'qaxpirinc:x65923'
383 # Failed 'qaxpirinc:x65923'
384 # Trying 'tembl:x65923'
385 tembl:x65923
386 # Trying 'temblall:x65923'
387 temblall:x65923
388 # Trying 'temblrest:x65923'
389 # Failed 'temblrest:x65923'
390 # Trying 'temblvrt:x65923'
391 temblvrt:x65923
392 # Trying 'tensembldasgrch37:x65923'
393 # Failed 'tensembldasgrch37:x65923'
394 # Trying 'testdb:x65923'
395 # Failed 'testdb:x65923'
396 # Trying 'tgb:x65923'
397 tgb:x65923
398 # Trying 'tgenbank:x65923'
399 tgenbank:x65923
400 # Trying 'tgenedashuman:x65923'
401 # Failed 'tgenedashuman:x65923'
402 # Trying 'tpir:x65923'
403 # Failed 'tpir:x65923'
404 # Trying 'tsw:x65923'
405 # Failed 'tsw:x65923'
406 # Trying 'tswnew:x65923'
407 # Failed 'tswnew:x65923'
408 </pre>
409 </td></tr></table><p>
410
411 <p>
412
413 The reported database entries are written out to the specified output file.
414
415 <p>
416
417 Each database that is defined in the local implementation of EMBOSS
418 which contains an entry called 'x65923' is reported.
419
420 <p>
421
422 Note that where a database is defined under several names ('embl',
423 'em'), each definition of that database containing the entry is
424 reported.
425
426 <p>
427
428 When the '-get' option is used to output the sequences, they are written
429 to separate files. The sequence format they are written in is always
430 'Fasta' format. The normal command-line qualifiers for changing the
431 output formats etc. will not work in this program.
432
433 <p>
434
435 The names of the files that the sequences are written to is reported as
436 they are written, for example:
437
438 <p>
439 <table width="90%"><tr><td>
440 <pre>
441 Writing x65923.embl
442 Writing x65923.human
443 Writing x65923.tembl
444 Writing x65923.em
445 Writing x65923.genbank
446 Writing x65923.gb
447 </td></tr></table><p>
448
449
450
451 <H2>
452 Data files
453 </H2>
454
455 None.
456
457 <H2>
458 Notes
459 </H2>
460
461 <p>The Uniform Sequence Addresss (USA) method used by EMBOSS for referencing sequences does not allow database entries to be specified by just the ID name or accession number. You must specify both the name of the database and the entry, for example <tt>embl:x65923</tt>, not just <tt>x65923</tt>. <b>whichdb</b> is useful where you do not know the database that a sequence entry is found in.</p>
462
463
464 <h3>IDs and Accessions</h3>
465 <p>An entry in a database must have some way of being uniquely identified in that database. Most sequence databases have two such identifiers for each sequence - an ID name and an Accession number.</p>
466
467 <p>Why are there two such identifiers? The ID name was originally intended to be a human-readable name that had some indication of the function of its sequence. In the early years of EMBL and GenBank the first two (or three) letters indicated the species and the rest indicated the function, for example <tt>HSFAU</tt> was the <tt>Homo Sapiens FAU pseudogene</tt>. This naming scheme started to be a problem when the number of entries added each day was so vast that people could not make up the ID names fast enough. Instead, the Accession numbers were used as the ID name. Therefore you will now find ID names like <tt>X65923</tt>, the same as the Accession number for that sequence in EMBL. The protein sequence databases continue to use recognizable names for entries (for example <tt>AMIR_PSEAE</tt> for the AmiR gene product of Pseudomonas aeruginosa in UniProt/SwissProt).</p>
468
469 <p>ID names are not guaranteed to remain the same between different versions of a database (although in practice they usually do). In contrast, accession numbers are unique alphanumeric identifiers that are guaranteed to remain with that sequence through the rest of the life of the database. If two sequences are merged into one, then the new sequence will get a new Accession number and the Accession numbers of the merged sequences will be retained as 'secondary' Accession numbers. EMBL, GenBank and UniProt/SwissProt share an Accession numbering scheme - an Accession number uniquely identifies a sequence within these three databases. </p>
470
471 <H2>
472 References
473 </H2>
474
475 None.
476
477 <H2>
478 Warnings
479 </H2>
480
481 None.
482
483 <H2>
484 Diagnostic Error Messages
485 </H2>
486
487 None.
488
489
490 <H2>
491 Exit status
492 </H2>
493
494 It always exits with status 0.
495
496 <H2>
497 Known bugs
498 </H2>
499
500 None.
501
502 <h2><a name="See also">See also</a></h2>
503 <table border cellpadding=4 bgcolor="#FFFFF0">
504 <tr><th>Program name</th>
505 <th>Description</th></tr>
506 <tr>
507 <td><a href="abiview.html">abiview</a></td>
508 <td>Display the trace in an ABI sequencer file</td>
509 </tr>
510
511 <tr>
512 <td><a href="coderet.html">coderet</a></td>
513 <td>Extract CDS, mRNA and translations from feature tables</td>
514 </tr>
515
516 <tr>
517 <td><a href="entret.html">entret</a></td>
518 <td>Retrieve sequence entries from flatfile databases and files</td>
519 </tr>
520
521 <tr>
522 <td><a href="extractalign.html">extractalign</a></td>
523 <td>Extract regions from a sequence alignment</td>
524 </tr>
525
526 <tr>
527 <td><a href="infoalign.html">infoalign</a></td>
528 <td>Display basic information about a multiple sequence alignment</td>
529 </tr>
530
531 <tr>
532 <td><a href="infoseq.html">infoseq</a></td>
533 <td>Display basic information about sequences</td>
534 </tr>
535
536 <tr>
537 <td><a href="refseqget.html">refseqget</a></td>
538 <td>Get reference sequence</td>
539 </tr>
540
541 <tr>
542 <td><a href="seqxref.html">seqxref</a></td>
543 <td>Retrieve all database cross-references for a sequence entry</td>
544 </tr>
545
546 <tr>
547 <td><a href="seqxrefget.html">seqxrefget</a></td>
548 <td>Retrieve all cross-referenced data for a sequence entry</td>
549 </tr>
550
551 <tr>
552 <td><a href="showalign.html">showalign</a></td>
553 <td>Display a multiple sequence alignment in pretty format</td>
554 </tr>
555
556 <tr>
557 <td><a href="variationget.html">variationget</a></td>
558 <td>Get sequence variations</td>
559 </tr>
560
561 </table>
562
563
564
565 <H2>
566 Author(s)
567 </H2>
568 Alan Bleasby
569 <br>
570 European Bioinformatics Institute, Wellcome Trust Genome Campus, Hinxton, Cambridge CB10 1SD, UK
571
572 <p>
573 Please report all bugs to the EMBOSS bug team (emboss-bug&nbsp;&copy;&nbsp;emboss.open-bio.org) not to the original author.
574
575 <H2>
576 History
577 </H2>
578
579 Written (Jan 2002) - Alan Bleasby.
580
581
582 <H2>
583 Target users
584 </H2>
585 This program is intended to be used by everyone and everything, from naive users to embedded scripts.
586
587 <H2>
588 Comments
589 </H2>
590 None
591
592 </BODY>
593 </HTML>
594