mantispy.tl.similarity#
- mantispy.tl.similarity(adata, metric='cosine', use_rep=None, key_added='similarity', copy=False)[source]#
Store pairwise profile similarity in
obsp[key_added].Notes
The result is dense and quadratic in the number of profiles, so this expects well- or perturbation-level profiles rather than single cells.