Skip to content

Commit

Permalink
fixing tool tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ajitjohnson committed Apr 26, 2024
1 parent 0e8b930 commit db4bf16
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 50 deletions.
Binary file modified scimap/tests/scimapExampleData/scimapExampleData.h5ad
Binary file not shown.
36 changes: 0 additions & 36 deletions scimap/tests/test_preprocessing.py

This file was deleted.

23 changes: 9 additions & 14 deletions scimap/tests/test_tl.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,21 +85,16 @@ def test_spatial_count (adata):
loaded_data = np.load( os.getcwd() + '/scimap/tests/expected_test_values/test_spatial_count.npz')['data']
assert np.allclose(loaded_data, adata.uns['spatial_count'].to_numpy()), "The arrays do not match."


#spatial_cluster
def test_spatial_cluster (adata):
from scimap.tools.spatial_cluster import spatial_cluster
adata = spatial_cluster (adata, df_name='spatial_count_test')
# load expected data
loaded_data = load_pickle(os.getcwd() + '/scimap/tests/expected_test_values/test_spatial_cluster.pkl')
assert loaded_data == list(adata.obs['spatial_kmeans']), "The lists do not match."


# =============================================================================
# #spatial_cluster
# def test_spatial_cluster (adata):
# from scimap.tools.spatial_count import spatial_count
# adata = spatial_count (adata, phenotype='phenotype',method='knn',radius=5)
# # test spatial cluster
# from scimap.tools.spatial_cluster import spatial_cluster
# adata = spatial_cluster(adata, df_name='spatial_count')
# # load expected data
# loaded_data = load_pickle(os.getcwd() + '/scimap/tests/expected_test_values/test_spatial_cluster.pkl')
# assert loaded_data == list(adata.obs['spatial_kmeans']), "The lists do not match."
#
#
# =============================================================================
#spatial_lda
def test_spatial_lda (adata):
from scimap.tools.spatial_lda import spatial_lda
Expand Down

0 comments on commit db4bf16

Please sign in to comment.