simba.pp.binarize
- simba.pp.binarize(adata, threshold=1e-05)[source]
Binarize an array. :param adata: Annotated data matrix. :type adata: AnnData :param threshold: Values below or equal to this are replaced by 0, above it by 1. :type threshold: float, optional (default: 1e-5)
- Returns:
updates adata with the following fields.
X (numpy.ndarray (adata.X)) – Store #observations × #var_genes binarized data matrix.