Cut a tree using a static threshold method.
Input:
- A Newick file containing a single tree.
- Branch lengths are used by distance/height-based methods.
Output:
--format cluster(default): each line contains the members of one cluster; the first member is the representative.--format pair: each line contains a(representative, member)pair.
Notes:
- Exactly one method option must be provided:
--k,--height,--root-dist,--max-clade,--avg-clade,--med-clade,--sum-branch,--leaf-dist-max,--leaf-dist-min,--leaf-dist-avg,--max-edge(--single-linkage),--inconsistent. --kmust be a positive integer.--deepcontrols the depth used by theinconsistentmethod (default:2).--repselects the cluster representative:root(default),first, ormedoid.--support <S>treats edges with support< Sas effectively infinite length, forcing a cut at low-support positions. Nodes without explicit support default to100.0.- Distance/height thresholds must be non-negative finite numbers.
Examples:
-
Cut into 5 clusters
necom cut simple tree.nwk --k 5 -
Cut at height 0.5
necom cut simple tree.nwk --height 0.5 -
Cut by max pairwise distance
necom cut simple tree.nwk --max-clade 0.1 -
Use pair format
necom cut simple tree.nwk --k 3 --format pair