From 341d023ca5c5e0478d0e30639aa04d85052fe8e9 Mon Sep 17 00:00:00 2001 From: "Daniel Y. Zhu" Date: Thu, 1 Feb 2024 12:22:11 -0500 Subject: [PATCH] Revert last commit --- spateo/alignment/methods/paste.py | 12 ++---------- spateo/tools/cluster_lasso.py | 6 ++++-- 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/spateo/alignment/methods/paste.py b/spateo/alignment/methods/paste.py index 392218bb..3791d4e3 100644 --- a/spateo/alignment/methods/paste.py +++ b/spateo/alignment/methods/paste.py @@ -70,15 +70,7 @@ def paste_pairwise_align( """ # Preprocessing - ( - nx, - type_as, - new_samples, - exp_matrices, - spatial_coords, - normalize_scale, - normalize_mean_list, - ) = align_preprocess( + (nx, type_as, new_samples, exp_matrices, spatial_coords, normalize_scale, normalize_mean_list,) = align_preprocess( samples=[sampleA, sampleB], genes=genes, spatial_key=spatial_key, @@ -350,4 +342,4 @@ def generalized_procrustes_analysis(X, Y, pi): Y = R.dot(Y.T).T mapping_dict = {"tX": tX, "tY": tY, "R": R} - return X, Y, mapping_dict \ No newline at end of file + return X, Y, mapping_dict diff --git a/spateo/tools/cluster_lasso.py b/spateo/tools/cluster_lasso.py index 6e5668c6..83c73b72 100644 --- a/spateo/tools/cluster_lasso.py +++ b/spateo/tools/cluster_lasso.py @@ -100,7 +100,9 @@ def selection_fn(trace, points, selector): ] Lasso.__sub_index = t.data[0].cells.values[0] - Lasso.sub_adata = self.adata[Lasso.__sub_index,] + Lasso.sub_adata = self.adata[ + Lasso.__sub_index, + ] scatter.on_selection(selection_fn) @@ -108,4 +110,4 @@ def selection_fn(trace, points, selector): return VBox((f, t)) else: - raise ValueError(f"adata.obsm doesn't have {group} or {group_color} is not in adata.uns") \ No newline at end of file + raise ValueError(f"adata.obsm doesn't have {group} or {group_color} is not in adata.uns")