tangram.utils.transfer_annotations_prob_filter

tangram.utils.transfer_annotations_prob_filter(mapping_matrix, filter, to_transfer)

Transfer cell annotations onto space through a mapping matrix and a filter. :param mapping_matrix: Mapping matrix with shape (number_cells, number_spots). :type mapping_matrix: ndarray :param filter: Filter with shape (number_cells,). :type filter: ndarray :param to_transfer: Cell annotations matrix with shape (number_cells, number_annotations). :type to_transfer: ndarray

Returns

A matrix of annotations onto space, with shape (number_spots, number_annotations).