Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Print statistics about trees in the input.

Input:

  • A Newick tree file or stdin.

Output:

  • --style / -s col (default): key-value pairs.
  • --style / -s line: tab-separated values with a header row.

Notes:

  • Reported fields include type (cladogram/phylogram/neither), node count, leaf count, rooted status, dichotomies, leaf labels, internal labels, edges with/without length, cherries, Sackin index, and Colless index.

Examples:

  1. Default statistics necom nwk stat tree.nwk

  2. Output to file necom nwk stat tree.nwk -o stats.tsv