Skip to content

Commit 71b0141

Browse files
authored
Add files via upload
1 parent 2a39ac6 commit 71b0141

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

STitch3D/utils.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ def align_spots(adata_st_list_input, # list of spatial transcriptomics datasets
1818
tol=0.01, # parameter for "icp" method; tolerance level
1919
test_all_angles=False, # parameter for "icp" method; whether to test multiple rotation angles or not
2020
plot=False,
21+
paste_alpha=0.1,
22+
paste_dissimilarity="kl"
2123
):
2224
# Align coordinates of spatial transcriptomics
2325

@@ -116,7 +118,8 @@ def align_spots(adata_st_list_input, # list of spatial transcriptomics datasets
116118
pis = []
117119
# Calculate pairwise transformation matrices
118120
for i in range(len(adata_st_list) - 1):
119-
pi = pairwise_align_paste(adata_st_list[i], adata_st_list[i+1], coor_key=coor_key)
121+
pi = pairwise_align_paste(adata_st_list[i], adata_st_list[i+1], coor_key=coor_key,
122+
alpha = paste_alpha, dissimilarity = paste_dissimilarity)
120123
pis.append(pi)
121124
# Tranform
122125
S1, S2 = generalized_procrustes_analysis(adata_st_list[0].obsm[coor_key],

0 commit comments

Comments
 (0)