You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+31-15Lines changed: 31 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -146,12 +146,15 @@ ls /path/to/data/TESTXX/derivatives/cortical_tiles-2026/crops/2mm
146
146
147
147
## 4. Generate Champollion Configuration
148
148
149
-
Create dataset configuration files for Champollion:
149
+
Create dataset configuration files for Champollion.
150
+
151
+
> **Recommended:** always pass `--external-config` to keep the `local.yaml` outside the pipeline directory. This is required in read-only containers (Apptainer/Docker) and avoids accidentally committing paths specific to your machine.
150
152
151
153
```bash
152
154
pixi run python3 src/generate_champollion_config.py \
If a subject has several Morphologist acquisitions (e.g. two timepoints `wk30` and `wk40`), the script warns and uses the first one found. Specify the acquisition explicitly to avoid ambiguity:
365
+
366
+
```bash
367
+
pixi run python3 src/generate_snapshots.py \
368
+
--morphologist_dir /path/to/subjects/ \
369
+
--subject sub_0001 --acquisition wk40 \
370
+
--output_dir /path/to/snapshots/ --sulcal-only
371
+
```
372
+
367
373
### UMAP Visualization
368
374
369
-
The UMAP scatter plot projects a new subject's collateral sulcus embedding onto a pre-trained 2D map fitted on 42,433 UKBioBank40 reference subjects. The reference appears as a blue cloud, with the new subject highlighted in red.
375
+
The UMAP scatter plots project a new subject's sulcal region embeddings onto pre-trained 2D maps, one per region and hemisphere. Each plot shows a blue reference cloud (42,433 UKBioBank subjects) with the new subject highlighted in red.
376
+
377
+
By default all regions for which both an embedding CSV and a pre-trained model exist in `reference_data/` are plotted. Use `--umap_region` to restrict the output:
378
+
379
+
```bash
380
+
pixi run python3 src/generate_snapshots.py \
381
+
--embeddings_dir /path/to/embeddings/ \
382
+
--reference_data_dir reference_data/ \
383
+
--output_dir /path/to/snapshots/ \
384
+
--umap-only --umap_region FColl-SRh
385
+
```
370
386
371
387
Pre-trained UMAP artifacts are stored in `reference_data/` and contain no subject identifiers (only anonymous 2D coordinates and fitted model parameters).
0 commit comments