Refine CM4AI-DREAM dataset documentation
Browse files- LICENSE.md +2 -2
- README.md +8 -28
LICENSE.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
-
#
|
| 2 |
|
| 3 |
-
|
| 4 |
|
| 5 |
- [HPA-train_v1.0/LICENSE.txt](HPA-train_v1.0/LICENSE.txt)
|
| 6 |
- [KOLF-train_v1.0/LICENSE.txt](KOLF-train_v1.0/LICENSE.txt)
|
|
|
|
| 1 |
+
# License notices and attribution
|
| 2 |
|
| 3 |
+
The CM4AI-DREAM training data retain their original license notices:
|
| 4 |
|
| 5 |
- [HPA-train_v1.0/LICENSE.txt](HPA-train_v1.0/LICENSE.txt)
|
| 6 |
- [KOLF-train_v1.0/LICENSE.txt](KOLF-train_v1.0/LICENSE.txt)
|
README.md
CHANGED
|
@@ -16,21 +16,15 @@ viewer: false
|
|
| 16 |
|
| 17 |
# CM4AI-DREAM training data
|
| 18 |
|
| 19 |
-
**Release status: preparation in progress. The complete training data have not yet been uploaded to this repository.** The layout and download instructions below describe the intended complete release.
|
| 20 |
-
|
| 21 |
CM4AI-DREAM provides single-cell fluorescence microscopy training data for conditional protein-stain generation. Morphology stains, cell-line information, target protein identifiers and protein sequences provide context for the observed protein stain.
|
| 22 |
|
| 23 |
-
|
| 24 |
|
| 25 |
-
|
| 26 |
|
| 27 |
-
|
| 28 |
-
| --- | ---: | --- | ---: | ---: |
|
| 29 |
-
| `HPA-train_v1.0/` | 15,674 | `hpa_train_manifest.csv.gz`, `LICENSE.txt` | 15,676 | 609.224 |
|
| 30 |
-
| `KOLF-train_v1.0/` | 495 | `kolf_train_manifest.csv.gz`, `LICENSE.txt` | 497 | 80.383 |
|
| 31 |
-
| **Combined data release** | **16,169** | Two manifests and two licenses | **16,173** | **689.607** |
|
| 32 |
|
| 33 |
-
|
| 34 |
|
| 35 |
```text
|
| 36 |
HPA-train_v1.0/
|
|
@@ -47,11 +41,9 @@ KOLF-train_v1.0/
|
|
| 47 |
HPA00/ ... HPA07/
|
| 48 |
```
|
| 49 |
|
| 50 |
-
Keep the two release folders separate. TAR basenames and `LICENSE.txt` names overlap between the releases, so flattening or merging the folders can overwrite files.
|
| 51 |
-
|
| 52 |
## Download
|
| 53 |
|
| 54 |
-
|
| 55 |
|
| 56 |
```bash
|
| 57 |
hf download LundbergLab/CM4AI-DREAM --repo-type dataset --local-dir CM4AI-DREAM
|
|
@@ -64,11 +56,9 @@ hf download LundbergLab/CM4AI-DREAM --repo-type dataset \
|
|
| 64 |
--include 'KOLF-train_v1.0/**' --local-dir CM4AI-DREAM
|
| 65 |
```
|
| 66 |
|
| 67 |
-
For a private or gated release, first authenticate with an account that has access using `hf auth login`. For reproducible work, add `--revision` with the published release tag or commit hash. Allow space for both the downloaded archives and any images you choose to extract.
|
| 68 |
-
|
| 69 |
## Manifest and archive format
|
| 70 |
|
| 71 |
-
Each compressed CSV manifest has one row per cell. TAR archives group the corresponding image files and protein sequences.
|
| 72 |
|
| 73 |
| Column | Contents |
|
| 74 |
| --- | --- |
|
|
@@ -88,7 +78,7 @@ Each compressed CSV manifest has one row per cell. TAR archives group the corres
|
|
| 88 |
| `mask_path` | Mask PNG member path inside the TAR |
|
| 89 |
| `sequence_path` | Protein sequence member path inside the TAR |
|
| 90 |
|
| 91 |
-
Resolve `tar_file` within the same release's `tars/` subdirectories. The other path columns refer to members **inside** that archive, rather than standalone repository files.
|
| 92 |
|
| 93 |
For example, inspect a row and open its protein image without extracting a whole archive:
|
| 94 |
|
|
@@ -116,21 +106,11 @@ with tarfile.open(matches[0], "r:") as archive:
|
|
| 116 |
print(row["gene_name"], row["cell_line"], image.size)
|
| 117 |
```
|
| 118 |
|
| 119 |
-
The image-reading example requires Pillow; the other imports are part of Python's standard library.
|
| 120 |
-
|
| 121 |
-
## Sources and preprocessing
|
| 122 |
-
|
| 123 |
-
The HPA component derives from Human Protein Atlas version 25. Its release license describes single-cell cropping, resizing and conversion to 8-bit images.
|
| 124 |
-
|
| 125 |
-
The KOLF component was generated by the Cell Maps for Artificial Intelligence (CM4AI) project in KOLF2.1J human induced pluripotent stem cells. Its release license describes background subtraction, normalization per well, conversion to 8-bit images and cropping to 512 × 512 pixel single-cell images.
|
| 126 |
-
|
| 127 |
-
Both release licenses identify Ensembl release 109 as the source of protein sequences. The original release files will be preserved without repackaging or additional image transformations.
|
| 128 |
-
|
| 129 |
Cells from the same field of view or acquisition can share biological and technical variation. Localization annotations provide context and should not be treated as independently verified localization ground truth for every cell.
|
| 130 |
|
| 131 |
## Licensing and attribution
|
| 132 |
|
| 133 |
-
The image and annotation licenses specify **Creative Commons Attribution 4.0 International (CC BY 4.0)**, with different source attributions. Read the original [HPA license](HPA-train_v1.0/LICENSE.txt) and [KOLF license](KOLF-train_v1.0/LICENSE.txt) and retain the appropriate attributions.
|
| 134 |
|
| 135 |
Please cite the underlying sources listed in those notices:
|
| 136 |
|
|
|
|
| 16 |
|
| 17 |
# CM4AI-DREAM training data
|
| 18 |
|
|
|
|
|
|
|
| 19 |
CM4AI-DREAM provides single-cell fluorescence microscopy training data for conditional protein-stain generation. Morphology stains, cell-line information, target protein identifiers and protein sequences provide context for the observed protein stain.
|
| 20 |
|
| 21 |
+
The HPA images derive from Human Protein Atlas version 25 and were cropped to single cells, resized and converted to 8-bit images.
|
| 22 |
|
| 23 |
+
The KOLF images were generated by the Cell Maps for Artificial Intelligence (CM4AI) project in KOLF2.1J human induced pluripotent stem cells. They were background-subtracted, normalized per well, converted to 8-bit images and cropped to 512 × 512 pixel single-cell images.
|
| 24 |
|
| 25 |
+
Protein sequences come from Ensembl release 109.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
|
| 27 |
+
## Release contents
|
| 28 |
|
| 29 |
```text
|
| 30 |
HPA-train_v1.0/
|
|
|
|
| 41 |
HPA00/ ... HPA07/
|
| 42 |
```
|
| 43 |
|
|
|
|
|
|
|
| 44 |
## Download
|
| 45 |
|
| 46 |
+
Download the dataset with the Hugging Face CLI:
|
| 47 |
|
| 48 |
```bash
|
| 49 |
hf download LundbergLab/CM4AI-DREAM --repo-type dataset --local-dir CM4AI-DREAM
|
|
|
|
| 56 |
--include 'KOLF-train_v1.0/**' --local-dir CM4AI-DREAM
|
| 57 |
```
|
| 58 |
|
|
|
|
|
|
|
| 59 |
## Manifest and archive format
|
| 60 |
|
| 61 |
+
Each compressed CSV manifest has one row per cell. TAR archives group the corresponding image files and protein sequences. The manifests use the following columns:
|
| 62 |
|
| 63 |
| Column | Contents |
|
| 64 |
| --- | --- |
|
|
|
|
| 78 |
| `mask_path` | Mask PNG member path inside the TAR |
|
| 79 |
| `sequence_path` | Protein sequence member path inside the TAR |
|
| 80 |
|
| 81 |
+
Resolve `tar_file` within the same release's `tars/` subdirectories. The other path columns refer to members **inside** that archive, rather than standalone repository files.
|
| 82 |
|
| 83 |
For example, inspect a row and open its protein image without extracting a whole archive:
|
| 84 |
|
|
|
|
| 106 |
print(row["gene_name"], row["cell_line"], image.size)
|
| 107 |
```
|
| 108 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 109 |
Cells from the same field of view or acquisition can share biological and technical variation. Localization annotations provide context and should not be treated as independently verified localization ground truth for every cell.
|
| 110 |
|
| 111 |
## Licensing and attribution
|
| 112 |
|
| 113 |
+
The image and annotation licenses specify **Creative Commons Attribution 4.0 International (CC BY 4.0)**, with different source attributions. Read the original [HPA license](HPA-train_v1.0/LICENSE.txt) and [KOLF license](KOLF-train_v1.0/LICENSE.txt) and retain the appropriate attributions. See the root [license note](LICENSE.md) for a summary.
|
| 114 |
|
| 115 |
Please cite the underlying sources listed in those notices:
|
| 116 |
|