|
| 1 | +<!-- |
| 2 | +SPDX-FileCopyrightText: 2006-2025, Knut Reinert & Freie Universität Berlin |
| 3 | +SPDX-FileCopyrightText: 2016-2025, Knut Reinert & MPI für molekulare Genetik |
| 4 | +SPDX-License-Identifier: CC-BY-4.0 |
| 5 | +--> |
| 6 | + |
| 7 | +# Nomenclature |
| 8 | + |
| 9 | +For an IBF, `User bins` and `Active bins` are the same. |
| 10 | +In an HIBF, |
| 11 | + * `User bins`: Bins that actually contain the data of a user bin. |
| 12 | + * `Active bins`: Merged or deleted bins (see `seqan::hibf::bin_kind`). |
| 13 | + |
| 14 | +# Format |
| 15 | + |
| 16 | +* The data for each IBF is printed in a block. |
| 17 | +* The children of an IBF are printed after the parent. |
| 18 | +* Intendation levels are used to indicate the hierarchy of IBFs, e.g., the children of an IBF are indented by one level. |
| 19 | +* A level of indentation is four spaces. |
| 20 | +* The data for an IBF in the HIBF is indented by two spaces. |
| 21 | +* The [HIBF with Format Annotations](#hibf-with-format-annotations) section shows an output with explanations/annotations. |
| 22 | + |
| 23 | +# Miscellaneous |
| 24 | + |
| 25 | +* The output is colored on the terminal. |
| 26 | +* The output is not colored when redirected/piped. |
| 27 | +* Test data may not be up-to-date if IBF/HIBF implementations have changed. |
| 28 | +* Test data added: 2025-07-29 |
| 29 | + |
| 30 | +# IBF |
| 31 | + |
| 32 | +**Example data:** https://ftp.seqan.de/hibf/util.test.ibf \ |
| 33 | +**Command:** `./inspect --input util.test.ibf` |
| 34 | + |
| 35 | +```text |
| 36 | +User bins: 128 |
| 37 | +Technical bins: 128 |
| 38 | +Empty bins: 0 |
| 39 | +Bin words: 2 |
| 40 | +Bin size: 1,024 |
| 41 | +Total size: 131,072 |
| 42 | +Hash functions: 3 |
| 43 | +Hash shift: 53 |
| 44 | +``` |
| 45 | + |
| 46 | +# Simple HIBF |
| 47 | + |
| 48 | +**Example data:** https://ftp.seqan.de/hibf/util.test.simple.hibf \ |
| 49 | +**Command:** `./inspect --input util.test.simple.hibf --hibf` |
| 50 | + |
| 51 | +```text |
| 52 | +User bins: 2 |
| 53 | +Empty bins: 0 |
| 54 | +IBFs: 1 |
| 55 | +Total size: 4,112 |
| 56 | +ID: 0 Level: 0 Children: 0 |
| 57 | + User bins: 2 |
| 58 | + Active bins: 64 |
| 59 | + Technical bins: 64 |
| 60 | + Empty bins: 0 |
| 61 | + Bin words: 1 |
| 62 | + Bin size: 48 |
| 63 | + Total size: 3,072 |
| 64 | + Hash functions: 2 |
| 65 | + Hash shift: 58 |
| 66 | +``` |
| 67 | + |
| 68 | +# HIBF |
| 69 | + |
| 70 | +**Example data:** https://ftp.seqan.de/hibf/util.test.hibf \ |
| 71 | +**Command:** `./inspect --input util.test.hibf --hibf` |
| 72 | + |
| 73 | +```text |
| 74 | +User bins: 4,097 |
| 75 | +Empty bins: 0 |
| 76 | +IBFs: 66 |
| 77 | +Total size: 5,362,464 |
| 78 | +ID: 0 Level: 0 Children: 64 |
| 79 | + User bins: 0 |
| 80 | + Active bins: 64 |
| 81 | + Technical bins: 64 |
| 82 | + Empty bins: 0 |
| 83 | + Bin words: 1 |
| 84 | + Bin size: 2,642 |
| 85 | + Total size: 169,088 |
| 86 | + Hash functions: 2 |
| 87 | + Hash shift: 52 |
| 88 | + ID: 3 Level: 1 Children: 0 |
| 89 | + User bins: 64 |
| 90 | + Active bins: 64 |
| 91 | + Technical bins: 64 |
| 92 | + Empty bins: 0 |
| 93 | + Bin words: 1 |
| 94 | + Bin size: 1,245 |
| 95 | + Total size: 79,680 |
| 96 | + Hash functions: 2 |
| 97 | + Hash shift: 53 |
| 98 | + [...] |
| 99 | + ID: 1 Level: 1 Children: 1 |
| 100 | + User bins: 63 |
| 101 | + Active bins: 64 |
| 102 | + Technical bins: 64 |
| 103 | + Empty bins: 0 |
| 104 | + Bin words: 1 |
| 105 | + Bin size: 1,245 |
| 106 | + Total size: 79,680 |
| 107 | + Hash functions: 2 |
| 108 | + Hash shift: 53 |
| 109 | + ID: 2 Level: 2 Children: 0 |
| 110 | + User bins: 2 |
| 111 | + Active bins: 64 |
| 112 | + Technical bins: 64 |
| 113 | + Empty bins: 0 |
| 114 | + Bin words: 1 |
| 115 | + Bin size: 394 |
| 116 | + Total size: 25,216 |
| 117 | + Hash functions: 2 |
| 118 | + Hash shift: 55 |
| 119 | +``` |
| 120 | + |
| 121 | +# HIBF with Format Annotations |
| 122 | + |
| 123 | +```text |
| 124 | +User bins: 4,097 ──────┐ |
| 125 | +Empty bins: 0 ├ HIBF Metadata |
| 126 | +IBFs: 66 │ |
| 127 | +Total size: 5,362,464 ─┘ |
| 128 | +ID: 0 Level: 0 Children: 64 ─┬── Root IBF |
| 129 | + User bins: 0 │ |
| 130 | + Active bins: 64 │ |
| 131 | + Technical bins: 64 │ |
| 132 | + Empty bins: 0 │ |
| 133 | + Bin words: 1 ├ Root IBF Metadata |
| 134 | + Bin size: 2,642 │ |
| 135 | + Total size: 169,088 │ |
| 136 | + Hash functions: 2 │ |
| 137 | + Hash shift: 52 ─────────────┘ |
| 138 | + ID: 3 Level: 1 Children: 0 ──────┐ |
| 139 | + User bins: 64 │ |
| 140 | + Active bins: 64 │ |
| 141 | + Technical bins: 64 │ |
| 142 | + Empty bins: 0 │ |
| 143 | + Bin words: 1 │ |
| 144 | + Bin size: 1,245 │ |
| 145 | + Total size: 79,680 │ |
| 146 | + Hash functions: 2 │ |
| 147 | + Hash shift: 53 │ |
| 148 | + [...] ├ Direct Children if the Root IBF |
| 149 | + ID: 1 Level: 1 Children: 1 │ |
| 150 | + User bins: 63 │ |
| 151 | + Active bins: 64 │ |
| 152 | + Technical bins: 64 │ |
| 153 | + Empty bins: 0 │ |
| 154 | + Bin words: 1 │ |
| 155 | + Bin size: 1,245 │ |
| 156 | + Total size: 79,680 │ |
| 157 | + Hash functions: 2 │ |
| 158 | + Hash shift: 53 ─────────────────┘ |
| 159 | + ID: 2 Level: 2 Children: 0 ─┐ |
| 160 | + User bins: 2 │ |
| 161 | + Active bins: 64 │ |
| 162 | + Technical bins: 64 │ |
| 163 | + Empty bins: 0 │ |
| 164 | + Bin words: 1 ├ Child of IBF with ID=1 |
| 165 | + Bin size: 394 │ |
| 166 | + Total size: 25,216 │ |
| 167 | + Hash functions: 2 │ |
| 168 | + Hash shift: 55 ────────────┘ |
| 169 | +``` |
0 commit comments