Skip to content

MT 2.0: For NWK input predict the best threshold based on clades/tree structure #1762

Description

@ikb6

Description

This feature is only for NWK imports, especially useful for Nextstrain trees. Rather than displaying the default MT threshold (16 for SNP tree and 0.015 for tree with fractional distance ). It would be good if MT could read distances in the file and figure out the best distance to separate clades (and hence clusters) and launch the network at that threshold. This is especially true for some fractional trees where the distance threshold needs to be very stringent like 0.0004. If not everything will be connected and the number of links will exceed the MT display threshold.

Initiative / Goal

The goal is for MT to be more intuitive in assigning distance threshold while processing a NWK tree. Users can still play with it for a more exact value based on other known factors.

Included Scope

Import of NWK data

Example case

Use this tree that has been downloaded from Nextstrain

"C:\Users\ikb6\OneDrive - CDC\MicrobeTrace\Testing\Version testing\May 2026\nextstrain_mpox_all-clades_tree_1204Taxa.nwk"

If you drop this into MT, it assigns a threshold of 0.015 and gives the message see below:

Image

HOWEVER, if I load the file and change the threshold to 0.0004 (based on what I see on the divergence axis in Nextstrain tree), then it has 19K links and displays a network that's closer to the Nextstrain tree clade distribution.

Image

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions