Skip to content

Commit

Permalink
Revert last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
dzhu8 committed Feb 1, 2024
1 parent 47d5ddf commit 341d023
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
12 changes: 2 additions & 10 deletions spateo/alignment/methods/paste.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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
return X, Y, mapping_dict
6 changes: 4 additions & 2 deletions spateo/tools/cluster_lasso.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,14 @@ 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)

# Put everything together
return VBox((f, t))

else:
raise ValueError(f"adata.obsm doesn't have {group} or {group_color} is not in adata.uns")
raise ValueError(f"adata.obsm doesn't have {group} or {group_color} is not in adata.uns")

0 comments on commit 341d023

Please sign in to comment.