grassp.tl.remodeling_score

grassp.tl.remodeling_score#

remodeling_score(data_list, aligned_umap_key='X_aligned_umap', key_added='remodeling_score')[source]#

Compute per-protein remodeling score from two aligned datasets.

The remodeling score is the Euclidean distance between a protein’s coordinates in two aligned UMAP embeddings.

Parameters:
data_list List[AnnData]

Exactly two AnnData objects with aligned coordinates in .obsm[aligned_umap_key].

aligned_umap_key str (default: 'X_aligned_umap')

Key where the embedding is stored.

key_added str (default: 'remodeling_score')

Observation key used to record the scores.

Return type:

List[AnnData]

Returns:

list[AnnData] The same list with an added .obs[key_added] column.