scglue.num

Numeric operations

Functions

all_counts

Check whether an array contains all counts

col_pcc

Column-wise Pearson's correlation coefficient (sparse friendly)

col_spr

Column-wise Spearman's rank correlation

col_var

Column-wise variance (sparse friendly)

cov_mat

Covariance matrix (sparse friendly)

densify

Convert a matrix to dense regardless of original type.

normalize_edges

Normalize graph edge weights

pcc_mat

Pearson's correlation coefficient (sparse friendly)

prob_or

Combined multiple probabilities in a logical OR manner.

prod

Product of elements

sigmoid

The sigmoid function in numpy

spr_mat

Spearman's rank correlation

tfidf

TF-IDF normalization (following the Seurat v3 approach)

vertex_degrees

Compute vertex degrees