File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff 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 ],
You can’t perform that action at this time.
0 commit comments