mcxdump(1)
โจ NAME โจ
mcxdump(1) is a USER COMMANDS page, bestie. mcxdump โ dump matrices, optionally map indices to labels. ๐
๐ฆ SYNOPSIS ๐ฆ
mcxdump [-imx <fname> (matrix file)] [-icl <fname> (cluster file to be
dumped line-wise)] [-tf <spec> (apply unary transformations to input
matrix)] [-imx-cat <fname> (concatenation matrix file)] [-imx-tree
<fname> (concatenation cone file)] [--skeleton (read empty matrix, honour
domains)] [-o <fname> (output file name ('-' for stdout))] [-digits <num>
(output precision)] [-tab <fname> (row/column tab (label) file)] [-tabc
<fname> (column tab file)] [-tabr <fname> (row tab file)] [--lazy-tab
(allow tab/domain mismatch)] [--transpose (work with the transpose)]
[--no-values (omit values)] [--omit-empty (omit empty columns)] [--no-
loops (omit loops)] [--force-loops (force loops)] [--dump-pairs (emit
pairs per line)] [--dump-table (dump table format)] [-dump-sif <tag>
(dump sif format)] [-dump-sifx <tag> (dump extended sif format with
weights)] [--dump-lines (emit rows per line)] [--dump-rlines (omit
leading identifier)] [--dump-vlines (add leading identifier values)]
[--dump-lead-off (omit leading identifier)] [--dump-lower (dump lower
part excluding diagonal)] [--dump-loweri (dump lower part including
diagonal)] [--dump-upper (dump upper part excluding diagonal)] [--dump-
upperi (dump upper part including diagonal)] [--write-tabc (dump tab file
on column domain)] [--write-tabr (dump tab file on row domain)] [--dump-
domc (dump column domain)] [--dump-domr (dump row domain)] [-table-
nfields <num> (output first <num> fields)] [-table-nlines <num> (output
first <num> lines)] [--newick (output newick format)] [-newick [NBI]+
(exclude Number|Branch-length|Indent)] [--write-matrix ((deconcatenate)
write matrices)] [-split-stem <str> ((deconcatenate) matrices file name
stem)] [-cat-max <num> ((deconcatenate) write first <num> matrices)]
[-sep-value <str> (node/value separator)] [-sep-field <str> (field
separator)] [-sep-lead <str> (lead separator)] [-sep-cat <str>
(concatenation separator)] [-prefixc <str> (prefix column indices with
<str>)] [-sort size-{ascending,descending} (vector sort mode)] [-h (print
synopsis, exit)] [--apropos (print synopsis, exit)] [--version (print
version, exit)]
๐ DESCRIPTION ๐
Okay so mcxdump reads a data file satisfying the mcl input format (refer to mcxio(5)). It outputs a line-based format. The --dump-pairs option yields a single matrix entry per line, identified by the respective column and row identifiers (either index or label) separated by the field separator. The --dump-lines and --dump-rlines result in the joining of all row entries on a single line, separated by the field separator. For both formats, the matrix value corresponding with a particular entry is by default output as well. โจ
mcxdump can also act on files that contain concatenated matrices. Refer to the group of options headed by -imx-cat fname. ๐ซถ
๐ธ OPTIONS ๐ธ
Bestie, this is the whole menu. Every flag, no crumbs. ๐
-imx <fname>โ (matrix file) input matrix. ๐ง-icl <fname>โ (cluster file) this specifies the input matrix, and sets up a cluster-wise line-based label dump. This option is fully equivalent to the combination of--dump-rlinesand--no-values. ๐-tf <spec>โ apply unary transformations to input matrix. Applies the specified transformation to the matrix before it is output. Refer tomcxio(5)for a description of the transformation syntax. โจ--transposeโ work with the transpose. (The page spells ittranpsose, and honestly iconic, we keep it.) Work with thetranpsoseof the input matrix. ๐--skeletonโ read empty matrix, honour domains. No entries are read, only domains. ๐-o <fname>โ output file name. Output stream. Use-for STDOUT. ๐จ๏ธ-digits <num>โ output precision. Specify the precision to use in native interchange format. ๐ข-tab <fname>โ row/column tab (label) file. Substitute column indices and row indices by labels from the tab file. Since the same tab file is used for both, this implies that the matrix domains are identical. ๐ท๏ธ-tabc <fname>โ column tab file. Substitute column indices by labels from the tab file. ๐-tabr <fname>โ row tab file. Substitute row indices by labels from the tab file. ๐--lazy-tabโ allow tab/domain mismatch. If used, the tab file domain(s) do not necessarily need to match the corresponding domain in the input matrix. Entries missing in the tab files will be replaced by a question mark. โ--no-valuesโ omit values. Do not emit values. ๐ซ--omit-emptyโ omit empty columns. Do not output line data (with--dump-tableor--dump-linesor related options) for those columns that are empty. ๐ซง--no-loopsโ omit loops. Do not output entries for which the row index equals the column index, if present. Applies only to matrices for which column and row domains are equal. ๐ซ๐--force-loopsโ force loops. For each column, force output of a row entry that matches the column index. Applies only to matrices for which column and row domains are equal. ๐ช๐
๐ dump modes & friends ๐
--dump-pairsโ emit pairs per line. This is the default mode of output. Each matrix entry is output as a single pair of column-identifier and row-identifier per line, optionally followed by the value of the corresponding matrix entry. All fields are separated by the field separator. ๐-dump-sif <tag>โ dump sif format. Use-dump-sif <tag>to dump SIF format. The argument<tag>will be used as the edge type (the second column in SIF format). ๐งฌ-dump-sifx <tag>โ dump extended sif format with weights. The option-dump-sifx <tag>is similar except that an extended format is produced where the label is followed by the colon character and the edge weight. โ๏ธ--dump-linesโ emit rows per line. With--dump-lines, each matrix column is output on a single line, with row identifiers separated by the field separator and values attached to the row identifier by the node/value separator. In this format, the column identifier is output as the leading field. ๐--dump-rlinesโ omit leading identifier (the options section calls it โomit leading column nodeโ).--dump-rlinesis as--dump-lines, except that the column identifier is not output. Use--dump-lead-offto preclude the output of the leading identifiers (for line-based outputs). ๐ซ๐--dump-vlinesโ add leading identifier values (the options section calls it โadd leading column valuesโ).--dump-vlinesis as--dump-lines. The leading identifiers are followed by a value associated with the entire column. This can be used to dump the output given byclm vol. The value provided is a measure for the stability of the cluster that follows. ๐--dump-lead-offโ omit leading identifier / do not dump leading identifiers. Use this to preclude the output of the leading identifiers (for line-based outputs). ๐--dump-lowerโ dump lower part excluding diagonal. ๐--dump-loweriโ dump lower part including diagonal. ๐๐--dump-upperโ dump upper part excluding diagonal. ๐--dump-upperiโ dump upper part including diagonal. ๐๐
The options pertaining to lower and upper dumps currently only work with --dump-pairs. They act to only output the specified part of the matrix. ๐ฅ
๐งฎ table format ๐งฎ
--dump-tableโ dump table format.-table-nfieldsโ field limit (synopsis:-table-nfields <num>output first<num>fields).-table-nlinesโ line/row limit (synopsis:-table-nlines <num>output first<num>lines).
Output table format. In table format no indices are printed by default and all values are printed including zeroes. The options -table-nfields and -table-nlines can be used to limit the number of fields and lines to be printed. Note that fields correspond to MCL matrix rows and that lines correspond to MCL matrix columns, as MCL calls its primary indices column indices. Use --dump-lead-off to preclude the output of the leading identifiers (for line-based outputs). ๐
๐ณ newick ๐ณ
--newickโ output newick format.-newick [NBI]+โ newick, exclude Number|Branch-length|Indent.
Output a hierarchical clustering specified by -imx-tree in Newick tree format. ๐ณ
๐ท๏ธ domains & tab files ๐ท๏ธ
--write-tabcโ dump tab file on column domain.--write-tabrโ dump tab file on row domain.--dump-domcโ dump column domain.--dump-domrโ dump row domain.
These options work in conjunction with the -ixm fname option. Only the domains from the input matrix are read as if --skeleton was specified. --write-tabc assumes the input tab file envelopes the matrix column domain, and it outputs a new tab file restricted to that domain. --write-tabr acts analogously for the row domain. --dump-domc and --dump-domr respectively dump the column or row domain as a regular dump, outputting labels in case a tab file is specified. ๐ซถ
These options are implemented as ensembles of other options. For example, --dump-domr -imx fname corresponds with --dump-lines --transpose --skeleton. โจ
๐งฌ concatenated matrices ๐งฌ
-imx-cat <fname>โ concatenation matrix file.-imx-tree <fname>โ concatenation cone file.--write-matrixโ (deconcatenate) write matrices.-split-stem <str>โ (deconcatenate) matrices file name stem.-cat-max <num>โ (deconcatenate) write first<num>matrices.
-imx-cat is like -imx except that the input is assumed to contain multiple concatenated matrices. The matrices are dumped separated by the cat separator (cf. -sep-cat). Alternatively, the matrices can be written to different files using the -split-stem option. In this case it is possible to output each matrix in native format rather than as a dump by specifying --write-matrix. This makes mcxdump effectively act as a deconcatenator. In all cases (respectively dumping and writing matrices to either the same stream or multiple files) the number of matrices to be dumped can be limited with -cat-max. ๐
-imx-tree is like -imx-cat except that the input is assumed to be in cone format (the format output by mclcm). This format encodes a tree as a concatenation of matrices with nested domains. mcxdump will project all levels of this tree so that all row domains are the same as the bottom row domain. This implies that a set of nested clusterings (on different node sets, as the set of clusters of a given level is the node set of the next level) is transformed into a set of flattened clusterings, all on the same node set. If you do not want this to happen, simply use -imx-cat. ๐
๐ separators & prefixes ๐
-sep-value <str>โ node/value separator. Set the node/value separator for line based row ensemble output. ๐-sep-field <str>โ field separator. Set the field separator for different row indices in a given column. ๐ง-sep-lead <str>โ lead separator. Set the lead separator. In the--dump-linesformat it separates the leading column index from the following ensembl of row indices. It can be useful to make this different from the field separator. One can for example grep for columns that have more than one entry in a matrix mapping nodes to clusters. This will find nodes in overlap. ๐-sep-cat <str>โ concatenation separator. Set the separator that is used between matrix dumps when a concatenation of matrices is dumped. ๐-prefixc <str>โ prefix column indices with<str>. This can be useful when external row names cannot be numbers and when a label dictionary is not available or not appropriate. โจ
๐ฆ sort & exits ๐ฆ
-sort size-{ascending,descending}โ vector sort mode. ๐๐-hโ print synopsis, exit. ๐--aproposโ print synopsis, exit. ๐--versionโ print version, exit. ๐-sort size-{ascending,descending}(concatenation separator) โ okay so this one reorders your matrix columns before the dump even happens, and it decides the order by counting up the nonzero entries in each column. Basically a glow-up for your column layout โจ
๐จ Do not use this in conjunction with a tab file for the column domain. Like, don't. That combo is not the moment, bestie. ๐ญ
๐ AUTHOR ๐
Stijn van Dongen. The icon, the moment, the actual main character who wrote this thing. We stan. ๐
๐ฆ SEE ALSO ๐ฆ
mcxload(1)mcl(1)mclfaq(7)mclfamily(7)โ and this one right here? It's your overview of all the documentation and the utilities in the mcl family ๐ go read it, fr fr.
And that's a wrap, bestie ๐ You were reading mcxdump, version 22-282, dated 9 Oct 2022 โ that's the mcxdump(1) page, all of it, no cap. Go dump something iconic. ๐ซถโจ
๐ฆ where this page comes from
- debian bookworm: mcl 1:22-282+ds-2 ยท GPL-3.0-or-later
- debian trixie: mcl 1:22-282+ds-4 ยท GPL-3.0-or-later
- ubuntu noble: mcl 1:22-282+ds-2 ยท GPL-3.0-or-later
- ubuntu questing: mcl 1:22-282+ds-4
- ubuntu resolute: mcl 1:22-282+ds-4build1 ยท GPL-3.0-or-later
- ubuntu stonking: mcl 1:22-282+ds-4build1 ยท GPL-3.0-or-later
- Copyright (c) 2022 Stijn van Dongen
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms