Skip to content

Commit 8332f25

Browse files
committed
Version update
1 parent abe5f04 commit 8332f25

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/vitessce/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ class FileType(DocEnum):
164164
ANNDATA_ZARR = "anndata.zarr", "Joint file type for AnnData objects"
165165
SPATIALDATA_ZARR = "spatialdata.zarr", "Joint file type for SpatialData objects"
166166
ANNDATA_H5AD = "anndata.h5ad", "Joint file type for AnnData objects"
167-
ANNDATA_ZIPPED_ZARR = "anndata.zarr.zip", "Joint file type for AnnData objects"
167+
ANNDATA_ZIPPED_ZARR = "anndata.zarr.zip", "Joint file type for AnnData objects that are zipped together"
168168
OBS_EMBEDDING_CSV = 'obsEmbedding.csv', "File type for obsEmbedding values stored in a CSV file"
169169
OBS_LOCATIONS_CSV = 'obsLocations.csv', "File type for obsLocations values stored in a CSV file"
170170
OBS_LABELS_CSV = 'obsLabels.csv', "File type for obsLabels values stored in a CSV file"

src/vitessce/wrappers.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1253,7 +1253,7 @@ def __init__(self, adata_path=None, adata_url=None, adata_store=None, adata_arti
12531253
self.zarr_folder = 'anndata.zarr'
12541254
if '.zip' in str(adata_path):
12551255
self.is_zip = True
1256-
self.zarr_folder = 'anndata.zarr.zip'
1256+
# self.zarr_folder = 'anndata.zarr.zip'
12571257
elif adata_url is not None or adata_artifact is not None:
12581258
self.is_remote = True
12591259
self.is_store = False
@@ -1274,6 +1274,7 @@ def __init__(self, adata_path=None, adata_url=None, adata_store=None, adata_arti
12741274

12751275
self.local_dir_uid = make_unique_filename(".adata.zarr")
12761276
self.local_file_uid = make_unique_filename(".h5ad")
1277+
self.local_file_uid_zarr = make_unique_filename('.zarr.zip')
12771278
self.local_ref_uid = make_unique_filename(".ref.json")
12781279

12791280
self._expression_matrix = obs_feature_matrix_path
@@ -1361,7 +1362,7 @@ def get_anndata_zarr(base_url):
13611362
if len(options.keys()) > 0:
13621363
if self.is_h5ad:
13631364
options["refSpecUrl"] = self.get_ref_url(base_url, dataset_uid, obj_i)
1364-
1365+
print(ft.ANNDATA_ZIPPED_ZARR.value)
13651366
obj_file_def = {
13661367
"fileType": ft.ANNDATA_ZIPPED_ZARR.value if self.is_zip else ft.ANNDATA_H5AD.value if self.is_h5ad else ft.ANNDATA_ZARR.value,
13671368
"url": self.get_zarr_url(base_url, dataset_uid, obj_i) if not self.is_h5ad else self.get_h5ad_url(base_url, dataset_uid, obj_i),

0 commit comments

Comments
 (0)