Projects and data¶
A Smage project is a folder named <name>.smage. It contains the imported
data, every module's settings, generated files and the diagnostic log — so an
analysis is one self-contained folder.
Folder layout¶
MyExperiment.smage\
├── project.json # manifest: metadata, samples, the workflow (task tree)
├── ui_state.json # window/UI preferences (tree state, …)
├── data\
│ ├── case.parquet # one normalized table per imported file
│ └── columns.json # column index used by the file pickers
├── Module\
│ ├── gating-abc123\ # per-module data (gates.json, masks, feature tables)
│ └── segmentation-…\
├── tmp\ # disposable working files; safe to delete
│ ├── segmentation\ # batch input/output and preview caches
│ ├── cluster\ # FlowSOM / PARC scratch
│ └── batch_align\ # CytoNorm / FlowSOM training scratch
└── log\
└── smage_20260101_120000_p1234.log
What each module stores¶
| Module | Stored under Module/<task-id>/ |
|---|---|
| Data Import | The normalized tables in data/ |
| Gating | gates.json (files, gates, per-file overrides) |
| Segmentation | Mask files (one per image) |
| Illumination Correction | Estimated correction masks |
| Unmix | Generated unmixed-column tables and image pyramids |
| Feature Down / Feature Up / Gate2Col | Generated Parquet tables |
| Everything else | Only settings, inside project.json |
Temporary files¶
tmp\ holds disposable working files, such as the rasterized inputs and
masks used by a large Segmentation batch. Smage removes them when the
operation ends or the project closes; deleting tmp\ by hand is always safe.
It is not part of the saved project and is not copied by Save Project As.
The log\ folder is not copied either; the copy starts a fresh session log.
Save Project As copies the rest of the project, including Module\.
Paths¶
Paths to files inside a project are stored relative to the project folder
(using an internal project://… form), so a project can be copied or moved to
another disk or computer without breaking. When a project is opened from a
new location, Smage resolves those paths against the folder you opened.
Only the original source files recorded by Data Import stay absolute. The
normalized data inside data\ is what the analysis uses, so a project still
works when the original FCS/CSV/TIFF files are not available on the new
computer.
Do not rename the data\ or Module\ folders by hand.
Logs¶
Every session writes a log to <project>.smage\log\. The newest file is the
current session. Logs include actions, render timings and full tracebacks —
attach the newest one when reporting a problem (see
FAQ).
Global settings¶
These live outside the project, in %APPDATA%\Smage\:
settings.json— appearance and plot defaults,extensions.json— extension environments (FlowSOM, PARC, Cellpose, …).
They are not copied with a project. On a new computer, the extension environment has to be created again from the Extension Manager.
Moving and backing up¶
- Close Smage (so the project is fully written).
- Copy the whole
<name>.smagefolder. - Open it on the other computer with
File → Open Project….
Project files are self-contained and use relative paths, so the copied folder can be opened directly from any location. There is no database and no lock file that survives a normal close, so a folder copy is a complete backup.
Use File → Rename Project… to rename a project. This moves the project folder and updates the project name together; the project does not need to be saved under a new name first.
Privacy¶
Smage processes everything locally. It does not upload data, and there is no account or telemetry. The only network access happens when you install extensions or download segmentation models from the Extension Manager, or when you open links in a browser.