scglue.num.tfidf

scglue.num.tfidf(X, flavor='seurat', **kwargs)[source]

TF-IDF normalization

Parameters:
  • X (typing.Union[numpy.ndarray, scipy.sparse._matrix.spmatrix]) – Input matrix

  • flavor (str) – Flavor of TF-IDF normalization, should be one of {“seurat”, “allcools”}

  • kwargs – Additional keyword arguments are passed to each respective implementation

Return type:

typing.Union[numpy.ndarray, scipy.sparse._matrix.spmatrix]