srivarra commited on
Commit
bc1594e
1 Parent(s): 2d414a1

added ome_tiff example, added config to ark_example.py

Browse files
Files changed (2) hide show
  1. ark_example.py +13 -14
  2. 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
 
@@ -117,7 +121,7 @@ _URL_DATASET_CONFIGS = {
117
  class ArkExample(datasets.GeneratorBasedBuilder):
118
  """The Dataset consists of 11 FOVs"""
119
 
120
- VERSION = datasets.Version("0.0.4")
121
 
122
  # You will be able to load one or the other configurations in the following list with
123
  BUILDER_CONFIGS = [
@@ -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
 
121
  class ArkExample(datasets.GeneratorBasedBuilder):
122
  """The Dataset consists of 11 FOVs"""
123
 
124
+ VERSION = datasets.Version("0.0.5")
125
 
126
  # You will be able to load one or the other configurations in the following list with
127
  BUILDER_CONFIGS = [
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:ebd52dc96b9a9b3dd464d8d595cc2b310c1066ad3851210aa4c2f66d3e091728
3
+ size 37037576