@@ -43,7 +43,7 @@ def test_all_operations_self_mapping(self, adata_pbmc3k):
4343
4444 # Test with typical parameters
4545 cm .compute_neighbors (n_neighbors = 5 , use_rep = "X_pca" )
46- cm .compute_mappping_matrix (method = "gaussian" )
46+ cm .compute_mapping_matrix (method = "gaussian" )
4747
4848 # Test label transfer
4949 cm .transfer_labels (obs_keys = "leiden" )
@@ -83,7 +83,7 @@ def test_load_scanpy_distances(self, adata_spatial, n_neighbors):
8383 assert cm .knn .xx .n_neighbors + 1 == n_neighbors
8484
8585 # Test the full pipeline with precomputed distances
86- cm .compute_mappping_matrix (method = "gaussian" )
86+ cm .compute_mapping_matrix (method = "gaussian" )
8787 cm .transfer_labels (obs_keys = "leiden" )
8888
8989 assert "leiden_pred" in cm .query .obs
@@ -142,7 +142,7 @@ def test_load_squidpy_distances(self, adata_spatial, squidpy_params):
142142 ).all ()
143143
144144 # Test the mapping pipeline
145- cm .compute_mappping_matrix (method = "gaussian" )
145+ cm .compute_mapping_matrix (method = "gaussian" )
146146 cm .transfer_labels (obs_keys = "leiden" )
147147
148148 assert "leiden_pred" in cm .query .obs
@@ -176,8 +176,8 @@ def test_load_distances_with_include_self(self, adata_spatial, include_self):
176176 assert i not in cm_without_self .knn .xx .indices [i ]
177177
178178 # Both should work with the rest of the pipeline
179- cm_with_self .compute_mappping_matrix (method = "gaussian" )
180- cm_without_self .compute_mappping_matrix (method = "gaussian" )
179+ cm_with_self .compute_mapping_matrix (method = "gaussian" )
180+ cm_without_self .compute_mapping_matrix (method = "gaussian" )
181181
182182 # Compute label transfer for both
183183 cm_with_self .transfer_labels (obs_keys = "leiden" , prediction_postfix = "with_self" )
@@ -197,7 +197,7 @@ def test_self_mapping_without_rep(self, adata_pbmc3k):
197197
198198 # Test with no representation provided
199199 cm .compute_neighbors (n_neighbors = 5 , use_rep = None , n_comps = 10 )
200- cm .compute_mappping_matrix (method = "gaussian" )
200+ cm .compute_mapping_matrix (method = "gaussian" )
201201
202202 # Verify joint PCA was computed
203203 assert "X_pca" in adata_pbmc3k .obsm
0 commit comments