CellScope.ts.find_map
CellScope.ts. find_map (label1 : np.ndarray, label2 : np.ndarray)
The find_map function creates a mapping matrix to identify overlaps between two sets of labels,
helping to determine the correspondence between clusters across different labeling schemes.
Parameters
label1 (
np.ndarray):First set of clustering labels.
label2 (
np.ndarray):Second set of clustering labels.
Return
mapping (
np.ndarray):Mapping matrix indicating the overlap between two sets of labels.