File: summary.rst

package info (click to toggle)
bedops 2.4.41%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 21,148 kB
  • sloc: ansic: 28,562; cpp: 15,359; sh: 2,704; makefile: 2,687; xml: 1,669; python: 1,582; csh: 823; perl: 365; java: 172
file content (391 lines) | stat: -rw-r--r-- 50,190 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
.. _summary:

Summary
=======

These tables summarize BEDOPS utilities by option, file inputs and BED column requirements.

=======================================
Set operation and statistical utilities
=======================================

--------------
``bedextract``
--------------

* Efficiently extracts features from BED input.
* BEDOPS :ref:`bedextract` documentation.

+-------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| option                        | description                                                          | min. file inputs | max. file inputs | min. BED columns |
+===============================+======================================================================+==================+==================+==================+
| ``--list-chr``                | Print every chromosome found in ``input.bed``                        | 1                | 1                | 3                |
+-------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| ``<chromosome>``              | Retrieve all rows for specified chromosome, *e.g.* ``bedextract chr8 | 1                | 1                | 3                |
|                               | input.bed``                                                          |                  |                  |                  |
+-------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| ``<query> <reference>``       | Grab elements of ``query`` that overlap elements in reference. Same  | 2                | 2                | 3                |
|                               | as ``bedops -e -1 query reference``, except that this option fails   |                  |                  |                  |
|                               | when ``query`` contains fully-nested BED elements. May use ``-`` to  |                  |                  |                  |
|                               | indicate ``stdin`` for ``reference`` only.                           |                  |                  |                  |
+-------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+

----------
``bedmap``
----------

* Maps source signals from ``map-file`` onto qualified target regions from ``ref-file``. Calculates an output for every ``ref-file`` element.
* BEDOPS :ref:`bedmap` documentation.

+-------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| option                        | description                                                          | min. file inputs | max. file inputs | min. BED columns |
+===============================+======================================================================+==================+==================+==================+
| ``--bases``                   | Reports the total number of bases from ``map-file`` that overlap the | 1                | 2                | 3                |
|                               | ``ref-file`` 's element.                                             |                  |                  |                  |
+-------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| ``--bases-uniq``              | Reports the number of distinct bases from ``ref-file`` 's element    | 1                | 2                | 3                |
|                               | overlapped by elements in ``map-file``.                              |                  |                  |                  |
+-------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| ``--bases-uniq-f``            | Reports the fraction of distinct bases from ``ref-file`` 's element  | 1                | 2                | 3                |
|                               | elements in ``map-file``.                                            |                  |                  |                  |
+-------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| ``--bp-ovr <int>``            | Require ``<int>`` bases of overlap between elements of input files.  | 1                | 2                | 3                |
+-------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| ``--chrom <chromosome>``      | Process data for given ``<chromosome>`` only.                        | 1                | 2                | 3                |
+-------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| ``--count``                   | Reports the number of overlapping elements in ``map-file``.          | 1                | 2                | 3                |
+-------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| ``--cv``                      | Reports the Coefficient of Variation: the result of ``--stdev``      | 1                | 2                | 5                | 
|                               | divided by the result of ``--mean``.                                 |                  |                  |                  |
+-------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| ``--ec``                      | Error-check all input files (slower).                                | 1                | 2                | 3                |
+-------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| ``--echo``                    | Echo each line from ``ref-file``.                                    | 1                | 2                | 3                |
+-------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| ``--echo-map``                | Reports the overlapping elements found in ``map-file``.              | 1                | 2                | 3                |
+-------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| ``--echo-map-id``             | Reports the IDs (4th column) from overlapping ``map-file`` elements. | 1                | 2                | 4                |
+-------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| ``--echo-map-id-uniq``        | List unique IDs from overlapping ``map-file`` elements.              | 1                | 2                | 4                |
+-------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| ``--echo-map-range``          | Reports the genomic range of overlapping elements from ``map-file``. | 1                | 2                | 3                |
+-------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| ``--echo-map-score``          | Reports the scores (5th column) from overlapping ``map-file``        | 1                | 2                | 5                |
|                               | elements.                                                            |                  |                  |                  |
+-------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| ``--echo-map-size``           | Calculates difference between start and stop coordinates (or size)   | 1                | 2                | 3                |
|                               | of each mapped element.                                              |                  |                  |                  |
+-------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| ``--echo-overlap-size``       | Calculates size of overlap between each mapped element and its       | 1                | 2                | 3                |
|                               | reference element.                                                   |                  |                  |                  |
+-------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| ``--echo-ref-name``           | Reports the first 3 fields of ``ref-file`` element in                | 1                | 2                | 3                |
|                               | chrom:start-end format.                                              |                  |                  |                  |
+-------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| ``--echo-ref-size``           | Reports the length of the ``ref-file`` element.                      | 1                | 2                | 3                |
+-------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| ``--faster``                  | **(Advanced)** Strong input assumptions are made. Review documents   | 1                | 2                | 5                |
|                               | before use. Compatible with ``--bp-ovr`` and ``--range`` overlap     |                  |                  |                  |
|                               | options only.                                                        |                  |                  |                  |
+-------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| ``--fraction-ref <val>``      | The fraction of the element's size from ``ref-file`` that must       | 1                | 2                | 5                |
|                               | overlap the element in ``map-file``. Expects ``0 < val <= 1``.       |                  |                  |                  |
+-------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| ``--fraction-map <val>``      | The fraction of the element's size from ``map-file`` that must       | 1                | 2                | 5                |
|                               | overlap the element in ``ref-file``. Expects ``0 < val <= 1``.       |                  |                  |                  |
+-------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| ``--fraction-both <val>``     | Both ``--fraction-ref <val>`` and ``--fraction-map <val>`` must be   | 1                | 2                | 5                |
|                               | true to qualify as overlapping. Expects ``0 < val <= 1``.            |                  |                  |                  |
+-------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| ``--fraction-either <val>``   | Both ``--fraction-ref <val>`` and ``--fraction-map <val>`` must be   | 1                | 2                | 5                |
|                               | true to qualify as overlapping. Expects ``0 < val <= 1``.            |                  |                  |                  |
+-------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| ``--exact``                   | Shorthand for ``--fraction-both 1``. First three fields from         | 1                | 2                | 5                |
|                               | ``map-file`` must be identical to ``ref-file`` element.              |                  |                  |                  |
+-------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| ``--indicator``               | Reports the presence of one or more overlapping elements in          | 1                | 2                | 3                |
|                               | ``map-file`` as a binary value (``0`` or ``1``).                     |                  |                  |                  |
+-------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| ``--kth <val>``               | Reports the value at the *k* th fraction. A generalized median-like  | 1                | 2                | 5                |
|                               | calculation, where ``--kth 0.5`` is the median. (``0 < val <= 1``)   |                  |                  |                  |
+-------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| ``--mad <mult=1>``            | Reports the 'median absolute deviation' of overlapping elements in   | 1                | 2                | 5                |
|                               | ``map-file``, multiplied by ``<mult>``.                              |                  |                  |                  |
+-------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| ``--max``                     | Reports the highest score from overlapping elements in ``map-file``. | 1                | 2                | 5                |
+-------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| ``--max-element``             | The lexicographically "smallest" element with the highest score from | 1                | 2                | 5                |
|                               | overlapping elements in ``map-file``. If no overlapping element      |                  |                  |                  |
|                               | exists, ``NAN`` is reported (unless ``--skip-unmapped`` is used).    |                  |                  |                  |
+-------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| ``--max-element-rand``        | A randomly-chosed element with the highest score from overlapping    | 1                | 2                | 5                |
|                               | elements in ``map-file``. If no overlapping element exists, ``NAN``  |                  |                  |                  |
|                               | is reported (unless ``--skip-unmapped`` is used).                    |                  |                  |                  |
+-------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| ``--mean``                    | Reports the average score from overlapping elements in ``map-file``. | 1                | 2                | 5                |
+-------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| ``--median``                  | Reports the median score from overlapping elements in ``map-file``.  | 1                | 2                | 5                |
+-------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| ``--min``                     | Reports the lowest score from overlapping elements in ``map-file``.  | 1                | 2                | 5                |
+-------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| ``--min-element``             | The lexicographically "smallest" element with the lowest score from  | 1                | 2                | 5                |
|                               | overlapping elements in ``map-file``. If no overlapping element      |                  |                  |                  |
|                               | exists, ``NAN`` is reported (unless ``--skip-unmapped`` is used).    |                  |                  |                  |
+-------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| ``--min-element-rand``        | A randomly-chosed element with the lowest score from overlapping     | 1                | 2                | 5                |
|                               | elements in ``map-file``. If no overlapping element exists, ``NAN``  |                  |                  |                  |
|                               | is reported (unless ``--skip-unmapped`` is used).                    |                  |                  |                  |
+-------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| ``--skip-unmapped``           | Omits printing reference elements which do not associate with any    | 1                | 2                | 3                |
|                               | mapped elements.                                                     |                  |                  |                  |
+-------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| ``--stdev``                   | Reports the square root of the result of ``--variance``.             | 1                | 2                | 5                |
+-------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| ``--sum``                     | Reports the accumulated value from scores of overlapping elements in | 1                | 2                | 5                |
|                               | ``map-file``.                                                        |                  |                  |                  |
+-------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| ``--sweep-all``               | Reads through entire ``map-file`` dataset to avoid early termination | 1                | 2                | 3                |
|                               | that may cause SIGPIPE or other I/O errors.                          |                  |                  |                  |
+-------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| ``--tmean <low> <hi>``        | Reports the mean score from overlapping elements in ``map-file``,    | 1                | 2                | 5                |
|                               | after ignoring the bottom ``<low>`` and top ``<hi>`` fractions of    |                  |                  |                  |
|                               | those scores. (``0 <= low <= 1``, ``0 <= hi <= 1``, ``low + hi <=    |                  |                  |                  |
|                               | 1``).                                                                |                  |                  |                  |
+-------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| ``--variance``                | Reports the variance of scores from overlapping elements in          | 1                | 2                | 5                |
|                               | ``map-file``.                                                        |                  |                  |                  |
+-------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+

----------
``bedops``
----------

* Offers set and multiset operations for files in BED format.
* BEDOPS :ref:`bedops` documentation.

+-------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| option                        | description                                                          | min. file inputs | max. file inputs | min. BED columns |
+===============================+======================================================================+==================+==================+==================+
| ``--chrom <chromosome>``      | Process data for given ``chromosome`` only.                          | 1                | No imposed limit | 3                |
+-------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| ``--complement``, ``-c``      | Reports the intervening intervals between the input coordinate       | 1                | No imposed limit | 3                |
|                               | segments.                                                            |                  |                  |                  |
+-------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| ``--chop``, ``-w``            | Breaks up merged regions into fixed-size chunks, optionally anchored | 1                | No imposed limit | 3                |
|                               | on start coordinates a fixed distance apart.                         |                  |                  |                  |
+-------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| ``--difference``, ``-d``      | Reports the intervals found in the first file that are not present   | 2                | No imposed limit | 3                |
|                               | in any other input file.                                             |                  |                  |                  |
+-------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| ``--ec``                      | Error-check input files (slower).                                    | 1                | No imposed limit | 3                |
+-------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| ``--element-of``, ``-e``      | Reports rows from the first file that overlap, by a specified        | 2                | No imposed limit | 3                |
|                               | percentage or number of base pairs, the merged segments from all     |                  |                  |                  |
|                               | other input files.                                                   |                  |                  |                  |
+-------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| ``--header``                  | Accept headers (VCF, GFF, SAM, BED, WIG) in any input file.          | 1                | No imposed limit | 3                |
+-------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| ``--intersect``, ``-i``       | Reports the intervals common to all input files.                     | 2                | No imposed limit | 3                |
+-------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| ``--merge``, ``-m``           | Reports intervals from all input files, after merging overlapping    | 1                | No imposed limit | 3                |
|                               | and adjoining segments.                                              |                  |                  |                  |
+-------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| ``--not-element-of``, ``-n``  | Reports exactly everything that ``--element-of`` does not, given the | 2                | No imposed limit | 3                |
|                               | same overlap criterion.                                              |                  |                  |                  |
+-------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| ``--partition``, ``-p``       | Reports all disjoint intervals from all input files. Overlapping     | 1                | No imposed limit | 3                |
|                               | segments are cut up into pieces at all segment boundaries.           |                  |                  |                  |
+-------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| ``--range L:R``               | Add ``L`` bases to all start coordinates and ``R`` base to end       | 1                | No imposed limit | 3                |
|                               | coordinates. Either value may be positive or negative to grow or     |                  |                  |                  |
|                               | shrink regions, respectively. With the ``-e`` or ``-n`` operation,   |                  |                  |                  |
|                               | the first (reference) file is not padded, unlike all other files.    |                  |                  |                  |
+-------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| ``--range S``                 | Pad input file(s) coordinates symmetrically by ``S`` bases. This is  | 1                | No imposed limit | 3                |
|                               | shorthand for ``--range -S:S``.                                      |                  |                  |                  |
+-------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| ``--symmdiff``, ``-s``        | Reports the intervals found in exactly one input file.               | 2                | No imposed limit | 3                |
+-------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| ``--everything``, ``-u``      | Reports the intervals from all input files in sorted order.          | 1                | No imposed limit | 3                |
|                               | Duplicates are retained in the output.                               |                  |                  |                  |
+-------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+

--------------------
``closest-features``
--------------------

* For every element in ``input-file``, find those elements in ``query-file`` nearest to its left and right edges.
* BEDOPS :ref:`closest-features` documentation.

+-------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| option                        | description                                                          | min. file inputs | max. file inputs | min. BED columns |
+===============================+======================================================================+==================+==================+==================+
| (no option)                   | NA                                                                   | 2                | 2                | 3                |
+-------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| ``--chrom <chromosome>``      | Process data for given ``<chromosome>`` only.                        | 2                | 2                | 3                |
+-------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| ``--dist``                    | Output includes the signed distances between the ``input-file``      | 2                | 2                | 3                |
|                               | element and the closest elements in ``query-file``.                  |                  |                  |                  |
+-------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| ``--ec``                      | Error-check all input files (slower).                                | 2                | 2                | 3                |
+-------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| ``--no-overlaps``             | Do not consider elements that overlap. Overlapping elements,         | 2                | 2                | 3                |
|                               | otherwise, have highest precedence.                                  |                  |                  |                  |
+-------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| ``--no-ref``                  | Do not echo elements from ``input-file``.                            | 2                | 2                | 3                |
+-------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| ``--closest``                 | Choose the nearest element from ``query-file`` only. Ties go to the  | 2                | 2                | 3                |
|                               | leftmost closest element.                                            |                  |                  |                  |
+-------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+

=======
Sorting
=======

------------
``sort-bed``
------------

* Sorts input BED file(s) into the order required by other utilities. Loads all input data into memory.
* BEDOPS :ref:`sort-bed` documentation.

+-------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| option                        | description                                                          | min. file inputs | max. file inputs | min. BED columns |
+===============================+======================================================================+==================+==================+==================+
| (no option)                   | NA                                                                   | 1                | 1000             | 3                |
+-------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| ``--max-mem <val>``           | ``<val>`` specifies the maximum memory usage for the :ref:`sort-bed` | 1                | 1000             | 3                |
|                               | process, which is useful for very large BED inputs. For example,     |                  |                  |                  |
|                               | ``--max-mem`` may be ``8G``, ``8000M``, or ``8000000000`` to specify |                  |                  |                  |
|                               | 8 GB of memory.                                                      |                  |                  |                  |
+-------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| ``--unique``                  | Report unique elements (those which only occur once) in output.      | 1                | 1000             | 3                |
+-------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| ``--duplicates``              | Report duplicate elements (those which occur 2+ times) in output.    | 1                | 1000             | 3                |
+-------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+

==========================
Compression and extraction
==========================

----------
``starch``
----------

* Lossless compression of any BED file.
* BEDOPS :ref:`starch` documentation.

+-------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| option                        | description                                                          | min. file inputs | max. file inputs | min. BED columns |
+===============================+======================================================================+==================+==================+==================+
| (no option)                   | NA                                                                   | 1                | 1                | 3                |
+-------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| ``--bzip2`` or ``--gzip``     | The internal compression method. The default ``--bzip2`` method      | 1                | 1                | 3                |
|                               | favors storage efficiency, while ``--gzip`` favors compression and   |                  |                  |                  |
|                               | extraction time performance.                                         |                  |                  |                  |
+-------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| ``--note="foo bar..."``       | Append note to output archive metadata (optional).                   | 1                | 1                | 3                |
+-------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| ``--report-progress=N``       | Write progress to standard error stream for every N input elements.  | 1                | 1                | 3                |
+-------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+

------------
``unstarch``
------------

* Extraction of a ``starch`` archive or attributes.
* BEDOPS :ref:`unstarch` documentation.

+------------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| option                             | description                                                          | min. file inputs | max. file inputs | min. BED columns |
+====================================+======================================================================+==================+==================+==================+
| (no option)                        | NA                                                                   | 1                | 1                | NA               |
+------------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| ``--archive-type``                 | Show archive's compression type (either ``bzip2`` or ``gzip``).      | 1                | 1                | NA               |
+------------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| ``--archive-version``              | Show archive version (at this time, either 1.x or 2.x).              | 1                | 1                | NA               |
+------------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| ``--archive-timestamp``            | Show archive creation timestamp (ISO 8601 format).                   | 1                | 1                | NA               |
+------------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| ``--bases <chromosome>``           | Show total, non-unique base counts for optional ``<chromosome>``     | 1                | 1                | NA               |
|                                    | (omitting ``<chromosome>`` shows total non-unique base count).       |                  |                  |                  |
+------------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| ``--bases-uniq <chromosome>``      | Show unique base counts for optional ``<chromosome>`` (omitting      | 1                | 1                | NA               |
|                                    | ``<chromosome>`` shows total, unique base count).                    |                  |                  |                  |
+------------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| ``<chromosome>``                   | Decompress information for a single ``<chromosome>`` only.           | 1                | 1                | NA               |
+------------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| ``--duplicatesExist`` or           | Report if optional ``<chromosome>`` or chromosomes contain duplicate | 1                | 1                | NA               |
| ``--duplicatesExistAsString``      | elements as 0/1 numbers or false/true strings                        |                  |                  |                  |
| with ``<chromosome>``              |                                                                      |                  |                  |                  |
+------------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| ``--elements <chromosome>``        | Show element count for optional ``<chromosome>`` (omitting           | 1                | 1                | NA               |
|                                    | ``<chromosome>`` shows total element count).                         |                  |                  |                  |
+------------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| ``--elements-max-string-length``   | Show element maximum string length for optional ``<chromosome>``     | 1                | 1                | NA               |
|                                    | (omitting ``<chromosome>`` shows maximum string length over all      |                  |                  |                  |
|                                    | chromosomes).                                                        |                  |                  |                  |
+------------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| ``--is-starch``                    | Test if the <starch-file> is a valid starch archive, returning 0/1   | 1                | 1                | NA               |
|                                    | for a false/true result                                              |                  |                  |                  | 
+------------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| ``--list`` or ``--list-json``      | Print the metadata for a ``starch`` file, either in tabular form or  | 1                | 1                | NA               |
|                                    | with JSON formatting.                                                |                  |                  |                  |
+------------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| ``--list-chr`` or                  | List all chromosomes in ``starch`` archive (similar to               | 1                | 1                | NA               |
| ``--list-chromosomes``             | ``bedextract --list-chr``).                                          |                  |                  |                  |
+------------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| ``--nestedsExist`` or              | Report if optional ``<chromosome>`` or chromosomes contain nested    | 1                | 1                | NA               |
| ``--nestedsExistAsString``         | elements as 0/1 numbers or false/true strings                        |                  |                  |                  |
| with ``<chromosome>``              |                                                                      |                  |                  |                  |
+------------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| ``--note``                         | Show descriptive note (if originally added to archive).              | 1                | 1                | NA               |
+------------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| ``--signature`` with               | Show SHA-1 signature of specified chromosome (Base64-encoded)        | 1                | 1                | NA               |
| ``<chromosome>``                   | or all signatures if chromosome is not specified.                    |                  |                  |                  |
+------------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| ``--verify-signature`` with        | Compare SHA-1 signature of specified chromosome with signature that  | 1                | 1                | NA               |
| ``<chromosome>``                   | is stored in the archive metadata, reporting error is mismatched.    |                  |                  |                  |
+------------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+

-------------
``starchcat``
-------------

* Merge multiple ``starch`` archive inputs into one ``starch`` archive output.
* BEDOPS :ref:`starchcat` documentation.

+-------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| option                        | description                                                          | min. file inputs | max. file inputs | min. BED columns |
+===============================+======================================================================+==================+==================+==================+
| (no option)                   | NA                                                                   | 1                | No imposed limit | NA               |
+-------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| ``--bzip2`` or ``--gzip``     | The internal compression method. The default ``--bzip2`` method      | 1                | No imposed limit | NA               |
|                               | favors storage efficiency, while ``--gzip`` favors compression and   |                  |                  |                  |
|                               | extraction time performance.                                         |                  |                  |                  |
+-------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| ``--note="foo bar..."``       | Append note to output archive metadata (optional).                   | 1                | No imposed limit | NA               |
+-------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| ``--report-progress=N``       | Write progress to standard error stream for every N input elements.  | 1                | No imposed limit | NA               |
+-------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+

---------------
``starchstrip``
---------------

* Extract or filter a ``starch`` archive by one or more specified chromosome names.
* BEDOPS :ref:`starchstrip <starchstrip>` documentation.

+-------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| option                        | description                                                          | min. file inputs | max. file inputs | min. BED columns |
+===============================+======================================================================+==================+==================+==================+
| (no option)                   | NA                                                                   | 1                | No imposed limit | NA               |
+-------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+
| ``--include`` or ``--exclude``| Writes output with inclusion or exclusion of specified chromosome    | NA               | No imposed limit | NA               |
| with <chromosomes>            | name records (comma-delimited string).                               |                  |                  |                  |
+-------------------------------+----------------------------------------------------------------------+------------------+------------------+------------------+


.. |--| unicode:: U+2013   .. en dash
.. |---| unicode:: U+2014  .. em dash, trimming surrounding whitespace
   :trim: