Datasets:
OME-TIFF Example File (#10)
Browse files- added ome_tiff example, added config to ark_example.py (bc1594eae91694a7eb41ca148807ee6cda389f28)
- put ome tiff in folder (0b953f29ca3b22880c9c21424cfa4429ad8b2e8f)
- Merge branch 'main' into pr/10 (b5264333585ea06ec80593a2e1355e439f943dbd)
- Merge branch 'main' into pr/10 (a436d9b53e736c60066ff260d81a1b52eb079e87)
- Merge branch 'main' into pr/10 (c7f356e3e7139d31f132cff282695629c48edf28)
- ark_example.py +12 -13
- data/ome_tiff.zip +3 -0
ark_example.py
CHANGED
@@ -65,7 +65,8 @@ _URL_DATA = {
|
|
65 |
"example_pixel_output_dir": "./data/pixie/example_pixel_output_dir.zip",
|
66 |
"example_cell_output_dir": "./data/pixie/example_cell_output_dir.zip",
|
67 |
"spatial_lda": "./data/spatial_analysis/spatial_lda.zip",
|
68 |
-
"post_clustering": "./data/post_clustering.zip"
|
|
|
69 |
}
|
70 |
|
71 |
_URL_DATASET_CONFIGS = {
|
@@ -109,7 +110,10 @@ _URL_DATASET_CONFIGS = {
|
|
109 |
"cell_table": _URL_DATA["cell_table"],
|
110 |
"deepcell_output": _URL_DATA["deepcell_output"],
|
111 |
"post_clustering": _URL_DATA["post_clustering"],
|
112 |
-
}
|
|
|
|
|
|
|
113 |
}
|
114 |
|
115 |
|
@@ -165,22 +169,17 @@ class ArkExample(datasets.GeneratorBasedBuilder):
|
|
165 |
name="pairwise_spatial_enrichment",
|
166 |
version=VERSION,
|
167 |
description="This configuration contains data used by the Pairwise Spatial Enrichment Notebook."
|
|
|
|
|
|
|
|
|
|
|
168 |
)
|
169 |
]
|
170 |
|
171 |
def _info(self):
|
172 |
# This is the name of the configuration selected in BUILDER_CONFIGS above
|
173 |
-
if self.config.name in
|
174 |
-
"segment_image_data",
|
175 |
-
"cluster_pixels",
|
176 |
-
"cluster_cells",
|
177 |
-
"post_clustering",
|
178 |
-
"fiber_segmentation",
|
179 |
-
"LDA_preprocessing",
|
180 |
-
"LDA_training_inference",
|
181 |
-
"neighborhood_analysis",
|
182 |
-
"pairwise_spatial_enrichment",
|
183 |
-
]:
|
184 |
features = datasets.Features(
|
185 |
{f: datasets.Value("string") for f in _URL_DATASET_CONFIGS[self.config.name].keys()}
|
186 |
)
|
|
|
65 |
"example_pixel_output_dir": "./data/pixie/example_pixel_output_dir.zip",
|
66 |
"example_cell_output_dir": "./data/pixie/example_cell_output_dir.zip",
|
67 |
"spatial_lda": "./data/spatial_analysis/spatial_lda.zip",
|
68 |
+
"post_clustering": "./data/post_clustering.zip",
|
69 |
+
"ome_tiff": "./data/ome_tiff.zip",
|
70 |
}
|
71 |
|
72 |
_URL_DATASET_CONFIGS = {
|
|
|
110 |
"cell_table": _URL_DATA["cell_table"],
|
111 |
"deepcell_output": _URL_DATA["deepcell_output"],
|
112 |
"post_clustering": _URL_DATA["post_clustering"],
|
113 |
+
},
|
114 |
+
"ome_tiff": {
|
115 |
+
"ome_tiff": _URL_DATA["ome_tiff"],
|
116 |
+
},
|
117 |
}
|
118 |
|
119 |
|
|
|
169 |
name="pairwise_spatial_enrichment",
|
170 |
version=VERSION,
|
171 |
description="This configuration contains data used by the Pairwise Spatial Enrichment Notebook."
|
172 |
+
),
|
173 |
+
datasets.BuilderConfig(
|
174 |
+
name="ome_tiff",
|
175 |
+
version=VERSION,
|
176 |
+
description="This configuration contains an OME-TIFF format of FOV1. Intended to be used with the OME-TIFF Conversion Notebook."
|
177 |
)
|
178 |
]
|
179 |
|
180 |
def _info(self):
|
181 |
# This is the name of the configuration selected in BUILDER_CONFIGS above
|
182 |
+
if self.config.name in list(_URL_DATASET_CONFIGS.keys()):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
183 |
features = datasets.Features(
|
184 |
{f: datasets.Value("string") for f in _URL_DATASET_CONFIGS[self.config.name].keys()}
|
185 |
)
|
data/ome_tiff.zip
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:82d3278f7d3e27e128f3ec3607934b933f68e3a3aab1298ce1e6dc5d0cf402e2
|
3 |
+
size 37043244
|