Dataset card: synthetic, how it was generated, size
Browse files
README.md
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
pretty_name: spaCR example -- invasion (SYNTHETIC)
|
| 4 |
+
tags:
|
| 5 |
+
- microscopy
|
| 6 |
+
- synthetic
|
| 7 |
+
- spacr
|
| 8 |
+
size_categories:
|
| 9 |
+
- n<1K
|
| 10 |
+
---
|
| 11 |
+
|
| 12 |
+
# spaCR example data: invasion -- SYNTHETIC
|
| 13 |
+
|
| 14 |
+
**These images are synthetic. No cell, parasite or antibody was imaged.**
|
| 15 |
+
They exist to show spaCR's **Invasion Assay** module working end to end, and
|
| 16 |
+
say nothing about any real invasion experiment, stain or treatment. No real
|
| 17 |
+
two-colour differential-staining acquisition was available to publish.
|
| 18 |
+
|
| 19 |
+
Download it from inside spaCR with **Load test data...** in the Invasion
|
| 20 |
+
Assay module, or with `spacr-download invasion`. The settings file ships
|
| 21 |
+
beside the data, so after loading, Run is the next step.
|
| 22 |
+
|
| 23 |
+
## Size
|
| 24 |
+
|
| 25 |
+
`spacr-example-invasion.tar`: 106,915,840 bytes (107 MB), an uncompressed tar.
|
| 26 |
+
SHA-256 `881e512447079719d0465d31950bb33ed68ccc099ea7a3024e17f787fbb682d2`.
|
| 27 |
+
|
| 28 |
+
## How it was generated
|
| 29 |
+
|
| 30 |
+
`tools/build_invasion_example_dataset.py` in the spaCR repository draws the
|
| 31 |
+
fields with the lattice, object shapes and noise model of `spacr.qt.synthetic`
|
| 32 |
+
(seeded from well and field, so reproducible byte for byte) and writes each
|
| 33 |
+
field as the merged stack spaCR's Mask module produces: four image planes,
|
| 34 |
+
then cell, nucleus and pathogen label planes. **The label planes are the
|
| 35 |
+
objects the generator drew, not a Cellpose segmentation**: Mask with
|
| 36 |
+
Cellpose-SAM did not finish one plate row in 40 minutes on CPU, and the GPU
|
| 37 |
+
was not available. **spaCR's own Measure module** then measured every field,
|
| 38 |
+
so `measurements.db` holds measured intensities, not the generator's
|
| 39 |
+
numbers. `--segment` on the builder runs Mask instead, for a rebuild on a GPU.
|
| 40 |
+
|
| 41 |
+
The design is the one the Invasion tutorial's synthetic data used: a
|
| 42 |
+
staining-control column and two conditions with a known mixture of invaded
|
| 43 |
+
and attached parasites.
|
| 44 |
+
|
| 45 |
+
| column | condition | outside stain |
|
| 46 |
+
|---|---|---|
|
| 47 |
+
| c1 | staining control | none on any parasite (the no-primary baseline) |
|
| 48 |
+
| c2 | vehicle | 70% of parasites invaded (no outside stain) |
|
| 49 |
+
| c3 | inhibitor | 35% of parasites invaded |
|
| 50 |
+
|
| 51 |
+
Rows A-D, 2 fields per well, 512x512 px, 64 host cells
|
| 52 |
+
per field, 75% of them carrying one or two parasites. One attached parasite
|
| 53 |
+
in ten is drawn at a quarter of the outside-stain brightness, so the threshold
|
| 54 |
+
has something to get wrong.
|
| 55 |
+
|
| 56 |
+
## Channels
|
| 57 |
+
|
| 58 |
+
| channel | stain | used as |
|
| 59 |
+
|---|---|---|
|
| 60 |
+
| 0 | nucleus | nucleus mask |
|
| 61 |
+
| 1 | cell | cell mask |
|
| 62 |
+
| 2 | total parasite stain (post-permeabilisation) | pathogen mask; `total_channel` |
|
| 63 |
+
| 3 | outside parasite stain (pre-permeabilisation) | `outside_channel` |
|
| 64 |
+
|
| 65 |
+
## Contents
|
| 66 |
+
|
| 67 |
+
- `measurements/measurements.db` -- Measure's tables (cell, nucleus,
|
| 68 |
+
pathogen, cytoplasm).
|
| 69 |
+
- `merged/` -- the 24 merged stacks: four image planes, then the cell,
|
| 70 |
+
nucleus and pathogen masks (drawn, see above).
|
| 71 |
+
- `ground_truth.csv` -- every parasite the generator drew, with its position,
|
| 72 |
+
host cell and state. Compare the module's calls against it:
|
| 73 |
+
|
| 74 |
+
| state | parasites drawn |
|
| 75 |
+
|---|---|
|
| 76 |
+
| attached | 514 |
|
| 77 |
+
| invaded | 617 |
|
| 78 |
+
| no outside stain (staining control) | 582 |
|
| 79 |
+
|
| 80 |
+
- `settings/invasion_settings.csv` -- the module settings: c1 as the staining
|
| 81 |
+
baseline, c2 vehicle, c3 inhibitor, channels 3 (outside) and 2 (total).
|
| 82 |
+
`src` is filled in with the download location when spaCR unpacks it.
|