I am teaching an undergraduate course with a neuroanatomy module for which I’d like to have students learn regions of interest by navigating a 3D brain viewer with anatomical annotations highlighted on the brain. (Ideally it will be a web app to avoid having students download software just for this one course module.) The Allen Institute Neuroglancer atlases look like they will do the job quite well!
I haven’t decided yet whether to have students use the HMBA Human Brain Atlas or the DHBAv2. My main criterion is I would like students to be able to search various segment names in the segment search tool and click them to turn their highlights on and then navigate to the highlighted region to see where it lies in the brain. The two atlases have mostly similar but slightly differing sets of highlightable ROIs. But it’s some apparently un-highlightable segments that bring me to my question.
For example, on the DHBAv2 Neuroglancer, let’s say I want to have students search for V1 and make it visible. I can search for V1 in the segment search on the top right and click the eye icon to make it “visible”, but no highlight appears on the slices or the 3D glass brain.
However, if I mouse around in the area of V1 on one of the slices, I can click to highlight the superordinate regions overlapping with V1, like the occipital pole, cuneus, and lingual gyrus. When my mouse is in these areas, the selection pane in the bottom right shows that the superordinate region is selected on the “DHBAv2 parcellations” layer and that V1 is selected on the “brain-outline” layer.
Is it at all possible to get these subordinate regions to highlight, or are they bound to a layer in the viewer that is not highlight-able? I would like for students to be able to highlight these regions and then scroll to the highlighted region, as opposed to having to search around with the mouse in a particular area to find where a certain anatomical annotation shows up. (Some mousing to search builds character but I worry too much mousing is more fiddly than it’s worth!)
thanks for your assistance! I have searched around a decent amount for 3D atlas viewer web apps and this one seems the best-featured by far for my needs. This would be the cherry on top!
Thanks for your question and your interest in using the Neuroglancer atlases as a teaching tool!
Your astute observation about DHBAv2 is related to a few quirks of how the atlases were constructed. The short answer is that HMBA and DHBAv2 are currently released only as subcortical atlases.
The 3D cortical glass brain uses segmentations from the Allen Human Brain Atlas ( Allen Human Reference Atlas - 3D, 2020 (new!) ) as a visual reference, primarily because they were drawn on the same MRI reference volume. The AHBA uses two cortical taxonomies, gyral and Brodmann, which are bound to each layer. In HMBA’s HOMBA ontology, V1 is not subordinate to Occipital pole. Instead, they are parallel nomenclature systems, see interactive reference here: HOMBA ontology — Common Coordinate Framework and Multi-Species Atlas Primer (CCF-MAP).
To get to your idea of highlighting a particular region and scrolling to it, there are ways to set up a Neuroglancer instance where a subset of regions is already highlighted and students could scroll to it. Instead of searching for a region, they could pick from a predetermined set of links with different structures toggled on/off. You could still take advantage of the hierarchy within the Brodmann branch, eg. occipital cortex would be the parent structure of V1, area prostriata, and extrastriate occipital cortex.
Happy to discuss more about how you’re thinking of using the atlases, especially if you have feedback on how easy it is to use and ways to improve the experience.
Thanks for explaining the different taxonomies! I had very very briefly clicked around the HOMBA ontology tree before but with your pointer I can now see that the gyral branches of the nomenclature tree are branched off of a different ancestor than the Brodmann branches that lead to subregions like V1. If I understand correctly, the gyral branch segments are the ones that will show up as colored segments on the slices and 3D brain outline?
The current default DHBAv2 Neuroglancer will definitely fit my minimum classroom needs as is! I may not end up having time to get it running before this coming semester, but it would be great if I could set up a Neuroglancer instance with the slice/brain outline base associated with the Brodmann branch of HOMBA and a preselected set of segments available for toggling. I haven’t tried at all to set up my own custom Neuroglancer instance with custom defaults but am definitely interested in trying that if there are docs guides for it!
If I understand correctly, the gyral branch segments are the ones that will show up as colored segments on the slices and 3D brain outline?
The Brodmann branch segments are in the 3D brain outline, but the colored segments show gyral parcellations. There’s a way to overlay both as separate color channels using the JSON state (see below), but it’s not set up that way currently.
it would be great if I could set up a Neuroglancer instance with the slice/brain outline base associated with the Brodmann branch of HOMBA and a preselected set of segments available for toggling.
This is relatively straightforward to set up. Because Neuroglancer references the same data, custom instances can be set up by editing the JSON viewer state. There are a lot of possible customizations, including setting visible layers, viewing angle, section colors, preselected segments, etc. There aren’t any standalone guides for creating custom JSON states (that I know of) but there is good documentation about what each element does here: https://www.caveconnecto.me/nglui/usage/statebuilder/#layers. The end of this demo also talks about the viewer state and its properties: https://www.youtube.com/watch?v=MbJZWgx6E_g&t=1097s
Another benefit of the viewer state is that it’s static. Any changes to the state (eg. toggling a particular structure on/off) would create a new state that can be saved as a new JSON. I could imagine a way you could use this for assignments or for test questions.
Ah ok! That plus poking through the current JSON state of the Neuroglancer viewer helps me see that I can programmatically turn segment visibility off/on by toggling the ! before the segment IDs in the segments subfield of the DHBAv2_structures layer.
I actually just refreshed my Neuroglancer page to use your most updated DHBAv2 instance (2026-06-12?) and I now see that the default 3D mesh view indeed shows the Brodmann branch segments with color when the DHBAv2_structures layer is active! Yay! From this viewer instance I can totally pre-populate my desired ROIs and save the JSON states. Use case solved!
I realize some of my past confusion is that the static glance linked on the current Allen Institute atlas primer appears to be from 2026-04-10, and that version shows the gyral branch segments with colors on both the slices and the brain-outline, but the Brodmann branch segments show up only on the slices and all white. That older glance is un-toggle-able between the gyral and the Brodmann branch layers, which has been added in the updated version (thank you!!). Was there a reason to leave the primer-linked instance as the older version?
Hi again! My neuroanatomy class is today (exciting) and I just went to double check that I could open the Neuroglancer DHBAv2 atlas from scratch and copy my JSON state in, so that the students can do it later.
I noticed that the current active glance of the DHBAv2 atlas is dated 2026-09-16 and has reverted to a single ‘DHBAv2 parcellations’ segmentation layer, instead of the 2 layers for ‘DHBAv2 gyral’ and ‘DHBAv2 structures’ as on the 2026-06-12 glance.
I was finding the June glance far easier to navigate (given the discussion earlier in this thread about the two branches of segmentation ontology for gyral structures vs Brodmann structures) and am now not sure how to either:
get my desired segments open on the current glancer view.
When I do import my June 2026 compatible JSON state onto the current Neuroglancer, I notice it does create segmentation layers matching the ones on the June 2026 Neuroglancer. However, there are some differences:
Some of the matrix transform info seems to have changed on the ICBM2009 template structural MRI image, so that the re-created ICBM2009 layer does not render. I changed the ICBM2009 template layer info from my old JSON state to match the info from the Sept 2026 glance and I was able to get this layer to work again.
Some of the subcortical segmentations previously from ‘DHBAv2_structures’ seem to have incorrect coordinates now when I right-click them to locate them on the new ICBM2009 template image.
Do I need to combine the segments across the 2 past layers onto a layer matching the current ‘DHBAv2 parcellations’ layer? I imagine I can reconstruct a JSON combining the previous 2 layers’ segments into 1 but I haven’t poked around this yet
(my preferred fix) open the June 2026 glance for which my JSON state is fully compatible
Thanks for following up about this. The reason for this mismatch is that we just updated the specification for the underlying template and parcellation data assets. This seems to have broken the old (June 2026) neuroglancer instances.
To fix this, I have created a new glance that contains both the gyral and Brodmann parcellations overlaid on the updated ICBM2009b template space: NeuroGlass.
Please let me know if any of the issues remain. I’m happy to iterate on this until we reproduce the June 2026 JSON state with the new template and parcellation spec.
Ahh thank you for the prompt reply and explanation! I can confirm that the new glance you created plays neatly with my June 2026 JSON segments–all I did was take the segments list from the 2 segmentation layers of the June 2026 JSON and copy-paste them into the default segments lists for their respective layers for the 2026-09-22 glance JSON. (To be safe I went ahead and saved that updated 2026-09-22 glance JSON for later.)
Not sure if this is related or caused by something totally different, but I still notice with the segments on the 2026-09-22 glance that right-clicking on the segment name in the right sidebar list jumps me to a location that doesn’t align with the segment? Most of the ROIs will jump my cursor to a location without changing the onscreen slices, and then I can leave the cursor where it is and then find the ROI in question by scrolling through the sagittal slice until the cursor aligns with the ROI. But a couple of the ROIs might be off? (like Brodmann “poc” posterior commissure is one I’ve been testing.) Not sure if this is user error on my part but figured I’d flag it because in my memory the right-click to jump to ROI was working as expected during the summer!
I can reproduce the right-click bug that you mentioned. Thanks for flagging it. The problem seems to be especially bad in smaller and/or more ventral structures. I don’t believe it’s user error. My best guess is that there is some sort of affine offset that’s not being applied correctly with the new specification.
I’m afraid I don’t have a fix for it right now, but I’ll poke around and try to figure out a solution.
Quick update: we have changed the name for the human atlas from DHBAv2 to AHRAv2. DHBA refers to the 2D Nissl atlas whereas the Allen Human Reference Atlas (AHRA) is based on 3D MRI data. This is the successor to the AHRA from 2020, which has motivated the change.
This change will likely break your Neuroglancer instances, but fix is to simply replace dhba with ahra wherever it appears in your viewer state.
Thanks for the update! The atlas itself looks the same, so this is just renaming the layers in my viewer state yes?
I’ll be taking a deeper look at the atlas again during the winter break between semesters so that I can clean up my viewer state JSON a bit! The students were able to get used to looking around the atlas and identify regions of interest pretty quickly and I think it was a solid win I even set up a little game of “bingo” where each student had a bingo board of atlas segments and I would call out randomized sets of xyz coordinates. They had to then check whether the coords landed within their set of ROIs.
Oh, I actually do have a purely informational question: why are the atlas xyz axis directions set in the direction that they are, and how might I change them? I’m used to XYZ RAS (like MNI coordinates), and the (now known as) AHRAv2 Neuroglancer instance appears to be XYZ PIL. I figured out how to modify the viewer state JSON to get the coords in the top left corner to be listed in XYZ order, but I haven’t figured out how to modify which direction gets labeled with x vs. y vs. z. It was fine when my students were only interacting with coords within the Neuroglancer instance, but we’ve moved onto a unit where they’re now viewing NIFTI slices. All of these NIFTIs are in MNI space, and a couple students who were using the Neuroglancer instance to check their brain images against regions of interest in the AHRAv2 atlas got confused because the xyz coords of the NIFTI slices didn’t map onto the same axes as the atlas.
As I understand it, the axis names in Neuroglancer just mirror the order of the dimensions in the viewer state, and for these precomputed volumes that order follows the source array layout — there’s no anatomical orientation field like a NIfTI qform/sform, so the labels carry no L/R, A/P, S/I meaning. Editing the dimensions in the JSON only renames or reorders what’s displayed, it won’t reorient the underlying data, and permuting dimensions can scramble which plane each slice shows. For the NIfTI unit, a small conversion key (which axis and sign maps to which anatomical direction) is probably safer than editing the state.
Ahhh @robertmiller thank you for pointing that out! The students are at this point familiar enough with the anatomical directions to be able to transpose coordinates from Neuroglancer to, e.g., MNI space. Is it possible to control the order of the dimensions in the viewer using the GUI controls/JSON state? If yes, I could reorder the slices in the viewer so they go in the order of the MNI axes.