Manual
Reference manual for neuTube concepts, menus, editing tools, shortcuts, and Vaa3D plugin support.
Note: Version 1.0z was patched on Jul. 12, 2018.
Terminology
The structure of a neuron is modeled as a tree, composed of a set of nodes and the edges connecting them. Each node is a ball in 3D space, and its size is specified by its radius. The edges form the skeleton of the neuron.
This simple model is also defined by the commonly used SWC format. Therefore, we sometimes refer to a node as a neuron node or an SWC node.
In neuTube, one neuron can have isolated nodes, which form multiple connected components. Creating a tree model from image data is called tracing.
Since neuTube is mainly designed for tracing 3D images, an image often means a 3D image, also called a stack. neuTube provides both 2D visualization and 3D visualization of image data and neuron structures. A window of 2D visualization is called a 2D window, and similarly, 3D visualization is shown in a 3D window. Edits in the 2D window and 3D window are called 2D editing and 3D editing respectively.
Main Menu

File
- File → Open…: Open a file, which can be a TIFF or an SWC file.
- File → Import → Image Sequence: Import a sequence of images. When a TIFF file is selected, the program analyzes the file name pattern, extracts the base name and ending number, and loads all TIFF files with the same base name in ascending numeric order.
- File → Expand Current → SWC: Add an SWC file to the current document.
- File → Expand Current → Mask: Add a mask to the current document.
- File → Save Image/Stack: Save the current image or stack as a TIFF file.
- File → Export → Mask: Export the current mask as a TIFF file.
Edit
- Undo / Redo: neuTube supports unlimited undo/redo for most SWC editing operations.
View
- View → Adjust → Brightness/Contrast: Open the brightness and contrast dialog for the current image. The adjustment applies to all slices.
- View → Object Mode: Set the object view mode, which is for SWC only in the current version.
- View → Object Mode → Dense: Show objects in dense mode to display most details.
- View → Object Mode → Sparse: Show objects in sparse mode.
- View → Object Mode → Skeleton: Show objects in skeleton mode. Only the skeletons are shown if they are available.
- View → Autosaved: Show all automatically saved files. This is useful for recovering a reconstruction after a crash.
- View → Information: Show information about the current document.
Tools
- Tools → Process → Extract Channel: Extract a channel from a multi-channel image.
- Tools → Process → Invert: Invert the color of the current image.
- Tools → Manage Objects: Show the list of objects in the current document.
User Interaction
Trace


Editing
Start: Select any node or set of nodes, then right-click to open the context menu.

Select Nodes
The simplest way to select a node is to click it with the left mouse button. Once a node is selected, its display pattern changes to reflect the selection status.

There are also several ways to select multiple nodes:
- Cmd/Ctrl + click: Select a node without deselecting nodes that are already selected. If the clicked node is already selected, this becomes a deselection operation.
- Shift + click: Select the path from the currently selected node or nodes to the newly selected node.
- Alt + click: Select all nodes growing from the clicked node until meeting other selected nodes.



The hotkey Cmd/Ctrl + A selects all nodes.
Extend

Connect
neuTube provides several ways to connect nodes:
- Select a node and then connect to another

- Select multiple nodes and connect
Tip: the shortcut key for this operation is C.

- Connect to the closest node

Change Position
Change X-Y position
The four keys A, W, S, and D are used to change the node position on the X-Y plane.

You can also use the mouse to move the selected nodes. Trigger Move Selected (Shift+Mouse) in the context menu and the cursor changes to a hand shape. Hold Shift and press the left button to move the selected nodes around.
Change Z position
Changing the Z position of a node is a little more complicated:
- Select one or more nodes to change Z.
- Move the image plane to the target position. Any selected node will move its center to the displayed plane.
- Trigger the
Move to Current Planecommand in the context menu.

The shortcut key is F.
Change Size
Changing the size of a node is linked to the Q and E keys.
After selecting one or more nodes, hit Q to make them smaller or E to make them bigger. These two keys are close to the position keys so the user can change position or size without moving their hands.
Remove
Delete nodes
Select nodes to delete, then hit Del or X. Another way is to use the Delete command in the context menu.
Remove edges
Select the nodes forming the edges to delete, then hit B. The corresponding command in the context menu is Break.
Note that the nodes must be directly connected:

3D Editing
Most editing functions in the 3D window are similar to those in the 2D window.

Note: The interface shown is from v0.93+, which has a slightly different control layout compared to older versions. In older versions, Neurons was Swcs, Neuron Nodes was Swc Nodes, Image was Volume, and General was Utils.
Special functions in 3D:
Locate node(s) in 2D

Change Node Type in 3D

Hot Keys
Cmd is referred to as Ctrl on PC.
General
Cmd+A: Select all SWC nodesCmd+Z: UndoCmd+Shift+Z: RedoBackspace/Delete: Delete selected objectsSpace: ExtendC: Connect selected SWC nodesN: Connect to the nearest SWC node (only works for a single selected node)B: Break SWC node connectionsV: Enable moving selected objects with the mouse
2D Window
G: Turn on adding an SWC node[Shift] A: Move image or SWC node to the left. HoldShiftfor fast movement.[Shift] D: Move image or SWC node to the right[Shift] W: Move image or SWC node up[Shift] S: Move image or SWC node down= / Up Arrow: Zoom in- / Down Arrow: Zoom outLeft Arrow: Decrease Z positionRight Arrow: Increase Z position< / Q: Decrease radius> / E: Increase radiusF: Change focus of selected nodes to the current plane
3D Window
=: Zoom in-: Zoom outAll Arrows: Rotate[Shift] Arrows: Move<: Decrease radius>: Increase radiusCmd + S: Save SWCCmd + Plus: Increase SWC size scaleCmd + Minus: Decrease SWC size scaleCmd + M: Change SWC display modeZ: Locate selected nodes in 2D
Vaa3D Plugin
neuTube can be integrated into Vaa3D as a plugin. You can find it in the Vaa3D menu at Plug-In > neuron_tracing > neutube.