I consider this low priority, but probably an easy fix.
Observed behaviour
Attempting to use biom head -n 0 ... and/or -m 0 both fail with an ugly traceback ending IndexError: n cannot be <= 0. or IndexError: m cannot be <= 0.
Tested using macOS, biom-format installed via conda:
$ biom --version
biom, version 2.1.14
Expected behaviour:
Using -m 0 would show just the first column of identifiers (and no columns of samples). Work around:
$ biom head -m 1 example.biom | cut -f 1
Using -n 0 would show just the headers (including sample names unless -m 0), but none of the observations. Workaround:
I consider this low priority, but probably an easy fix.
Observed behaviour
Attempting to use
biom head -n 0 ...
and/or-m 0
both fail with an ugly traceback endingIndexError: n cannot be <= 0.
orIndexError: m cannot be <= 0.
Tested using macOS, biom-format installed via conda:
Expected behaviour:
Using
-m 0
would show just the first column of identifiers (and no columns of samples). Work around:$ biom head -m 1 example.biom | cut -f 1
Using
-n 0
would show just the headers (including sample names unless-m 0
), but none of the observations. Workaround:$ biom head -n 1 example.biom | grep "^#"