CONFOCAL IMAGING
The image files used in this tutorial were taken using a Leica confocal microscope (model SP8). Using fluorescent imaging technique (*) and an extra spatial filter, this confocal can selectively collect light at a specific z-plane, filtering out any out-of-focus illumination. A series of clear 2D images can then be taken across the z plane. If the 2-dimensional slices are made of the x and y planes, the thickness that is available as a third-dimension is the z plane. With this, the series of 2D photos can be combined, allowing for reconstruction and 3D visualization and analyses of the specimen in question.
When tracing neurons imaged using a confocal, it helps to keep the z plane and the overall 3D shape in mind as it could interfere with some measurements like overall dendritic length. For example, sometimes branches that are part of the neuron are cut off the slice. With a 2D view, this could just seem like a shorter branch, but looking at the 3D view, if the branch ends at the edge of the z plane, it’s possible that the branch is actually longer but was just included in a different section of tissue.
DETAILS ON THE SAMPLE NEURON IMAGES USED IN THIS TUTORIAL
The sample images I’m using in this mini tracing tutorial were of tissue sectioned into 100um-thick slices, (mounted, and tagged) in which DNA was labelled with DAPI (405nm), and we had stained for the immediate early gene (IEG) zif268 (Alexa 647), and retrovirally GFP-labelled cells (Alexa 488). Because these fluorophores are excited by different wavelengths, the image files contain 3 different channels: one for each laser used: 405nm, 647nm, and 488nm, respectively. Tracings are made from the GFP signal.
(*) BRIEF BACKGROUND ON FLUORESCENT TECHNIQUE
Confocal microscopy is a type of fluorescent microscopy. Fluorescent technique involves the tagging of desired targets with fluorophores and the excitation of those fluorophores using light. Once excited, the fluorophores absorb some and release some energy, causing them to emit waves of a different length (emitted waves are longer than the waves used to excite them, due to energy loss). You can then see these emissions and take pictures of them using the confocal.
F.I.J.I. Is Just ImageJ!
DOWNLOAD AND INSTALL
- DOWNLOAD:
- link: http://imagej.net/Fiji/Downloads
- Download the appropriate version for your system
- INSTALL:
MAC USERS: Click on the downloaded file.You should be presented with this:
Follow the instructions: drag the FIJI logo into the applications folder. Your applications folder should open up right after, and you should be able to find the FIJI app ready to go.PC USERS: - Look for your downloaded zip file called “Fiji.app” and click on it (oftentimes internet downloads go directly into the downloads folder).
- Double-click on “ImageJ” (File Type = Application)
- Expand all contents.
- Shortly after, an expanded version of the “Fiji.app” folder.
STARTING WITH FIJI
- FOR MAC: Click on FIJI the application (which should be in your applications folder by now)
FOR PC: Look for “Image J-win64” (file type: application) in your “Fiji.app” folder. CLICK! - Open file: by dragging and dropping it into the the bottom layer of the application
*note: pictures from now on will be more Mac-friendly because I myself use a Mac. But I did try the program on a PC and they work pretty much the same way. Where I don’t mention a Mac vs PC distinction, assume everything is the same (ignoring the slight differences in aesthetics).
** also note: you can click on the images to enlarge them and view them better - Next, you will be met with this pop-up:
Hyperstack viewing is sufficient. Leave all other fields unmarked. If there are pre-existing check marks in them, just go ahead and uncheck them. (Unless you’re pro at this and know what those other things do and you totally know what you’re doing – in which case, I’m not sure why you’re reading this) - If, like mine, your images were taken with multiple channels, you’d have separate the channels first, in order to use the ImageJ plug-in we use for tracing.
To separate channels:
PC USERS: Slight aesthetic differences between macs and PCs. These “File”, “Edit” etc tabs will be on your Fiji app window, like so:
But same procedure: Image > Color > Split Channels - Get rid of the other channel windows ❌
- Simple Neurite Tracer Plugin:
TRACING WITH FIJI’S SIMPLE NEURITE TRACER
- Familiarize yourself with the file.
- You can always see the x and y plane because it’s what you have on your 2D screen. What you are moving through when you scroll is the z plane (like a digital flipbook! Or I guess, videos with less impressive frames/sec).
- If you think about the overall 3D images and keep in mind that as you scroll, you are flipping through a series of images differing in z coordinates, you can imagine that the “longer” illuminated lines (in my case, these “illuminated lines” are dendrites) in one frame must appear so because you are viewing them at the same time – meaning they are on the same image – meaning they are on the same z plane / have the same z coordinate.
On the other hand, the “shorter” illuminated points that need scrolling through in order for you to connect them just means the dendrite is running along through different z-planes.
- Locate starting point.
- Where you start depends on what you’re looking at/for. I was hoping to get dendritic information, so I was tracing dendrites. And so that’s what I’m going to be talking about. I imagine this is still useful because you can still use this as an outline and just make adjustments to suit your specific needs.
- Right, dendrites. SO, I scrolled through the z plane to find a clear picture where I can see the soma and where the dendritic branch starts. Then CLICK. See where the blue dot is?
*NOTE: Simple Neurite Tracer is like a connect-the-dots software. If you click at two points in your file, it will attempt to “search” for the path between the two dots. So try not to click too much. If you’re finding that it’s not working for you properly, first check that it isn’t searching for a non-existent path. If it is, click “Abandon search” to move on. Your Simple Neurite Tracer windows would look like these:
Left: path searchers in blue; Right: click Abandon Search to move on.
- Find the next branch point and click on it:
- Keep path segment
- If you traced a long line, scroll through to make sure that the pathway actually follows through the dendrite line you see.
- When you click two points with the tracer like this, the program scans for the shortest “bright” path between the two points. Sometimes, this means jumping in between dendrites, especially if there is a lot of overlap in your sample. So it’s good to double check before moving on.
- If all is clear, click “yes” in your plug-in window (or press “y”):
- If you realize you made a mistake accepting this segment, no worries, you can always click “cancel path” on the same plug-in window.
- Now, what if your branch point was super far away (unlikely for your first branch point, but it could happen for later branches)? If it is so far that the tracer is having problems finding a pathway, you can trace smaller segments. Create a segment for a section that you are sure of, to minimize crossing over and tracing different paths. Once you keep a segment, it stays (but it’s reversible), but you can still add on it as long as the path isn’t considered “completed.” (A completed segment does not equal a completed path). At this point, if you click at another point in your image, the program will attempt to connect that point to your existing segment.
Left: The red line represents a completed segment. Clicking on another point results in the blue line. Accepting the new segment adds it on the previously-completed segment that is not a completed path (see image on the right).
- If you traced a long line, scroll through to make sure that the pathway actually follows through the dendrite line you see.
- Complete Path (at a branch point or end of dendrite)
- If you’re happy with that segment and you’ve reached either a fork or the end of that branch, click “complete path” on the same plug-in window.
- YAY first path done!
- Building on existing paths (if last path segment was completed at a fork/branching point)
- After completing a path, this newly-born path should show up in your Paths window:As you go along making new paths, your paths list in this window will grow
- I opt to “complete” path segments upon reaching a branch point because it’s easier to then build on the existing branch as a completed pathway. Also, this makes it easier to pursue a pathway, and then go back to different points where there was branching.
- To ensure you’re connecting your different path segments right, you’d want to start the next path segment at the exact same end point you completed your last path segment (so at the exact same endpoint you labelled your branch/fork). To do this,
- click on the path segment you’d like to build on in your Path window (as pictured above). This will highlight the selected path in your image.
- Click on your image window
- Holding the “alt” key on your keyboard will limit your mouse to only moving along the selected path. So you can hold your alt key and move your cursor towards your endpoint (and maybe go a bit past, just to make sure you’re actually at the end – in the picture below I went further than needed, but that doesn’t matter, my cursor should stay on the selected path as long as I hold the alt key).
- Clicking on your mouse at this point will start a new path right where you ended a previously-traced one:
- And repeat the process!
- If your samples have neighbouring neurons and there is a lot of overlap between them, you might want to check the 3D section below.
- If you notice a lot of “short” branches, these might just be cut off because of your limited number of z stack images. You might want to check the 3D section below.
- Actually, you might just want to check the 3D section below, even if neither of the above applies to you. Just in case there are intruding dendrites that are from neurons that are not even on your z stack – just intruding ends.
- Also, you might want to check the 3D section below because I talk about not tracing disconnected lines down there. (Insert more subtle hints here). Yeah, just read it.
- Saving and Re-opening
- You can save your unfinished traces and continue at a later time.
- To open a previously saved trace,
- Open FIJI app
- Load the image file, split channels, start Simple Neurite Tracer (see “Starting with FIJI” instructions above)
- On your plug-in window: File > Load traces
- And continue tracing where you left off. Eventually you’ll get something like the image above (at the very start of the post) or like in the video below:
Et Voila!
THE GREAT DEBATE - IN 3D
3D viewer pro | 3D viewer con |
the added view makes it easier to decide on connections that may seem ambiguous or unclear on 2D view. (See 3D viewer tips below) | having the 3D window makes the program freeze and crash on my MacBook Air. I’ve heard that this is because the processing power on the Air is not the highest. Maybe if your computer has a higher processing power, this would not be a problem for you. |
Allows you to make sure that the “light” line you’re following is actually just one branch – not 2 overlapping branches
(See example video below) |
3D VIEWER TIPS
Considering these pros and cons, here’s what I like to do
- Check the neuron on 3D viewer first before committing to tracing.
- For example, you might want to check if all the branches are within your slice. From there you can decide if the neuron is still worthy of tracing.
- Sometimes, some branches are cut off because it was not included in this tissue slice. These could be minor branches or major branches that are cut off. In the picture below, you see a branch that would appear to be “short”, but looking at the red lines that mark the borders for the x, y, z planes, you could say they just might be cut off and included in a different slice.
- For example, you might want to check if all the branches are within your slice. From there you can decide if the neuron is still worthy of tracing.
- If the neurons are relatively clear (ie little overlap from neighbouring neurons), I choose to trace with no 3D view, only re-opening 3D view when I need to double check on something
- NOTE: Try to not trace in your mind. Rely on connected light paths.
- Sometimes when following the light (dendrites, not the spiritual metaphor), you come across sections where there is a bit of a disconnect where the light paths don’t quite meet, but it totally flows perfectly, you figure maybe something just got in the way during the picture-taking. NO, do NOT trace that. Let this be an example:
It totally looks like it flows. It doesn’t (look at 3D view). - Check branching – sometimes things can seem like 2 branches when it’s really just one, and vice versa. In this video below, you can see that from the 2D-viewing angle, it looks like the green line branches off the pink line. But when you take a peek at the 3D view and rotate the image, you see that there were actually two dendritic branches from different neurons that run parallel to each other, and at some point, branch away. And because the program merely tries to find the shortest lighted path between your two points, if it finds a path on a different plane, it will totally just jump ship to get from point A to point B.
- Double-check where the branching off actually happens: at the soma? Or off another branch?
- Sometimes when following the light (dendrites, not the spiritual metaphor), you come across sections where there is a bit of a disconnect where the light paths don’t quite meet, but it totally flows perfectly, you figure maybe something just got in the way during the picture-taking. NO, do NOT trace that. Let this be an example:
- If you must have 3D view, save traces often!
- And finally, before finalizing a tracing, check the 3D viewer again. You can check:
- If you missed any branch, in case it was hiding behind another
- If there was a connected branch that you previously disregarded as belonging to another neuron
- If you accidentally traced a branch that actually belongs to another neuron
- NOTE: Try to not trace in your mind. Rely on connected light paths.
ANALYZING THE TRACES
RETRIEVING DENDRITIC LENGTH DATA
- How to:
- Sum up all the lengths: at the bottom of the path length column, click on an empty box and type in, “=SUM()” then click inside the parentheses, and highlight all the boxes that contain path lengths. Press Enter.
This should give you a sum of all those path lengths. - And now you have length data! (See below for sample graph)
SHOLL ANALYSIS
- Locate path origin
- Using the same “alt+” technique mentioned above: select the path that contains the soma start from your Path window, hold the alt key, move along the path and find the very starting point of your tracing.
- Alt+Shift+A : hold these keys down all together until a pop-up Sholl window appears.
- Select the “Use all x paths in analysis” instead of the “use only the 1 selected paths in analysis” – so that your whole tracing is analyzed, instead of just the one selected original path segment.
- TIP: For a more manageable data, you can manipulate the “circle/sphere separation” number and increase the distance between your Sholl circles.
- Click “Export detailed results as CSV”
- And now you have Sholl Analysis data! (See below for sample graph)
Left: sample graph comparing dendritic lengths of two groups; Right: sample graph showing Sholl Analysis; Bottom: Traced neurons
Thank you thank you thank you! Cracking my head to find my way around ImageJ and Simple(!) Neurite Tracer, and thank God I found this at the end of a LONG day :)) Always believe Science is more amazing when shared!
Can’t agree more . Thank you very much.
Hi, thank you for all this great information. I’ve made a big mistake in my tracing of an extremely dense cell (750 paths and counting!). On one path, I’ve missed a branch and filled in about 50 other paths from it. However I realised the mistake now and am wondering if there is a way to fix this without redoing the entire 50 paths?
I could press ctrl and find where it branches off, but I believe this is incorrect for some reason though I’m not sure why. If you could explain why that’s wrong, I’d also be very grateful!
Thank you in advance,
Mariam
Hi Mariam, sorry I didn’t get to this earlier.
But you were on the right track! Pressing ctrl ensures you are only running along your selected path. Then from there, you can click where you think it branches off and start a new path. FIJI will still register this as a branch from your selected path.
Hi, your breakdown of this is so helpful! I am tracing basket cells and would like the Sholl analysis to be centered at the middle of the soma. However, none of my dendrite paths actually start at the center. Do you have any advice?
Thanks for this tutorial! I am working on tracing neurons from a transgenic mouse for my Msc project. I have the same question as Julie – I need to run sholl analysis but my dendrites dont start inside the soma, only just outside. what to do? also do you know if theres a way to rename the paths quicker (other than 1-by-1)? thanks!
Hi Bianca,
I just replied to Julie’s question with a suggestion, and I hope that helps you too.
Unfortunately, I don’t have any ideas for a quick way to rename all the paths.
I wish you the best of luck!
Hi Julie,
If you don’t have dendrites starting in the centre of the soma, I can’t imagine the need to start at the centre. The analysis puts the edge of your first/smallest Sholl circle on your chosen focus, so starting at the centre would just give you 0 intersections. If you’re worried about missing some dendrites because basket cells are multipolar, you can just choose the path that starts closest to the soma, and all your paths should be analyzed.
But maybe I am missing some crucial information, so I thought about this anyway and here is what I suggest: Because the Sholl analysis on this plugin requires you to choose a path to choose the starting point from, I figure you can create a path that connects the centre of your soma to one of your existing primary branches. This will shift some of your analyses, but there may be ways around that:
For example,
– with dendritic length, you can exclude this path in your excel sheet because you know exactly which path this is (ie, if it’s “path [0]” or “path [32]”). You also know exactly how long this path is since it is shown in the plugin window called “All Paths,” so alternatively, you can just subtract this number from your total sum.
– for the Sholl Analysis, again because you know exactly how long this new path is, you can exclude this path in your Sholl Analysis by subtracting 1 intersection for all radii that are equal to / less than the length of this path. Alternatively, when prompting the plugin to do a Sholl Analysis, you can select all the specific paths you want analyzed (all paths except the soma path), and when the Sholl dialogue box comes up, instead of choosing the “Use all (N) paths in analysis?” option, choose the “Use only the (N-1) selected paths in analysis?”
I hope this helps 🙂
Whenever I open up Simple Neurite Tracer from the Fiji software everything goes correctly, but I do not get a dialogue box to pop up to say “Tracing for:______”. Could this be a problem with the version of the software I have or possibly with my computer? Is there another way to get this box to come up after the software is already open? I don’t know how to continue forward without this box as nothing I click on seems to be having any effect. Any help or advice would be greatly appreciated!
Thank you,
Michelle
Hi Michelle,
I’m not sure why you’re having that problem. It is possible that the problem is with your version of the software or your Java. Check out the “Installation” section of the info page for the Simple Neurite Tracer here: https://imagej.net/Simple_Neurite_Tracer
I hope that helps!
Hi, thank you for your useful information. Do you know how to get the neurite length in each Sholl radius? I can only find the number of intersections.
Thanks again in advance!