Datasets:
Sricharan Reddy Varra
commited on
Commit
·
9ed93a8
1
Parent(s):
9b38f7e
added dataconfigs for Fiber Seg, LDA Preprocessing + Training / Inference
Browse files- ark_example.py +32 -3
- data/spatial_analysis/spatial_lda.zip +3 -0
ark_example.py
CHANGED
|
@@ -60,15 +60,16 @@ _LICENSE = "https://github.com/angelolab/ark-analysis/blob/main/LICENSE"
|
|
| 60 |
# _URL_REPO = "https://huggingface.co/datasets/angelolab/ark_example"
|
| 61 |
|
| 62 |
|
| 63 |
-
_URL_DATA = {
|
| 64 |
"image_data": "./data/image_data.zip",
|
| 65 |
"cell_table": "./data/segmentation/cell_table.zip",
|
| 66 |
"deepcell_output": "./data/segmentation/deepcell_output.zip",
|
| 67 |
"example_pixel_output_dir": "./data/pixie/example_pixel_output_dir.zip",
|
| 68 |
"example_cell_output_dir": "./data/pixie/example_cell_output_dir.zip",
|
|
|
|
| 69 |
}
|
| 70 |
|
| 71 |
-
_URL_DATASET_CONFIGS = {
|
| 72 |
"segment_image_data": {"image_data": _URL_DATA["image_data"]},
|
| 73 |
"cluster_pixels": {
|
| 74 |
"image_data": _URL_DATA["image_data"],
|
|
@@ -87,6 +88,18 @@ _URL_DATASET_CONFIGS = {
|
|
| 87 |
"deepcell_output": _URL_DATA["deepcell_output"],
|
| 88 |
"example_cell_output_dir": _URL_DATA["example_cell_output_dir"],
|
| 89 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 90 |
}
|
| 91 |
|
| 92 |
|
|
@@ -94,7 +107,7 @@ _URL_DATASET_CONFIGS = {
|
|
| 94 |
class ArkExample(datasets.GeneratorBasedBuilder):
|
| 95 |
"""The Dataset consists of 11 FOVs"""
|
| 96 |
|
| 97 |
-
VERSION = datasets.Version("0.0.
|
| 98 |
|
| 99 |
# This is an example of a dataset with multiple configurations.
|
| 100 |
# If you don't want/need to define several sub-sets in your dataset,
|
|
@@ -126,6 +139,22 @@ class ArkExample(datasets.GeneratorBasedBuilder):
|
|
| 126 |
version=VERSION,
|
| 127 |
description="This configuration contains data used by notebook 4 - Post Clustering.",
|
| 128 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 129 |
]
|
| 130 |
|
| 131 |
def _info(self):
|
|
|
|
| 60 |
# _URL_REPO = "https://huggingface.co/datasets/angelolab/ark_example"
|
| 61 |
|
| 62 |
|
| 63 |
+
_URL_DATA: dict[str, str] = {
|
| 64 |
"image_data": "./data/image_data.zip",
|
| 65 |
"cell_table": "./data/segmentation/cell_table.zip",
|
| 66 |
"deepcell_output": "./data/segmentation/deepcell_output.zip",
|
| 67 |
"example_pixel_output_dir": "./data/pixie/example_pixel_output_dir.zip",
|
| 68 |
"example_cell_output_dir": "./data/pixie/example_cell_output_dir.zip",
|
| 69 |
+
"spatial_lda": "./data/spatial_analysis/spatial_lda.zip",
|
| 70 |
}
|
| 71 |
|
| 72 |
+
_URL_DATASET_CONFIGS: dict[str, dict[str, str]] = {
|
| 73 |
"segment_image_data": {"image_data": _URL_DATA["image_data"]},
|
| 74 |
"cluster_pixels": {
|
| 75 |
"image_data": _URL_DATA["image_data"],
|
|
|
|
| 88 |
"deepcell_output": _URL_DATA["deepcell_output"],
|
| 89 |
"example_cell_output_dir": _URL_DATA["example_cell_output_dir"],
|
| 90 |
},
|
| 91 |
+
"fiber_segmentation": {
|
| 92 |
+
"image_data": _URL_DATA["image_data"],
|
| 93 |
+
},
|
| 94 |
+
"LDA_preprocessing": {
|
| 95 |
+
"image_data": _URL_DATA["image_data"],
|
| 96 |
+
"cell_table": _URL_DATA["cell_table"],
|
| 97 |
+
},
|
| 98 |
+
"LDA_training_inference": {
|
| 99 |
+
"image_data": _URL_DATA["image_data"],
|
| 100 |
+
"cell_table": _URL_DATA["cell_table"],
|
| 101 |
+
"spatial_lda": _URL_DATA["spatial_lda"],
|
| 102 |
+
}
|
| 103 |
}
|
| 104 |
|
| 105 |
|
|
|
|
| 107 |
class ArkExample(datasets.GeneratorBasedBuilder):
|
| 108 |
"""The Dataset consists of 11 FOVs"""
|
| 109 |
|
| 110 |
+
VERSION = datasets.Version("0.0.4")
|
| 111 |
|
| 112 |
# This is an example of a dataset with multiple configurations.
|
| 113 |
# If you don't want/need to define several sub-sets in your dataset,
|
|
|
|
| 139 |
version=VERSION,
|
| 140 |
description="This configuration contains data used by notebook 4 - Post Clustering.",
|
| 141 |
),
|
| 142 |
+
datasets.BuilderConfig(
|
| 143 |
+
name="fiber_segmentation",
|
| 144 |
+
version=VERSION,
|
| 145 |
+
description="This configuration contains data used by the Fiber Segmentation Notebook.",
|
| 146 |
+
),
|
| 147 |
+
datasets.BuilderConfig(
|
| 148 |
+
name="LDA_preprocessing",
|
| 149 |
+
version=VERSION,
|
| 150 |
+
description="This configuration contains data used by the Spatial LDA - Preprocessing Notebook."
|
| 151 |
+
),
|
| 152 |
+
datasets.BuilderConfig(
|
| 153 |
+
name="LDA_training_inference",
|
| 154 |
+
version=VERSION,
|
| 155 |
+
description="This configuration contains data used by the Spatial LDA - Training and Inference Notebook."
|
| 156 |
+
),
|
| 157 |
+
|
| 158 |
]
|
| 159 |
|
| 160 |
def _info(self):
|
data/spatial_analysis/spatial_lda.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7028b6b132fa51eee9ebb99f9f79106e9a6f1505cd92604cc1a6dce6f99aee7a
|
| 3 |
+
size 3486371
|