episcanpy.api.pp.binarize

episcanpy.api.pp.binarize(adata, copy=False)

convert the count matrix into a binary matrix.

Parameters
adata : AnnData object

copy : return a new adata object if copy == True.

Returns

Depending on copy, returns a new AnnData object or overwrite the input