netmap.masking.internalΒΆ

Functions

add_neighbourhood_expression_mask

Create a mask indicating whether the edge is likely actually expressed or not.

create_pairwise_binary_mask

Creates a dictionary of binary masks for each cell and pair of genes, including both forward, reverse, and self-pairs (which are all zeros).

dict_to_dataframe

Converts a dictionary of binary masks into a pandas DataFrame, respecting a specified column order.

find_consistent_pairs

Creates a dictionary of binary masks for each cell and pair of genes, including both forward, reverse, and self-pairs (which are all zeros).

get_neighborhood_expression

Checks if each gene is expressed in the k-nearest neighbors (kNN) of each cell.