mcxdump(1)

๐Ÿ“ฆ
version 22-282 ยท 2 versions
  • 22-282 ยท debian bookworm, debian trixie, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 14-137 ยท ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

โœจ 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-rlines and --no-values. ๐ŸŽ€
  • -tf <spec> โ€” apply unary transformations to input matrix. Applies the specified transformation to the matrix before it is output. Refer to mcxio(5) for a description of the transformation syntax. โœจ
  • --transpose โ€” work with the transpose. (The page spells it tranpsose, and honestly iconic, we keep it.) Work with the tranpsose of 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-table or --dump-lines or 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-rlines is as --dump-lines, except that the column identifier is not output. Use --dump-lead-off to 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-vlines is 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 by clm 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-lines format 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 ๐Ÿฆ‹


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