Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -21,7 +21,7 @@ Each round — a **loop** — proposes new culture protocols, runs them at the b
|
|
| 21 |
resulting cells. The measurements from each loop are published here as a separate file.
|
| 22 |
|
| 23 |
- **Code and full reproduction pipeline:** <https://github.com/theislab/LabCompass>
|
| 24 |
-
- **Contents:** per-loop measurements in `loops/`, trained models in `checkpoints/`
|
| 25 |
- **Wet-lab experiments and measurements:** Göttgens Lab
|
| 26 |
- **License:** CC-BY-4.0
|
| 27 |
|
|
@@ -176,6 +176,81 @@ model = FlowMatching.load(path)
|
|
| 176 |
In the reproduction repository these are wired up through the `paths` config group, so pointing a run
|
| 177 |
at a downloaded loop is a matter of overriding the four checkpoint paths.
|
| 178 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 179 |
## Citation
|
| 180 |
|
| 181 |
<!-- TODO: replace with the published reference before release. -->
|
|
|
|
| 21 |
resulting cells. The measurements from each loop are published here as a separate file.
|
| 22 |
|
| 23 |
- **Code and full reproduction pipeline:** <https://github.com/theislab/LabCompass>
|
| 24 |
+
- **Contents:** per-loop measurements in `loops/`, trained models in `checkpoints/`, designed protocols in `solutions/`
|
| 25 |
- **Wet-lab experiments and measurements:** Göttgens Lab
|
| 26 |
- **License:** CC-BY-4.0
|
| 27 |
|
|
|
|
| 176 |
In the reproduction repository these are wired up through the `paths` config group, so pointing a run
|
| 177 |
at a downloaded loop is a matter of overriding the four checkpoint paths.
|
| 178 |
|
| 179 |
+
## Designed protocols (`solutions/`)
|
| 180 |
+
|
| 181 |
+
`solutions/` contains **every candidate protocol LabCompass generated**, across all sweeps behind the
|
| 182 |
+
paper — about 1.07 million designs. The raw output is a tree of ~16,000 run directories; each loop is
|
| 183 |
+
flattened here into a single gzipped CSV, with the directory structure turned into columns.
|
| 184 |
+
|
| 185 |
+
| File | Designs | Runs | Size |
|
| 186 |
+
| --- | --- | --- | --- |
|
| 187 |
+
| `solutions/loop0.csv.gz` | 74,400 | 744 | 35 MB |
|
| 188 |
+
| `solutions/loop1.csv.gz` | 373,900 | 3,111 | 169 MB |
|
| 189 |
+
| `solutions/loop2.csv.gz` | 69,012 | 1,386 | 32 MB |
|
| 190 |
+
| `solutions/loop2p5.csv.gz` | 152,050 | 3,041 | 53 MB |
|
| 191 |
+
| `solutions/loop3.csv.gz` | 195,000 | 3,900 | 86 MB |
|
| 192 |
+
| `solutions/loop4.csv.gz` | 208,700 | 4,174 | 91 MB |
|
| 193 |
+
|
| 194 |
+
Each row is one designed protocol. Column counts differ between loops (170–187) because the design
|
| 195 |
+
space and the cell-type panel both grew over the campaign, which is why these are six files rather
|
| 196 |
+
than one.
|
| 197 |
+
|
| 198 |
+
### Columns
|
| 199 |
+
|
| 200 |
+
- **Provenance** — `loop`, `experiment_type` (the optimisation variant and guidance schedule, e.g.
|
| 201 |
+
`penalized_all_axes-pure_populations-constant`), `cell_type` (the target the run optimised for),
|
| 202 |
+
`run_id`, and `uncertainty_scoring`.
|
| 203 |
+
- **The design** — one column per protocol axis (`tpo_[ng_ml]`, `um171_[nm]`, `o2_[%]`,
|
| 204 |
+
`days_of_culture`, …), plus `:rescaled` variants.
|
| 205 |
+
- **Predicted outcome** — `<cell_type>_prop` for every cell type in the panel, and `loss`.
|
| 206 |
+
- **Uncertainty** — `<cell_type>_prop_std`, `target_ct_loss_mean`, `target_ct_loss_std`,
|
| 207 |
+
`ct_prop_total_variance`.
|
| 208 |
+
- **Configuration** — ~96 `cfg:*` columns recording the resolved hydra config for that run, so every
|
| 209 |
+
design can be traced back to exactly how it was produced.
|
| 210 |
+
|
| 211 |
+
### These are unfiltered
|
| 212 |
+
|
| 213 |
+
Nothing here has been filtered or ranked. The paper's analysis applies thresholds *downstream* —
|
| 214 |
+
minimum predicted enrichment, oxygenation and culture-duration bounds, and a margin on the measured
|
| 215 |
+
design range — and those thresholds differ per loop and per target cell type. Publishing the full
|
| 216 |
+
search record keeps that choice in the reader's hands, and preserves the configurations that did not
|
| 217 |
+
work alongside those that did.
|
| 218 |
+
|
| 219 |
+
The `uncertainty_scoring` column says how each row was scored:
|
| 220 |
+
|
| 221 |
+
- `same_loop` — scored under that loop's own forward model, the usual case.
|
| 222 |
+
- `next_loop` — the same candidates re-scored under a *later* loop's model. This is what shows
|
| 223 |
+
predictive uncertainty falling as data accumulates; present for loops 0 and 1.
|
| 224 |
+
- `none` — uncertainty estimation never ran for that run, so the `_std` columns are empty. This
|
| 225 |
+
affects **roughly half of loop 2.5** (71,450 of 152,050 rows); the designs and their predicted
|
| 226 |
+
proportions are still there.
|
| 227 |
+
|
| 228 |
+
### Not included
|
| 229 |
+
|
| 230 |
+
The per-run `.npz` files holding the guidance trajectories and per-candidate forward samples are not
|
| 231 |
+
published — roughly 157 GB, around thirty times everything else, and needed only for trajectory and
|
| 232 |
+
sensitivity plots. They can be regenerated from the published `checkpoints/`.
|
| 233 |
+
|
| 234 |
+
### Loading
|
| 235 |
+
|
| 236 |
+
```python
|
| 237 |
+
import pandas as pd
|
| 238 |
+
from huggingface_hub import hf_hub_download
|
| 239 |
+
|
| 240 |
+
path = hf_hub_download(
|
| 241 |
+
repo_id="theislab/LabCompass",
|
| 242 |
+
filename="solutions/loop3.csv.gz",
|
| 243 |
+
repo_type="dataset",
|
| 244 |
+
)
|
| 245 |
+
designs = pd.read_csv(path)
|
| 246 |
+
|
| 247 |
+
# e.g. the most promising MgkPro designs that carry a scored uncertainty
|
| 248 |
+
mgk = designs[
|
| 249 |
+
(designs["cell_type"] == "late_MgkPro")
|
| 250 |
+
& (designs["uncertainty_scoring"] == "same_loop")
|
| 251 |
+
].nlargest(20, "late_MgkPro_prop")
|
| 252 |
+
```
|
| 253 |
+
|
| 254 |
## Citation
|
| 255 |
|
| 256 |
<!-- TODO: replace with the published reference before release. -->
|