GUI Workflow Guide#
This page explains the current desktop workflow and layout.
Layout model#
The GUI uses a studio-style layout with shared backend logic:
top bar
menus, tool buttons, and feature buttons
center workspace
open SWC document tabs and the main visualization/editor area
left panel
IssuesSWC File
right inspector
issue details and active tool controls
bottom area
transient status and event output
the
Flag Reviewdock, when shown (Window -> Show/Hide Flag Review)
The center workspace stays focused on the active document. The side panels change as the selected issue or active tool changes.
Tool and feature switching#
Top-level tools:
Batch Processing
Validation
Visualization
Morphology Editing
Geometry Editing
Current feature mapping:
Batch Processing
Split
Validation
Auto Label Editing
Radii Cleaning
Simplification
Index Clean
Validation
Validation
Index Clean
Visualization
View Controls
Morphology Editing
Manual Label Editing
Auto Label Editing
Manual Radii Editing
Auto Radii Editing
Geometry Editing
Geometry Editing
Simplification
What happens when a file is opened#
When you open an SWC file:
the file is loaded into a document tab
the active tool panels are synchronized to that document
validation is run automatically for a normal editable document when no validation report exists yet
the resulting report is converted into the shared issue list
That automatic validation step is why the GUI can immediately present an issue-oriented workflow after a file is loaded.
Working with several files#
File -> Openaccepts several files at once; each opens in its own tab and the first one is shown. The other tabs are validated when you first switch to them.Opening a file that is already open (from
File -> Open,Recent Filesor theFlag Reviewwindow) switches to its tab instead of opening it twice. Paths that name the same file in another spelling (a different letter case on macOS, a link) count as the same file.Validation runs in the background. Switching tabs while it runs does not wait for it: the
Issuespanel saysRunning validation...until the shown file’s issues are ready, and a validation that fails says so.Choosing more than 10 new files at once asks for confirmation first: every tab has its own 3D views and dendrogram, so many open files use a lot of memory.
Window -> Next FileandWindow -> Previous File(Ctrl+Tab/Ctrl+Shift+Tab) move between the open tabs.
Node-type colours#
A small legend in the corner of the 3D view lists the colour of each
node type in the current file: soma (green), axon (blue), basal
dendrite (red), apical dendrite (pink), undefined (grey), and any
custom types with their registered names and colours. It updates when
the file’s types change, for example after auto-labeling.
View -> Show Node-Type Legend turns it off and on.
Issue-driven repair flow#
The intended desktop loop is:
open an SWC file
review the
Issuespanelclick one issue
inspect the problem and suggested action in the right inspector
let the app route you to the matching repair tool
apply the repair
rerun validation
review the new per-file history operation and any requested reports
What the issue list includes#
The issue list can include:
validation findings
blocked prerequisite summaries
suspicious radii suggestions
likely wrong-label suggestions
a simplification suggestion
How issue routing behaves#
Typical routing behavior:
index issues
Validation -> Index Clean
label issues
Morphology Editing
radii issues
Manual Radii EditingorAuto Radii Editing
topology and geometry issues
Geometry Editing
Some checks use popup-only actions. For example, if a file contains custom type IDs that are not yet defined, the GUI can open the custom type definition dialog rather than only switching tabs.
The Likely wrong labels issue compares the file’s current labels with
the labels the SWC auto-labeler gives. It compares labels only and does
not score the quality flag. Its action opens Auto Label Editing.
Auto-labeling and flag review#
Auto-labeling uses the SWC auto-labeler, version 1.0.1.
Morphology Editing -> Auto Label Editinglabels the current canvas. Choose the cell class (Auto (Stage 1 decides),3-class (axon, basal, apical)or2-class (axon, dendrite)), turn theQuality flagon or off, and optionally pick a model folder.Runapplies the labels and records them in the file’s history. The result shows the cell class, the predicted per-cell F1, the flag state and its reason, and a warning when your chosen class differs from Stage 1’s prediction.Batch Processing -> Auto Label Editinglabels every SWC file in a folder in place, each with its own history. It flags the riskiest share of each cell class (Flag the riskiest [N %] of each cell class, 10% by default).When a batch with the quality flag on finishes, the
Flag Reviewwindow opens as a dock at the bottom of the main window. It lists every file, riskiest first. Open a cell from it, check its labels, and mark itOKorCorrected. The marks are saved into the review file, so a review can be resumed.Window -> Show/Hide Flag Reviewshows or hides the window.Open Cell(or a double-click) opens every selected cell, each in its own tab.PreviousandNextopen the cell before or after the current one in the list (riskiest first, unless you sorted by another column), so you can step through the riskiest cells without going back to the list. WithShow: Not reviewed, a cell you mark leaves the list and nothing stays selected;Nextthen opens the cell that came after it, so no cell is skipped or marked unseen. Loading a review starts again at its riskiest cell. Cells opened from the review are shown inMorphology Editingwhen Batch Processing is active, also while a validation is still running.Reviews written by
swcstudio batch auto-labelcan hold paths relative to the folder the command ran in; they are looked up from the review file’s folder (the batch folder).A
Warningscolumn shows a cell’s warnings (for exampleno axon labeled) when the review records any.Window -> Show/Hide Auto Typing Guideshows a short description of the labeling stages.Help -> Aboutshows the app, models, and auto-labeler versions.
See Reviewing Flagged Cells for the full review workflow.
Custom types in the GUI#
Custom types are managed from dendrogram editing with Add/Edit Types.
Users can define:
type ID
name
color
notes
These definitions are written to the persistent custom type registry, so they remain available after closing and reopening the application.
See Custom Types and Labels for the exact storage behavior and log integration.
Saving, history, and outputs#
The GUI writes tracked morphology edits directly back to the source SWC and records the operation history in the encrypted sidecar archive.
Files changed on disk#
While a file is open, something else can write it: a batch run in the GUI or on the command line (Auto Label Editing relabels every file in its folder in place), or another program. The GUI never writes an older copy back over such changes without asking:
When a batch run finishes, every open tab whose file it changed is reloaded. A tab that also has changes of its own (for example after
Undo) keeps them; it is marked[changed on disk]and listed in a warning.Opening a file again (
File -> Open,Recent Files,Flag Review) or switching to its tab reloads it the same way; if the tab has changes of its own, opening it again asks:Reload from DiskorKeep My Version.If an edit or a save would replace a file that changed on disk since the tab last read or wrote it, the GUI asks first:
Reload from Disk(discard the tab’s version and the edit),Overwrite File, orCancel(nothing is written and the edit is not applied).File -> Reload from Diskshows the current file as it is on disk.Save As(andExport) refuse a file that is open in another tab; close that tab first or choose another name.An Auto Label Editing result for a file that was closed or reloaded while the labeler ran is discarded, not written.
Label and radius edits (manual labeling, Auto Label Editing, radii
edits) rewrite only the changed fields of the file, as the command-line
auto-label does: comment lines stay where they are, and text after a
# on a node line, columns after the seventh, line endings and a UTF-8
byte-order mark are kept (the # @PROV pointer lines go above them).
Edits that change ids, parents, coordinates or
the set of nodes (Index Clean, geometry edits, Simplification) write the
file from the edited table: the original number text is kept for every
unchanged value, but comment lines move to the top and extra columns and
inline comments are not kept.
Important current behavior:
the source SWC receives compact
# @PROVpointer linesthe history archive is stored as
<stem>_history.swcstudionext to the SWCthe History Browser opens on Operation History; each file numbers its operations independently as
op-1,op-2,op-3, and so onoperation rows have expandable node-level changes
undoing an operation restores the state before it, removing that operation and all later operations from the current state
the new restore operation records which operation/version it restored from
interactive Undo/Redo keeps at most 20 in-memory steps and stores row-level deltas instead of retaining a full SWC dataframe for every edit
advanced users can change the in-memory step limit with the
SWCSTUDIO_UNDO_LIMITenvironment variable before launching the GUIafter applying Auto Label Editing, the next validation reuses that result instead of launching duplicate type-suspicion inference
the Commit History tab keeps exact version IDs and SHA details for technical review
mutating GUI batch tools process and record each source SWC independently
validation and report-only exports can still create text reports when requested
See Logs And Reports for the naming conventions.