Skip to content

Commit

Permalink
Fix Issue #10
Browse files Browse the repository at this point in the history
Default value of sample_correct in edist function.
  • Loading branch information
stefanpeidli committed Dec 22, 2023
1 parent 28b98a7 commit dee7a65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package/src/scperturb/edistance.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def pairwise_pca_distances(adata, obs_key, obsm_key='X_pca', dist='sqeuclidean',
return df

def edist(adata, obs_key='perturbation', obsm_key='X_pca', pwd=None,
dist='sqeuclidean', sample_correct=0, verbose=True):
dist='sqeuclidean', sample_correct=True, verbose=True):
"""Computes the edistance to control. Accepts precomputed pwd.
Computes the pairwise E-distances between all groups of cells defined in
adata.obs[obs_key] (e.g. perturbations). Distances are computed in embedding
Expand Down

0 comments on commit dee7a65

Please sign in to comment.