Skip to content

Thresholds and Clusters

Tony edited this page Dec 1, 2026 · 1 revision

This page explains the Link Threshold, which decides which pairs of nodes are linked, and the clusters and singletons that the links make. It also covers pruning and Tie Tolerance, which can remove links that are within the threshold.

Where the Link Threshold is

Open Settings from the menu bar and choose the Filtering tab. The Link Threshold row has a number box and, above it, a histogram of the link values. Click the histogram to set the threshold to that value, or drag across it to move the threshold while you watch the network. The network updates when you let go.

The unit follows the field you filter on. For TN93, the default, the threshold is substitutions per site, so 0.015 means 1.5%. For SNPs, it is a count of differing sites, and its default is 16. See Distance-Metrics for what each metric measures.

What "at or below" means

Two nodes are linked when their distance is at or below the Link Threshold. Lowering the threshold keeps only the closer links. Raising it adds more.

Some pairs never link:

  • A pair whose distance is NaN, because the sequences had no comparable sites, never links.
  • A saturated distance (Infinity) is above any threshold, so it never links.
  • A link from a file with no distance column is shown whatever the threshold, because there is no distance to judge.

Filter Links on

Filter Links on, in the same tab, chooses the link field the threshold tests. Each field keeps its own threshold, so switching back to a field restores the value you last used with it.

Clusters and singletons

Clusters are the connected groups of nodes: nodes are in the same cluster when you can reach one from the other along visible links. Because clusters come from the links, they change with the threshold. Raising it can join clusters, and lowering it can split them.

A singleton is a node with no visible links. The statistics panel counts links, clusters and singletons. It counts a cluster only when it has more than one node.

Minimum Cluster Size (default 1) hides clusters with fewer nodes than the number you enter. Show All Hidden, in the same tab, shows everything again.

Pruning with Prune With

Prune With keeps fewer of the links that are within the threshold. The pruning compares links by the Filter Links on field.

  • None (the default) shows every link within the threshold.
  • Nearest Neighbor keeps each node's shortest links, plus others that tie with them. It can split a cluster, because a node may lose the links that held its group together.
  • MST keeps a minimum spanning tree: the fewest, shortest links that still join every node, plus ties. It keeps each cluster connected.

Tie Tolerance

Tie Tolerance appears only when Prune With is not None. It decides when two distances count as tied. A distance is tied when it is within this fraction of the one it is compared with. The slider sets a power of ten, and the box beside it shows the fraction that is used.

Keep Links when loading

When you launch sequences, the Files view's settings have a Keep Links option. All Pairs keeps every pair of sequences as a link. Within Link Threshold keeps only the pairs within the threshold, which uses far less memory. The cost is that raising the threshold later will not show more links. The Automatic option keeps every pair unless there are too many.

Related pages

Clone this wiki locally