Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
keller-mark committed Sep 7, 2024
1 parent c2a3519 commit 37f97c3
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions tests/test_wrappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,23 +239,6 @@ def test_anndata_with_base_dir(self):
'obsSets': [{'path': 'obs/CellType', 'name': 'Cell Type'}]
}})

def test_anndata(self):
adata_path = data_path / 'test.h5ad.zarr'
w = AnnDataWrapper(adata_path,
obs_set_paths=['obs/CellType'], obs_set_names=['Cell Type'],
obs_labels_names=['Cell Label'], obs_labels_paths=['obs/CellLabel'],
obs_embedding_paths=['obsm/X_umap'], obs_embedding_names=['UMAP'])
w.local_dir_uid = 'anndata.zarr'

file_def_creator = w.make_file_def_creator('A', 0)
file_def = file_def_creator('http://localhost:8000')
self.assertEqual(file_def, {'fileType': 'anndata.zarr', 'url': 'http://localhost:8000/A/0/anndata.zarr',
'options': {
'obsEmbedding': [{'path': 'obsm/X_umap', 'embeddingType': 'UMAP', 'dims': [0, 1]}],
'obsSets': [{'path': 'obs/CellType', 'name': 'Cell Type'}],
'obsLabels': [{'path': 'obs/CellLabel', 'obsLabelsType': 'Cell Label'}]
}})

def test_anndata_with_h5ad_and_ref_json(self):
adata_path = data_path / 'test.h5ad'
ref_json_path = data_path / 'test.h5ad.ref.json'
Expand Down

0 comments on commit 37f97c3

Please sign in to comment.