maxfuse.match_utils

Utility functions for matching

Functions

address_matching_redundancy

Make a potentially multiple-to-multiple matching to an one-to-one matching according to order.

get_initial_matching

Assume the features of arr1 and arr2 are column-wise directly comparable, obtain a matching by minimizing the correlation distance between arr1 and arr2.

get_refined_matching

Refinement of init_matching.

get_refined_matching_one_iter

Run one iteration of CCA refinement.

match_cells

Get matching between arr1 and arr2 using linear assignment, the distance is 1 - Pearson correlation.