Debian Codegraph @

doc/programs/html/dbigcg.html

raw symbols SCIP
1 <HTML>
2
3 <HEAD>
4 <TITLE>
5 EMBOSS: dbigcg
6 </TITLE>
7 </HEAD>
8 <BODY BGCOLOR="#FFFFFF" text="#000000">
9
10 <table align=center border=0 cellspacing=0 cellpadding=0>
11 <tr><td valign=top>
12 <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>
13 </td>
14 <td align=left valign=middle>
15 <b><font size="+6">
16 dbigcg
17 </font></b>
18 </td></tr>
19 </table>
20 <br>&nbsp;
21 <p>
22
23
24 <H2>
25 Wiki
26 </H2>
27
28 The master copies of EMBOSS documentation are available
29 at <a href="http://emboss.open-bio.org/wiki/Appdocs">
30 http://emboss.open-bio.org/wiki/Appdocs</a>
31 on the EMBOSS Wiki.
32
33 <p>
34 Please help by correcting and extending the Wiki pages.
35
36 <H2>
37 Function
38 </H2>
39 Index a GCG formatted database
40 <H2>
41 Description
42 </H2>
43
44 <b>dbigcg</b> indexes a GCG-format database
45 of one or more files, and builds EMBL CD-ROM format index files.
46 <p>
47
48 A GCG-format database consists of *.seq and *.ref files. The data in
49 the *.seq files is often compressed.
50
51 <p>
52
53 The resulting index-file format is used by the software on
54 the EMBL database CD-ROM distribution and by the Staden package in
55 addition to EMBOSS, and appears to be the most generally used and
56 publicly available index file format for these databases.
57
58
59
60
61 <H2>
62 Usage
63 </H2>
64 Here is a sample session with <b>dbigcg</b>
65 <p>
66
67 <p>
68 <table width="90%"><tr><td bgcolor="#CCFFFF"><pre>
69
70 % <b>dbigcg </b>
71 Index a GCG formatted database
72 Database name: <b>EMBL</b>
73 EMBL : EMBL
74 SWISS : Swiss-Prot, SpTrEMBL, TrEMBLnew
75 GENBANK : Genbank, DDBJ
76 PIR : NBRF
77 Entry format [EMBL]: <b>EMBL</b>
78 Database directory [.]: <b>embl</b>
79 Wildcard database filename [*.seq]: <b></b>
80 Release number [0.0]: <b></b>
81 Index date [00/00/00]: <b></b>
82 General log output file [outfile.dbigcg]: <b></b>
83
84 </pre></td></tr></table><p>
85 <p>
86 <a href="#output.1">Go to the output files for this example</a><p><p>
87
88
89 <H2>
90 Command line arguments
91 </H2>
92
93 <table CELLSPACING=0 CELLPADDING=3 BGCOLOR="#f5f5ff" ><tr><td>
94 <pre>
95 Index a GCG formatted database
96 Version: EMBOSS:6.6.0.0
97
98 Standard (Mandatory) qualifiers:
99 [-dbname] string Database name (Any string from 2 to 19
100 characters, matching regular expression
101 /[A-z][A-z0-9_]+/)
102 -idformat menu [EMBL] Entry format (Values: EMBL (EMBL);
103 SWISS (Swiss-Prot, SpTrEMBL, TrEMBLnew);
104 GENBANK (Genbank, DDBJ); PIR (NBRF))
105 -directory directory [.] Database directory
106 -filenames string [*.seq] Wildcard database filename (Any
107 string)
108 -release string [0.0] Release number (Any string up to 9
109 characters)
110 -date string [00/00/00] Index date (Date string dd/mm/yy)
111 -outfile outfile [*.dbigcg] General log output file
112
113 Additional (Optional) qualifiers: (none)
114 Advanced (Unprompted) qualifiers:
115 -fields menu [acc] Index fields (Values: acc (acnum
116 accession number index); sv (seqvn sequence
117 version and gi number index); des (des
118 description index); key (keyword keywords
119 index); org (taxon taxonomy and organism
120 index))
121 -exclude string Wildcard filename(s) to exclude (Any string)
122 -maxindex integer [0] Maximum index length (Integer 0 or more)
123 -sortoptions string [-T . -k 1,1] Sort options, typically '-T .'
124 to use current directory for work files and
125 '-k 1,1' to force GNU sort to use the first
126 field (Any string)
127 -[no]systemsort boolean [Y] Use system sort utility
128 -[no]cleanup boolean [Y] Clean up temporary files
129 -indexoutdir outdir [.] Index file output directory
130
131 Associated qualifiers:
132
133 "-directory" associated qualifiers
134 -extension string Default file extension
135
136 "-outfile" associated qualifiers
137 -odirectory string Output directory
138
139 "-indexoutdir" associated qualifiers
140 -extension string Default file extension
141
142 General qualifiers:
143 -auto boolean Turn off prompts
144 -stdout boolean Write first file to standard output
145 -filter boolean Read first file from standard input, write
146 first file to standard output
147 -options boolean Prompt for standard and additional values
148 -debug boolean Write debug output to program.dbg
149 -verbose boolean Report some/full command line options
150 -help boolean Report command line options and exit. More
151 information on associated and general
152 qualifiers can be found with -help -verbose
153 -warning boolean Report warnings
154 -error boolean Report errors
155 -fatal boolean Report fatal errors
156 -die boolean Report dying program messages
157 -version boolean Report version number and exit
158
159 </pre>
160 </td></tr></table>
161 <P>
162 <table border cellspacing=0 cellpadding=3 bgcolor="#ccccff">
163 <tr bgcolor="#FFFFCC">
164 <th align="left">Qualifier</th>
165 <th align="left">Type</th>
166 <th align="left">Description</th>
167 <th align="left">Allowed values</th>
168 <th align="left">Default</th>
169 </tr>
170
171 <tr bgcolor="#FFFFCC">
172 <th align="left" colspan=5>Standard (Mandatory) qualifiers</th>
173 </tr>
174
175 <tr bgcolor="#FFFFCC">
176 <td>[-dbname]<br>(Parameter 1)</td>
177 <td>string</td>
178 <td>Database name</td>
179 <td>Any string from 2 to 19 characters, matching regular expression /[A-z][A-z0-9_]+/</td>
180 <td><b>Required</b></td>
181 </tr>
182
183 <tr bgcolor="#FFFFCC">
184 <td>-idformat</td>
185 <td>list</td>
186 <td>Entry format</td>
187 <td><table><tr><td>EMBL</td> <td><i>(EMBL)</i></td></tr><tr><td>SWISS</td> <td><i>(Swiss-Prot, SpTrEMBL, TrEMBLnew)</i></td></tr><tr><td>GENBANK</td> <td><i>(Genbank, DDBJ)</i></td></tr><tr><td>PIR</td> <td><i>(NBRF)</i></td></tr></table></td>
188 <td>EMBL</td>
189 </tr>
190
191 <tr bgcolor="#FFFFCC">
192 <td>-directory</td>
193 <td>directory</td>
194 <td>Database directory</td>
195 <td>Directory</td>
196 <td>.</td>
197 </tr>
198
199 <tr bgcolor="#FFFFCC">
200 <td>-filenames</td>
201 <td>string</td>
202 <td>Wildcard database filename</td>
203 <td>Any string</td>
204 <td>*.seq</td>
205 </tr>
206
207 <tr bgcolor="#FFFFCC">
208 <td>-release</td>
209 <td>string</td>
210 <td>Release number</td>
211 <td>Any string up to 9 characters</td>
212 <td>0.0</td>
213 </tr>
214
215 <tr bgcolor="#FFFFCC">
216 <td>-date</td>
217 <td>string</td>
218 <td>Index date</td>
219 <td>Date string dd/mm/yy</td>
220 <td>00/00/00</td>
221 </tr>
222
223 <tr bgcolor="#FFFFCC">
224 <td>-outfile</td>
225 <td>outfile</td>
226 <td>General log output file</td>
227 <td>Output file</td>
228 <td><i>&lt;*&gt;</i>.dbigcg</td>
229 </tr>
230
231 <tr bgcolor="#FFFFCC">
232 <th align="left" colspan=5>Additional (Optional) qualifiers</th>
233 </tr>
234
235 <tr>
236 <td colspan=5>(none)</td>
237 </tr>
238
239 <tr bgcolor="#FFFFCC">
240 <th align="left" colspan=5>Advanced (Unprompted) qualifiers</th>
241 </tr>
242
243 <tr bgcolor="#FFFFCC">
244 <td>-fields</td>
245 <td>list</td>
246 <td>Index fields</td>
247 <td><table><tr><td>acc</td> <td><i>(acnum accession number index)</i></td></tr><tr><td>sv</td> <td><i>(seqvn sequence version and gi number index)</i></td></tr><tr><td>des</td> <td><i>(des description index)</i></td></tr><tr><td>key</td> <td><i>(keyword keywords index)</i></td></tr><tr><td>org</td> <td><i>(taxon taxonomy and organism index)</i></td></tr></table></td>
248 <td>acc</td>
249 </tr>
250
251 <tr bgcolor="#FFFFCC">
252 <td>-exclude</td>
253 <td>string</td>
254 <td>Wildcard filename(s) to exclude</td>
255 <td>Any string</td>
256 <td>&nbsp;</td>
257 </tr>
258
259 <tr bgcolor="#FFFFCC">
260 <td>-maxindex</td>
261 <td>integer</td>
262 <td>Maximum index length</td>
263 <td>Integer 0 or more</td>
264 <td>0</td>
265 </tr>
266
267 <tr bgcolor="#FFFFCC">
268 <td>-sortoptions</td>
269 <td>string</td>
270 <td>Sort options, typically '-T .' to use current directory for work files and '-k 1,1' to force GNU sort to use the first field</td>
271 <td>Any string</td>
272 <td>-T . -k 1,1</td>
273 </tr>
274
275 <tr bgcolor="#FFFFCC">
276 <td>-[no]systemsort</td>
277 <td>boolean</td>
278 <td>Use system sort utility</td>
279 <td>Boolean value Yes/No</td>
280 <td>Yes</td>
281 </tr>
282
283 <tr bgcolor="#FFFFCC">
284 <td>-[no]cleanup</td>
285 <td>boolean</td>
286 <td>Clean up temporary files</td>
287 <td>Boolean value Yes/No</td>
288 <td>Yes</td>
289 </tr>
290
291 <tr bgcolor="#FFFFCC">
292 <td>-indexoutdir</td>
293 <td>outdir</td>
294 <td>Index file output directory</td>
295 <td>Output directory</td>
296 <td>.</td>
297 </tr>
298
299 <tr bgcolor="#FFFFCC">
300 <th align="left" colspan=5>Associated qualifiers</th>
301 </tr>
302
303 <tr bgcolor="#FFFFCC">
304 <td align="left" colspan=5>"-directory" associated directory qualifiers
305 </td>
306 </tr>
307
308 <tr bgcolor="#FFFFCC">
309 <td> -extension</td>
310 <td>string</td>
311 <td>Default file extension</td>
312 <td>Any string</td>
313 <td>&nbsp;</td>
314 </tr>
315
316 <tr bgcolor="#FFFFCC">
317 <td align="left" colspan=5>"-outfile" associated outfile qualifiers
318 </td>
319 </tr>
320
321 <tr bgcolor="#FFFFCC">
322 <td> -odirectory</td>
323 <td>string</td>
324 <td>Output directory</td>
325 <td>Any string</td>
326 <td>&nbsp;</td>
327 </tr>
328
329 <tr bgcolor="#FFFFCC">
330 <td align="left" colspan=5>"-indexoutdir" associated outdir qualifiers
331 </td>
332 </tr>
333
334 <tr bgcolor="#FFFFCC">
335 <td> -extension</td>
336 <td>string</td>
337 <td>Default file extension</td>
338 <td>Any string</td>
339 <td>&nbsp;</td>
340 </tr>
341
342 <tr bgcolor="#FFFFCC">
343 <th align="left" colspan=5>General qualifiers</th>
344 </tr>
345
346 <tr bgcolor="#FFFFCC">
347 <td> -auto</td>
348 <td>boolean</td>
349 <td>Turn off prompts</td>
350 <td>Boolean value Yes/No</td>
351 <td>N</td>
352 </tr>
353
354 <tr bgcolor="#FFFFCC">
355 <td> -stdout</td>
356 <td>boolean</td>
357 <td>Write first file to standard output</td>
358 <td>Boolean value Yes/No</td>
359 <td>N</td>
360 </tr>
361
362 <tr bgcolor="#FFFFCC">
363 <td> -filter</td>
364 <td>boolean</td>
365 <td>Read first file from standard input, write first file to standard output</td>
366 <td>Boolean value Yes/No</td>
367 <td>N</td>
368 </tr>
369
370 <tr bgcolor="#FFFFCC">
371 <td> -options</td>
372 <td>boolean</td>
373 <td>Prompt for standard and additional values</td>
374 <td>Boolean value Yes/No</td>
375 <td>N</td>
376 </tr>
377
378 <tr bgcolor="#FFFFCC">
379 <td> -debug</td>
380 <td>boolean</td>
381 <td>Write debug output to program.dbg</td>
382 <td>Boolean value Yes/No</td>
383 <td>N</td>
384 </tr>
385
386 <tr bgcolor="#FFFFCC">
387 <td> -verbose</td>
388 <td>boolean</td>
389 <td>Report some/full command line options</td>
390 <td>Boolean value Yes/No</td>
391 <td>Y</td>
392 </tr>
393
394 <tr bgcolor="#FFFFCC">
395 <td> -help</td>
396 <td>boolean</td>
397 <td>Report command line options and exit. More information on associated and general qualifiers can be found with -help -verbose</td>
398 <td>Boolean value Yes/No</td>
399 <td>N</td>
400 </tr>
401
402 <tr bgcolor="#FFFFCC">
403 <td> -warning</td>
404 <td>boolean</td>
405 <td>Report warnings</td>
406 <td>Boolean value Yes/No</td>
407 <td>Y</td>
408 </tr>
409
410 <tr bgcolor="#FFFFCC">
411 <td> -error</td>
412 <td>boolean</td>
413 <td>Report errors</td>
414 <td>Boolean value Yes/No</td>
415 <td>Y</td>
416 </tr>
417
418 <tr bgcolor="#FFFFCC">
419 <td> -fatal</td>
420 <td>boolean</td>
421 <td>Report fatal errors</td>
422 <td>Boolean value Yes/No</td>
423 <td>Y</td>
424 </tr>
425
426 <tr bgcolor="#FFFFCC">
427 <td> -die</td>
428 <td>boolean</td>
429 <td>Report dying program messages</td>
430 <td>Boolean value Yes/No</td>
431 <td>Y</td>
432 </tr>
433
434 <tr bgcolor="#FFFFCC">
435 <td> -version</td>
436 <td>boolean</td>
437 <td>Report version number and exit</td>
438 <td>Boolean value Yes/No</td>
439 <td>N</td>
440 </tr>
441
442 </table>
443
444 <H2>
445 Input file format
446 </H2>
447
448 <b>dbigcg</b> reads in a GCG-format database.
449 A GCG-format database consists of *.seq and *.ref files - only the *.seq
450 files are used. The data in these is often compressed.
451 <p>
452
453 <H2>
454 Output file format
455 </H2>
456
457
458 <a name="output.1"></a>
459 <h3>Output files for usage example </h3>
460 <p><h3>File: division.lkp</h3>
461 <p>This file contains non-printing characters and so cannot be displayed here.
462 <p><h3>File: entrynam.idx</h3>
463 <p>This file contains non-printing characters and so cannot be displayed here.
464 <p><h3>File: acnum.hit</h3>
465 <p>This file contains non-printing characters and so cannot be displayed here.
466 <p><h3>File: acnum.trg</h3>
467 <p>This file contains non-printing characters and so cannot be displayed here.
468 <p><h3>File: outfile.dbigcg</h3>
469 <table width="90%"><tr><td bgcolor="#CCFFCC">
470 <pre>
471 ########################################
472 # Program: dbigcg
473 # Rundate: Mon 15 Jul 2013 12:00:00
474 # Dbname: EMBL
475 # Release: 0.0
476 # Date: 15/07/13
477 # CurrentDirectory: /homes/user/test/qa/dbigcg-ex-keep/
478 # IndexDirectory: ./
479 # IndexDirectoryPath: /homes/user/test/qa/dbigcg-ex-keep/
480 # Maxindex: 0
481 # Fields: 2
482 # Field 1: id
483 # Field 2: acc
484 # Directory: /homes/user/test/embl/
485 # DirectoryPath: /homes/user/test/embl/
486 # Filenames: *.seq
487 # Exclude:
488 # Files: 9
489 # File 1: /homes/user/test/embl/eem_ba1.seq
490 # File 2: /homes/user/test/embl/eem_est.seq
491 # File 3: /homes/user/test/embl/eem_fun.seq
492 # File 4: /homes/user/test/embl/eem_htginv1.seq
493 # File 5: /homes/user/test/embl/eem_hum1.seq
494 # File 6: /homes/user/test/embl/eem_in.seq
495 # File 7: /homes/user/test/embl/eem_ov.seq
496 # File 8: /homes/user/test/embl/eem_ro.seq
497 # File 9: /homes/user/test/embl/eem_vi.seq
498 ########################################
499 # Commandline: dbigcg
500 # -dbname EMBL
501 # -idformat EMBL
502 # -directory ../../embl
503 ########################################
504
505 filename: '/homes/user/test/embl/eem_ba1.seq'
506 id: 10
507 acc: 14
508 filename: '/homes/user/test/embl/eem_est.seq'
509 id: 1
510 acc: 1
511 filename: '/homes/user/test/embl/eem_fun.seq'
512 id: 1
513 acc: 1
514 filename: '/homes/user/test/embl/eem_htginv1.seq'
515 id: 5
516 acc: 5
517 filename: '/homes/user/test/embl/eem_hum1.seq'
518 id: 15
519 acc: 18
520 filename: '/homes/user/test/embl/eem_in.seq'
521 id: 2
522 acc: 2
523 filename: '/homes/user/test/embl/eem_ov.seq'
524 id: 2
525 acc: 2
526 filename: '/homes/user/test/embl/eem_ro.seq'
527 id: 3
528 acc: 3
529 filename: '/homes/user/test/embl/eem_vi.seq'
530 id: 1
531 acc: 2
532
533 Index acc: maxlen 8 items 48
534
535 Total 9 files 40 entries (0 duplicates)
536 </pre>
537 </td></tr></table><p>
538 <p>
539
540 <b>dbigcg</b> creates four index files. All are binary but with a
541 simple format.
542
543 <ul>
544
545 <li>division.lkp is the master index file, and has a 300 byte header
546 containing the database name and date plus information on the record
547 size. This header is followed by one record for each database file,
548 giving the full file names for the reference file and sequence file.
549
550 <li>entryname.idx is the entry name index. It has the same 300 byte
551 header, mainly used to store the record size which will depend on the
552 size of the longest entryname in the database. Each entry is stored in
553 sorted alphanumeric order so that a binary search can be used to
554 efficiently find any record. The record also holds the file number
555 from division.lkp and the offsets in the data and sequence files for
556 that entry.
557
558 <li>acnum.trg holds the accession number information. The file has the
559 usual 300 byte header, and a sorted list of record by accession number.
560 Each accession number record contains the first record number in acnum.hit
561 and the total number of records in acnum.hit so that secondary (duplicated)
562 accession numbers can be searched.
563
564 <li>acnum.hit is a very simple file. After the usual 300 byte header,
565 each record simply holds the record number in entryname.idx. An
566 accession number search will use acnum.trg to find a start position
567 and number of records to read in this file, and will then simply
568 read the entryname.idx records for each entry in turn.
569
570 </ul>
571
572 <H2>
573 Data files
574 </H2>
575
576
577 None.
578
579 <H2>
580 Notes
581 </H2>
582
583 <p>
584
585 Having created the EMBOSS indices for this file, a database can then be
586 defined in the file <b>emboss.defaults</b> as something like:
587
588 <p>
589
590 <pre>
591 DB embl [
592 type: N
593 format: embl
594 method: gcg
595 directory: /data/gcg/gcgembl
596 ]
597 </pre>
598
599
600
601 <h3>Fields Indexed</H3>
602
603 By default, <b>dbigcg</b> will index the ID name and the accession
604 number (if present).
605
606 <br>
607
608 If they are present in your database, you may also specify that <b>dbiflat</b>
609 should index the Sequence Version and GI number, the Keywords and
610 Taxonomy names and the words in the description by using the '-fields'
611 qualifier with the appropriate values.
612
613 <H2>
614 References
615 </H2>
616
617 None.
618
619
620 <H2>
621 Warnings
622 </H2>
623
624 None.
625
626
627 <H2>
628 Diagnostic Error Messages
629 </H2>
630
631 None.
632
633
634 <H2>
635 Exit status
636 </H2>
637
638 It exits with a status of 0 if no errors.
639
640 <H2>
641 Known bugs
642 </H2>
643
644 None.
645
646 <h2><a name="See also">See also</a></h2>
647 <table border cellpadding=4 bgcolor="#FFFFF0">
648 <tr><th>Program name</th>
649 <th>Description</th></tr>
650 <tr>
651 <td><a href="dbiblast.html">dbiblast</a></td>
652 <td>Index a BLAST database</td>
653 </tr>
654
655 <tr>
656 <td><a href="dbifasta.html">dbifasta</a></td>
657 <td>Index a fasta file database</td>
658 </tr>
659
660 <tr>
661 <td><a href="dbiflat.html">dbiflat</a></td>
662 <td>Index a flat file database</td>
663 </tr>
664
665 <tr>
666 <td><a href="dbxcompress.html">dbxcompress</a></td>
667 <td>Compress an uncompressed dbx index</td>
668 </tr>
669
670 <tr>
671 <td><a href="dbxedam.html">dbxedam</a></td>
672 <td>Index the EDAM ontology using b+tree indices</td>
673 </tr>
674
675 <tr>
676 <td><a href="dbxfasta.html">dbxfasta</a></td>
677 <td>Index a fasta file database using b+tree indices</td>
678 </tr>
679
680 <tr>
681 <td><a href="dbxflat.html">dbxflat</a></td>
682 <td>Index a flat file database using b+tree indices</td>
683 </tr>
684
685 <tr>
686 <td><a href="dbxgcg.html">dbxgcg</a></td>
687 <td>Index a GCG formatted database using b+tree indices</td>
688 </tr>
689
690 <tr>
691 <td><a href="dbxobo.html">dbxobo</a></td>
692 <td>Index an obo ontology using b+tree indices</td>
693 </tr>
694
695 <tr>
696 <td><a href="dbxreport.html">dbxreport</a></td>
697 <td>Validate index and report internals for dbx databases</td>
698 </tr>
699
700 <tr>
701 <td><a href="dbxresource.html">dbxresource</a></td>
702 <td>Index a data resource catalogue using b+tree indices</td>
703 </tr>
704
705 <tr>
706 <td><a href="dbxstat.html">dbxstat</a></td>
707 <td>Dump statistics for dbx databases</td>
708 </tr>
709
710 <tr>
711 <td><a href="dbxtax.html">dbxtax</a></td>
712 <td>Index NCBI taxonomy using b+tree indices</td>
713 </tr>
714
715 <tr>
716 <td><a href="dbxuncompress.html">dbxuncompress</a></td>
717 <td>Uncompress a compressed dbx index</td>
718 </tr>
719
720 </table>
721
722 <H2>
723 Author(s)
724 </H2>
725
726 Peter Rice
727 <br>
728 European Bioinformatics Institute, Wellcome Trust Genome Campus, Hinxton, Cambridge CB10 1SD, UK
729
730 <p>
731 Please report all bugs to the EMBOSS bug team (emboss-bug&nbsp;&copy;&nbsp;emboss.open-bio.org) not to the original author.
732 <H2>
733 History
734 </H2>
735
736
737 <H2>
738 Target users
739 </H2>
740 This program is intended to be used by administrators responsible
741 for software and database installation and maintenance.
742
743 <H2>
744 Comments
745 </H2>
746 None
747
748 </BODY>
749 </HTML>
750