srivarra commited on
Commit
67d838f
1 Parent(s): 797d300

dataset rename, tma->fov mapping

Browse files
Files changed (2) hide show
  1. ark_example.py +15 -6
  2. data/fovs.zip +2 -2
ark_example.py CHANGED
@@ -55,10 +55,19 @@ _URL_REPO = "https://huggingface.co/datasets/angelolab/ark_example/resolve/main"
55
  _URLS = {"base_dataset": f"{_URL_REPO}/data/fovs.zip"}
56
 
57
  """
58
- https://huggingface.co/docs/datasets/dataset_script
59
- https://huggingface.co/docs/datasets/share
60
- https://huggingface.co/datasets/allenai/wmt22_african/blob/main/wmt22_african.py
61
- https://huggingface.co/docs/datasets/repository_structure
 
 
 
 
 
 
 
 
 
62
  """
63
 
64
  # TODO: Name of the dataset usually match the script name with CamelCase instead of snake_case
@@ -145,7 +154,7 @@ class ArkExample(datasets.GeneratorBasedBuilder):
145
  datasets.SplitGenerator(
146
  name="base_dataset",
147
  # These kwargs will be passed to _generate_examples
148
- gen_kwargs={"filepath": data_dir},
149
  ),
150
  ]
151
 
@@ -177,5 +186,5 @@ class ArkExample(datasets.GeneratorBasedBuilder):
177
  yield fov_name, {
178
  "Channel Data": chan_data,
179
  "Channel Names": chan_names,
180
- "Data Path": str(filepath),
181
  }
 
55
  _URLS = {"base_dataset": f"{_URL_REPO}/data/fovs.zip"}
56
 
57
  """
58
+ Dataset Fov renaming:
59
+
60
+ TMA2_R8C3 -> fov0
61
+ TMA6_R4C5 -> fov1
62
+ TMA7_R5C4 -> fov2
63
+ TMA10_R7C3 -> fov3
64
+ TMA11_R9C6 -> fov4
65
+ TMA13_R8C5 -> fov5
66
+ TMA17_R9C2 -> fov6
67
+ TMA18_R9C2 -> fov7
68
+ TMA21_R2C5 -> fov8
69
+ TMA21_R12C6 -> fov9
70
+ TMA24_R9C1 -> fov10
71
  """
72
 
73
  # TODO: Name of the dataset usually match the script name with CamelCase instead of snake_case
 
154
  datasets.SplitGenerator(
155
  name="base_dataset",
156
  # These kwargs will be passed to _generate_examples
157
+ gen_kwargs={"filepath": pathlib.Path(data_dir)},
158
  ),
159
  ]
160
 
 
186
  yield fov_name, {
187
  "Channel Data": chan_data,
188
  "Channel Names": chan_names,
189
+ "Data Path": filepath.as_posix(),
190
  }
data/fovs.zip CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:a87b62a2a7281cbbcdf2e7c1749130fc6a6d22b668ef5e85cac9663a9431ec78
3
- size 400326292
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:91f1dfbeb0ac7f6f7485fddd41ac5c0832dfe3bcd26d4535285bf7e46bb715bb
3
+ size 400321308