Compute per-cluster nearest-neighbor SNP distances
Source:R/cluster_stats.R
cluster_inter_distances.RdFor every non-singleton cluster, the minimum SNP distance to an isolate in another cluster
(min_inter_cluster) and to any isolate outside the cluster (min_inter_isolate). Unlike
cluster_pairwise_distances(), this works over the whole clustering at once: it derives each
cluster's "other cluster" and "non cluster" comparison sets from the full assignment vector.
Singleton clusters are dropped via remove_singleton_clusters(), so their sequences never form
a cluster of their own but still count as unclustered isolates toward min_inter_isolate.