Cut a tree using Dynamic Hybrid Cut.
Input:
- A Newick file containing a single tree.
- A distance matrix file in relaxed PHYLIP format (
--matrix).
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:
- The
--matrixand--min-sizeoptions are required.--min-sizemust be a positive integer. --max-pam-distsets the maximum distance for PAM reassignment (optional).--no-pam-dendrodisables dendrogram respect during PAM reassignment (default: off).--deep-splitenables more aggressive splitting (default: off).--max-tree-heightsets the maximum joining height; if omitted, defaults toref_height + 0.99 * (max_height - ref_height), whereref_heightis the 5th percentile of merge heights andmax_heightis the maximum merge height.--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.
Examples:
-
Hybrid cut with min cluster size 20
necom cut hybrid tree.nwk --matrix dist.phy --min-size 20 -
Allow PAM reassignment across high branches
necom cut hybrid tree.nwk --matrix dist.phy --min-size 10 --no-pam-dendro -
Limit PAM reassignment distance
necom cut hybrid tree.nwk --matrix dist.phy --min-size 10 --max-pam-dist 0.3