popari.components.PopariDataset.remove_connectivity_artifacts

popari.components.PopariDataset.remove_connectivity_artifacts#

static PopariDataset.remove_connectivity_artifacts(sparse_distance_matrix, sparse_adjacency_matrix, threshold=94.5)[source]#

Remove artifacts in adjacency matrices produced by heuristic algorithms.

For example, when Delaunay triangulation is used to produce the adjacency matrix, some spots which are connected as a result may actually be far apart in Euclidean space.

Parameters:
  • sparse_distance_matrix (csr_matrix)

  • sparse_adjacency_matrix (csr_matrix)

  • threshold (float)