Debian Codegraph @

doc/programs/html/dbxcompress.html

raw symbols SCIP
1 <HTML>
2 <HEAD>
3 <TITLE>
4 EMBOSS: dbxcompress
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 dbxcompress
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 Compress an uncompressed dbx index
39 <!--
40 DON'T WRITE ANYTHING HERE.
41 IT IS DONE FOR YOU.
42 -->
43
44
45
46
47 <H2>
48 Description
49 </H2>
50
51 <b>dbxcompress</b> compressed EMBOSS B+tree format index files. By
52 default, the indexing applications in EMBOSS compress all index
53 files.
54
55 <p>
56 Indexes modified by <b>dbxuncompress</b> and indexes prior to
57 EMBOSS 6.4.0 are uncompressed.
58
59
60 <H2>
61 Algorithm
62 </H2>
63
64 The B+tree index files contain discrete pages with a known maximum
65 size, filled from the first byte with a count of index terms.
66
67 <p>
68 <b>dbxcompress</b> reads all pages, calculating the free space at the
69 end of each page, and then rewrite the pages to disk removing all free space.
70
71 <p>
72 The final page is always written in full. This allows index reading to
73 assume the maximum page size in all cases without reading beyond the
74 end of file.
75
76 <p>
77 Uncompressed index files are required for updating an existing
78 index. Compressed index files provide more efficient storage and
79 retrieval.
80
81 <H2>
82 Usage
83 </H2>
84
85 <!--
86 Example usage, as run from the command-line.
87 Many examples illustrating different behaviours is good.
88 -->
89
90 Here is a sample session with <b>dbxcompress</b>
91 <p>
92
93 <p>
94 <table width="90%"><tr><td bgcolor="#CCFFFF"><pre>
95
96 % <b>dbxcompress embl -indexdir . -field des </b>
97 Compress an uncompressed dbx index
98 Output file [embl.dbxcompress]: <b></b>
99
100 </pre></td></tr></table><p>
101 <p>
102 <a href="#output.1">Go to the output files for this example</a><p><p>
103
104
105
106 <H2>
107 Command line arguments
108 </H2>
109
110 <table CELLSPACING=0 CELLPADDING=3 BGCOLOR="#f5f5ff" ><tr><td>
111 <pre>
112 Compress an uncompressed dbx index
113 Version: EMBOSS:6.6.0.0
114
115 Standard (Mandatory) qualifiers:
116 [-dbname] string EMBOSS database name (Any string from 2 to
117 19 characters, matching regular expression
118 /[A-z][A-z0-9_]+/)
119 [-field] string EMBOSS database field (Any string)
120 -outfile outfile [*.dbxcompress] Output file name
121
122 Additional (Optional) qualifiers: (none)
123 Advanced (Unprompted) qualifiers:
124 -indexdir directory Index directory (optional)
125
126 Associated qualifiers:
127
128 "-indexdir" associated qualifiers
129 -extension string Default file extension
130
131 "-outfile" associated qualifiers
132 -odirectory string Output directory
133
134 General qualifiers:
135 -auto boolean Turn off prompts
136 -stdout boolean Write first file to standard output
137 -filter boolean Read first file from standard input, write
138 first file to standard output
139 -options boolean Prompt for standard and additional values
140 -debug boolean Write debug output to program.dbg
141 -verbose boolean Report some/full command line options
142 -help boolean Report command line options and exit. More
143 information on associated and general
144 qualifiers can be found with -help -verbose
145 -warning boolean Report warnings
146 -error boolean Report errors
147 -fatal boolean Report fatal errors
148 -die boolean Report dying program messages
149 -version boolean Report version number and exit
150
151 </pre>
152 </td></tr></table>
153 <P>
154 <table border cellspacing=0 cellpadding=3 bgcolor="#ccccff">
155 <tr bgcolor="#FFFFCC">
156 <th align="left">Qualifier</th>
157 <th align="left">Type</th>
158 <th align="left">Description</th>
159 <th align="left">Allowed values</th>
160 <th align="left">Default</th>
161 </tr>
162
163 <tr bgcolor="#FFFFCC">
164 <th align="left" colspan=5>Standard (Mandatory) qualifiers</th>
165 </tr>
166
167 <tr bgcolor="#FFFFCC">
168 <td>[-dbname]<br>(Parameter 1)</td>
169 <td>string</td>
170 <td>EMBOSS database name</td>
171 <td>Any string from 2 to 19 characters, matching regular expression /[A-z][A-z0-9_]+/</td>
172 <td><b>Required</b></td>
173 </tr>
174
175 <tr bgcolor="#FFFFCC">
176 <td>[-field]<br>(Parameter 2)</td>
177 <td>string</td>
178 <td>EMBOSS database field</td>
179 <td>Any string</td>
180 <td>&nbsp;</td>
181 </tr>
182
183 <tr bgcolor="#FFFFCC">
184 <td>-outfile</td>
185 <td>outfile</td>
186 <td>Output file name</td>
187 <td>Output file</td>
188 <td><i>&lt;*&gt;</i>.dbxcompress</td>
189 </tr>
190
191 <tr bgcolor="#FFFFCC">
192 <th align="left" colspan=5>Additional (Optional) qualifiers</th>
193 </tr>
194
195 <tr>
196 <td colspan=5>(none)</td>
197 </tr>
198
199 <tr bgcolor="#FFFFCC">
200 <th align="left" colspan=5>Advanced (Unprompted) qualifiers</th>
201 </tr>
202
203 <tr bgcolor="#FFFFCC">
204 <td>-indexdir</td>
205 <td>directory</td>
206 <td>Index directory (optional)</td>
207 <td>Directory</td>
208 <td>&nbsp;</td>
209 </tr>
210
211 <tr bgcolor="#FFFFCC">
212 <th align="left" colspan=5>Associated qualifiers</th>
213 </tr>
214
215 <tr bgcolor="#FFFFCC">
216 <td align="left" colspan=5>"-indexdir" associated directory qualifiers
217 </td>
218 </tr>
219
220 <tr bgcolor="#FFFFCC">
221 <td> -extension</td>
222 <td>string</td>
223 <td>Default file extension</td>
224 <td>Any string</td>
225 <td>&nbsp;</td>
226 </tr>
227
228 <tr bgcolor="#FFFFCC">
229 <td align="left" colspan=5>"-outfile" associated outfile qualifiers
230 </td>
231 </tr>
232
233 <tr bgcolor="#FFFFCC">
234 <td> -odirectory</td>
235 <td>string</td>
236 <td>Output directory</td>
237 <td>Any string</td>
238 <td>&nbsp;</td>
239 </tr>
240
241 <tr bgcolor="#FFFFCC">
242 <th align="left" colspan=5>General qualifiers</th>
243 </tr>
244
245 <tr bgcolor="#FFFFCC">
246 <td> -auto</td>
247 <td>boolean</td>
248 <td>Turn off prompts</td>
249 <td>Boolean value Yes/No</td>
250 <td>N</td>
251 </tr>
252
253 <tr bgcolor="#FFFFCC">
254 <td> -stdout</td>
255 <td>boolean</td>
256 <td>Write first file to standard output</td>
257 <td>Boolean value Yes/No</td>
258 <td>N</td>
259 </tr>
260
261 <tr bgcolor="#FFFFCC">
262 <td> -filter</td>
263 <td>boolean</td>
264 <td>Read first file from standard input, write first file to standard output</td>
265 <td>Boolean value Yes/No</td>
266 <td>N</td>
267 </tr>
268
269 <tr bgcolor="#FFFFCC">
270 <td> -options</td>
271 <td>boolean</td>
272 <td>Prompt for standard and additional values</td>
273 <td>Boolean value Yes/No</td>
274 <td>N</td>
275 </tr>
276
277 <tr bgcolor="#FFFFCC">
278 <td> -debug</td>
279 <td>boolean</td>
280 <td>Write debug output to program.dbg</td>
281 <td>Boolean value Yes/No</td>
282 <td>N</td>
283 </tr>
284
285 <tr bgcolor="#FFFFCC">
286 <td> -verbose</td>
287 <td>boolean</td>
288 <td>Report some/full command line options</td>
289 <td>Boolean value Yes/No</td>
290 <td>Y</td>
291 </tr>
292
293 <tr bgcolor="#FFFFCC">
294 <td> -help</td>
295 <td>boolean</td>
296 <td>Report command line options and exit. More information on associated and general qualifiers can be found with -help -verbose</td>
297 <td>Boolean value Yes/No</td>
298 <td>N</td>
299 </tr>
300
301 <tr bgcolor="#FFFFCC">
302 <td> -warning</td>
303 <td>boolean</td>
304 <td>Report warnings</td>
305 <td>Boolean value Yes/No</td>
306 <td>Y</td>
307 </tr>
308
309 <tr bgcolor="#FFFFCC">
310 <td> -error</td>
311 <td>boolean</td>
312 <td>Report errors</td>
313 <td>Boolean value Yes/No</td>
314 <td>Y</td>
315 </tr>
316
317 <tr bgcolor="#FFFFCC">
318 <td> -fatal</td>
319 <td>boolean</td>
320 <td>Report fatal errors</td>
321 <td>Boolean value Yes/No</td>
322 <td>Y</td>
323 </tr>
324
325 <tr bgcolor="#FFFFCC">
326 <td> -die</td>
327 <td>boolean</td>
328 <td>Report dying program messages</td>
329 <td>Boolean value Yes/No</td>
330 <td>Y</td>
331 </tr>
332
333 <tr bgcolor="#FFFFCC">
334 <td> -version</td>
335 <td>boolean</td>
336 <td>Report version number and exit</td>
337 <td>Boolean value Yes/No</td>
338 <td>N</td>
339 </tr>
340
341 </table>
342
343 <!--
344 DON'T WRITE ANYTHING HERE.
345 IT IS DONE FOR YOU.
346 -->
347
348
349
350
351
352
353
354
355 <H2>
356 Input file format
357 </H2>
358
359 <!--
360 This includes example input file formats.
361 This should be a detailed description and example - assume
362 someone will want to parse this file and will want to know what
363 happens in unusual cases - null input, etc.
364 -->
365
366 <b>dbxcompress</b> reads the index files for a database created with
367 an older version of one of the 'dbx' indexing programs, or
368 uncompressed with <b>dbxuncompress</b>.
369
370 <p>
371
372
373
374
375
376
377 <H2>
378 Output file format
379 </H2>
380
381 <!--
382 This includes example output file formats.
383 This should be a detailed description and example - assume
384 someone will want to parse this file and will want to know what
385 happens in unusual cases - null output, errors etc.
386
387 If you wish to include the standard description of the avalable
388 report formats, use:
389 #include file="inc/reportformats.ihtml"
390 -->
391
392 <b>dbxcompress</b> rewrites the index files in compressed form.
393
394 <p>
395
396
397 <a name="output.1"></a>
398 <h3>Output files for usage example </h3>
399 <p><h3>File: embl.pxde</h3>
400 <table width="90%"><tr><td bgcolor="#CCFFCC">
401 <pre>
402 Type Secondary
403 Compress Yes
404 Pages 21
405 Secpages 225
406 Order 22
407 Fill 21
408 Level 0
409 Pagesize 2048
410 Cachesize 20000
411 Order2 16
412 Fill2 24
413 Secpagesize 512
414 Seccachesize 20000
415 Count 223
416 Fullcount 445
417 Kwlimit 75
418 Idlimit 15
419 </pre>
420 </td></tr></table><p>
421 <p><h3>File: embl.xde</h3>
422 <p>This file contains non-printing characters and so cannot be displayed here.
423 <p><h3>File: embl.dbxcompress</h3>
424 <table width="90%"><tr><td bgcolor="#CCFFCC">
425 <pre>
426 Compressing index 'des' for database 'embl'
427 Index 'des' opened, compressing
428 Completed
429 </pre>
430 </td></tr></table><p>
431
432
433
434
435
436 <H2>
437 Data files
438 </H2>
439
440 <!--
441 Any data files used (e.g. translation table file)
442 This includes example data file formats if they are
443 not obvious.
444
445 If you wish to include the standard description of what data
446 files are and how to use embossdata to inspect and retrieve
447 them, use:
448
449 #include file="inc/localfiles.ihtml"
450 -->
451
452 None.
453
454
455
456 <H2>
457 Notes
458 </H2>
459
460 <!--
461 Restrictions.
462 Interesting behaviour.
463 Useful things you can do with this program.
464 -->
465
466 None.
467
468
469
470
471
472
473
474 <H2>
475 References
476 </H2>
477
478 <!--
479 Bibliography for methods used.
480 <ol>
481
482 <li>
483
484 </ol>
485
486 -->
487
488 None.
489
490
491
492
493
494
495
496
497 <H2>
498 Warnings
499 </H2>
500
501 <!--
502 Potentially stupid things the program will let you do.
503 -->
504
505 None.
506
507
508
509
510
511
512
513 <H2>
514 Diagnostic Error Messages
515 </H2>
516
517 <!--
518 Error messages specific to this program, eg:
519 "FATAL xxx" - means you have not set up the xxx data using program <b>prog</b>.<p>
520 -->
521
522 None.
523
524
525
526
527
528
529
530 <H2>
531 Exit status
532 </H2>
533
534 <!--
535 Description of the exit status for various error conditions
536 -->
537
538 It always exits with status 0.
539
540
541
542
543
544
545
546
547 <H2>
548 Known bugs
549 </H2>
550
551
552 <!--
553 Bugs noted but not yet fixed.
554 -->
555
556 None.
557
558
559
560
561
562
563
564
565 <!--
566 <H2>
567 See also
568 </H2>
569 -->
570 <h2><a name="See also">See also</a></h2>
571 <table border cellpadding=4 bgcolor="#FFFFF0">
572 <tr><th>Program name</th>
573 <th>Description</th></tr>
574 <tr>
575 <td><a href="dbiblast.html">dbiblast</a></td>
576 <td>Index a BLAST database</td>
577 </tr>
578
579 <tr>
580 <td><a href="dbifasta.html">dbifasta</a></td>
581 <td>Index a fasta file database</td>
582 </tr>
583
584 <tr>
585 <td><a href="dbiflat.html">dbiflat</a></td>
586 <td>Index a flat file database</td>
587 </tr>
588
589 <tr>
590 <td><a href="dbigcg.html">dbigcg</a></td>
591 <td>Index a GCG formatted database</td>
592 </tr>
593
594 <tr>
595 <td><a href="dbxedam.html">dbxedam</a></td>
596 <td>Index the EDAM ontology using b+tree indices</td>
597 </tr>
598
599 <tr>
600 <td><a href="dbxfasta.html">dbxfasta</a></td>
601 <td>Index a fasta file database using b+tree indices</td>
602 </tr>
603
604 <tr>
605 <td><a href="dbxflat.html">dbxflat</a></td>
606 <td>Index a flat file database using b+tree indices</td>
607 </tr>
608
609 <tr>
610 <td><a href="dbxgcg.html">dbxgcg</a></td>
611 <td>Index a GCG formatted database using b+tree indices</td>
612 </tr>
613
614 <tr>
615 <td><a href="dbxobo.html">dbxobo</a></td>
616 <td>Index an obo ontology using b+tree indices</td>
617 </tr>
618
619 <tr>
620 <td><a href="dbxreport.html">dbxreport</a></td>
621 <td>Validate index and report internals for dbx databases</td>
622 </tr>
623
624 <tr>
625 <td><a href="dbxresource.html">dbxresource</a></td>
626 <td>Index a data resource catalogue using b+tree indices</td>
627 </tr>
628
629 <tr>
630 <td><a href="dbxstat.html">dbxstat</a></td>
631 <td>Dump statistics for dbx databases</td>
632 </tr>
633
634 <tr>
635 <td><a href="dbxtax.html">dbxtax</a></td>
636 <td>Index NCBI taxonomy using b+tree indices</td>
637 </tr>
638
639 <tr>
640 <td><a href="dbxuncompress.html">dbxuncompress</a></td>
641 <td>Uncompress a compressed dbx index</td>
642 </tr>
643
644 </table>
645 <!--
646 Add any comments about other associated programs (to prepare
647 data files?) that seealso doesn't find.
648 -->
649
650
651
652
653
654
655
656
657
658
659 <H2>
660 Author(s)
661 </H2>
662
663 Peter Rice
664 <br>
665 European Bioinformatics Institute, Wellcome Trust Genome Campus, Hinxton, Cambridge CB10 1SD, UK
666
667 <p>
668 Please report all bugs to the EMBOSS bug team (emboss-bug&nbsp;&copy;&nbsp;emboss.open-bio.org) not to the original author.
669 <H2>
670 History
671 </H2>
672 <!--
673 Date written and what changes have been made go in this file.
674 -->
675
676
677
678
679 <H2>
680 Target users
681 </H2>
682 <!--
683 For general users, use this text
684 -->
685 This program is intended to be used by administrators responsible
686 for software and database installation and maintenance.
687
688 <H2>
689 Comments
690 </H2>
691 <!--
692 User/developer/other comments go in this file.
693 -->
694 None
695
696
697 </BODY>
698 </HTML>
699