netmap.masking.internal.find_consistent_pairs¶
- netmap.masking.internal.find_consistent_pairs(grn_adata, gene_names)[source]¶
Compute Spearman correlation between forward and reverse edge attribution scores.
For every pair of genes (A, B), computes the Spearman correlation between the attribution columns
A_BandB_Aingrn_adata.Xacross all cells. Both directions receive the same correlation value.- Parameters:
grn_adata (anndata.AnnData) – GRN AnnData with attribution values in
X.
- Returns:
- Mapping
{edge_str: spearman_r}for all forward and reverse pairs. Self-pairs are not included.
- Mapping
- Return type: