Datasets:
dataset rename, tma->fov mapping
Browse files- ark_example.py +15 -6
- 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 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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":
|
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:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:91f1dfbeb0ac7f6f7485fddd41ac5c0832dfe3bcd26d4535285bf7e46bb715bb
|
3 |
+
size 400321308
|