moscot.utils.subset_policy.SubsetPolicy.create_masks¶
- SubsetPolicy.create_masks(discard_empty=True)[source]¶
Create masks based on the policy graph.
- Parameters:
discard_empty (
bool) – Whether to remove empty masks.- Return type:
Dict[Tuple[TypeVar(K, bound=Hashable),TypeVar(K, bound=Hashable)],Tuple[Union[ndarray[tuple[int,...],dtype[floating]],Array],Union[ndarray[tuple[int,...],dtype[floating]],Array]]]- Returns:
: Masks for each edge in the policy graph.