Proofreading with focus mode¶
An autosegmented series comes with mistakes in it, and proofreading means going
through one object, section by section, and fixing them. Do it in focus
mode. It highlights the object you're working on, and a Cmd-click moves a
trace into that object or out of it.
Shortcuts here are the macOS ones, so on Windows and Linux use Ctrl wherever
you see Cmd.
The clips show an autosegmented series. d02 is a dendrite and ax02ves is
the vesicles of one bouton, and both are already named. Anything named
auto_boundaries_ or auto_vesicles_ still has the name the autosegmentation
gave it.
Before you start¶
Make a copy of the .jser file first and leave it alone. You can open it later
to see what the autosegmentation looked like before your fixes.
Then give the object a name you'll recognize. Open the
Object list (Lists ▸ Object list,
Cmd+Shift+O), right-click the object, choose Edit attributes of
traces..., type the name and click OK. That renames every trace of the
object, on every section.
Look at the object in 3D before you go through the sections (right-click it and choose 3D ▸ Add to scene). A flat face, two spines joined into one, or a spine with no head is often easier to see there. Double-click the spot in the 3D scene and the field goes to that place on its section.
Autosegmented traces are often jagged. Operations ▸ Smooth object traces, in the same right-click menu of the Object list, smooths the object's traces on every section and lists any it had to skip.
Name and smooth the object before you turn focus mode on.
Turn on focus mode¶
- Double-click the object in the Object list. PyReconstruct goes to the object's first section and selects its traces there.
- Press
X.

Double-click the object in the Object list, then press X. The label at the top of the field shows which object is in focus.
Yellow and green are just how focus mode displays the traces, so the colors saved with your traces don't change.
To start from the section you're on, click one of the object's traces with the
Pointer tool (P) and press X.
Now go through the object with Page Up (the next section) and Page Down
(the one before), or Fn+↑ and Fn+↓ on a MacBook, and fix what you find.
Look for green pieces that belong to the object (split errors) and parts of the
yellow that don't (merge errors). The object's traces are already selected on
each section. Save as you go (Cmd+S), because PyReconstruct doesn't save on a
timer.
While focus mode is on, a plain click doesn't select or deselect a trace, and
z-traces and flags aren't drawn. To select other traces, press Cmd+D and drag
around them (Change many traces at once).
When you can't tell which structure a piece belongs to, press H to hide the
traces and look at the image (H again brings them back), or go a section or
two up and down and watch where the piece goes.
Press X again when you're done.
Fix a split error¶
A split error is one structure broken into two or more objects. In the clip below, the autosegmentation cut the dendrite along a straight line and gave one side a different name.
- Zoom in on the green trace.
Cmd-click it. It turns yellow and takes the name, color, tags and fill of the focused object. The click changes only the section you're on, so do it on each section where the piece shows up.- Press
Shift+Mto merge it with the object's other traces on the section.

Cmd-click the green trace, then press Shift+M.
Once you Cmd-click the piece it belongs to the object, so the error is fixed.
Shift+M makes one outline of it, but it only joins closed traces that overlap
or touch. Pieces that the autosegmentation cut apart often have a hairline gap
between them, and then they stay two traces of the same object, with no
message.
Zoom in before you click, because a click goes to the trace whose outline is nearest the pointer, and that isn't always the trace the pointer is inside. It often happens with a vesicle inside a bouton. As you move the pointer, the status bar at the bottom of the window shows which trace it will be (Closest trace).
Fix a merge error¶
A merge error is two or more structures joined in one object. In the clip
below, the d02 trace also covers a thin process that only touches the
dendrite.
- Zoom in on the place where the two structures meet.
- Press
Kfor the Knife tool and drag a line along the border between them. Start the drag outside the yellow trace and end it outside the trace on the other side. The Knife cuts every yellow trace the line crosses, so keep it off the object's other traces. - Press
Pto get the Pointer tool back, and check that the cut made two pieces. The selected traces are listed at the top left of the field with a count after the object's name (d02 * 2). A cut adds one to the count. Cmd-click the piece that doesn't belong. It turns green and goes to a new object, named for the focused object with_splitat the end.

Press K and drag across the trace, press P, then Cmd-click the piece that doesn't belong. It leaves the object as d02_split.
If the cut didn't make two pieces, don't Cmd-click yet, because the click
would move all of the trace out to d02_split. That is also the way to take a
trace out of the object when none of it belongs.
Every piece you take out of d02 gets the same name, d02_split, whichever
section it's on. If all the pieces are one structure, rename d02_split in the
Object list. If a piece belongs to an object that already exists, press X,
click a trace of that object, press X again and Cmd-click the piece.
Change many traces at once¶
For a lot of small traces, like the vesicles in one bouton, it's quicker to select them together than to click each one.
- Press
Cmd+Dto deselect all traces. The object's own traces start out selected, and with them still selected a drag that starts on the object moves it. - Drag a loop around the traces with the Pointer tool.
- Press
Cmd+Shift+V(Paste attributes). The selected traces join the focused object. There's nothing to copy first, because focus mode copied the focused object when you turned it on.

Press Cmd+D, drag a loop around the traces, then press Cmd+Shift+V.
The loop takes every trace that's completely inside it, whatever object the trace belongs to, so keep it tight. Right-click the Pointer button in the tool palette to drag a rectangle instead, or to take every trace the loop touches.
Delete and Shift+M work on a selection like this too. They act on
everything that's selected, so press Cmd+D first.
If something goes wrong¶
Cmd+Z undoes a Cmd-click in either direction, and a cut, a merge or a paste
too. It takes back your changes on the section you're on, starting with the
newest. If you keep pressing it past those, the next thing it undoes can be the
smoothing or the rename, on every section. Cmd+Y puts that back.
After an undo nothing is selected, so Shift+M does nothing and the Knife asks
for a selection. Press X, click one of the object's traces and press X
again.
If X does nothing, no trace is selected. Click one of the object's traces and
press X again. If the click picked up a z-trace point instead of the trace,
turn off View ▸ Show z-traces first.
If the Knife says the trace's outline crosses over itself, nothing was cut. Zoom in and cut again. If it says so again, the trace itself crosses over. Series ▸ Clean up ▸ Repair self-crossing traces... repairs the small crossings on every section, after it asks, and lists the traces it couldn't repair. Fix those with the Scissors tool.
Things to avoid¶
Don't Cmd-click green traces you selected with a drag. Use Paste
attributes on them. A Cmd-click on a selected green trace deselects that
trace and leaves its name alone.
Don't copy other traces (Cmd+C) while focus mode is on. Paste attributes
and the Cmd-click on a green trace both paste from the copy focus mode made,
so after you copy something else they give its name to the selected traces
instead. If that happens, undo it, press X to leave focus mode, select a
trace of your object and press X again.
Don't rename the focused object while focus mode is on. Focus mode keeps the
old name, so nothing is yellow afterward, and the next Cmd-click brings the
old name back. Press X first.
Shortcuts¶
| Shortcut | Action |
|---|---|
X |
Focus mode on or off |
Cmd-click |
In focus mode, add a trace to the focused object or move one out of it |
Shift+M |
Merge selected traces |
K |
Knife tool |
P |
Pointer tool |
H |
Hide or show all traces |
Cmd+D |
Deselect all traces |
Cmd+Shift+V |
Paste attributes |
Cmd+Z / Cmd+Y |
Undo / redo |
Cmd+S |
Save |
Page Up / Page Down |
Next / previous section |
These are the defaults. You can change all of them except Page Up and
Page Down under Help ▸ Shortcuts list, along with the key you hold for
the focus mode click. Before version 1.21.0 that click was a Shift-click.