Skip to content

Conversation

@saarah815
Copy link
Collaborator

Before submitting a pull request (PR), please read the contributing guide.

Please fill out as much of this template as you can, but if you have any problems or questions, just leave a comment and we will help out :)

Description

What is this PR

  • Bug fix
  • Addition of a new feature
  • Other

What does this PR do?

Add Dorr mouse MRI atlas to Brainglobe API.

Does this PR require an update to the documentation?

Yes.

Checklist:

  • The code has been tested locally
  • Tests have been added to cover all new functionality (unit & integration)
  • The documentation has been updated to reflect any changes
  • The code has been formatted with pre-commit

@IgorTatarnikov
Copy link
Member

IgorTatarnikov commented Oct 20, 2025

I think you're working off of an old version of main, could you pull the most recent version of main and rebase or merge it into this branch?

We're now storing atlas generation scripts in a separate directory in the root of the repository, and the imsave -> imwrite bug fix is already present along with support for multi-threading for mesh generation.

@saarah815
Copy link
Collaborator Author

Thanks @IgorTatarnikov - explains why pre-commit is working now! I've just pushed again.

Copy link
Member

@IgorTatarnikov IgorTatarnikov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've tried the packaging and it works great! I've left a few comments in terms of code style.

One outstanding question is how to handle L/R labels. BrainGlobe doesn't typically use separate annotation labels for L/R of the same structure, we use the hemisphere array to differentiate between left and right. @adamltyson @alessandrofelder do you know how we've handled atlases with separate left/right annotations in the past?

@PolarBean PolarBean linked an issue Oct 23, 2025 that may be closed by this pull request
@saarah815
Copy link
Collaborator Author

Thank you @IgorTatarnikov @adamltyson @alessandrofelder! Just pushed with the merged annotations and other formatting fixes. Used the same approach as the axolotl atlas.

Copy link
Member

@IgorTatarnikov IgorTatarnikov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for making the changes.

I've generated the atlas and it looks great!

image

However, there are duplications in the region abbreviation names. For example, both the Hippocampus and the Hypothalamus are abbreviated as H, Medulla and Midbrain as M.

image

Not sure what's best to do in this case, you could use the a similar approach as you've done now (first capital letters of all regions) with a fallback to make sure there's at least 3 letters in the acronym, or keep track of acronyms already used and add a letter if it's not unique 🤔 You could also use the Allen mouse ontology as a guide but that may require some fuzzy matching, as not all regions described in this atlas have an equivalently named structure in the Allen.

@saarah815
Copy link
Collaborator Author

Ah I see, my bad! Let me change that to avoid duplicates :)

Copy link
Member

@IgorTatarnikov IgorTatarnikov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! I think this is good to go. I'll upload the packaged atlas to GIN and update the last_versions.conf file.

The next steps are:

  • Update the table on the website, and the atlas details page.
  • Add a quick blog post about the new atlas
  • Update the README.md for this repo

We can open up issues in the appropriate repos to track the outstanding tasks.

@IgorTatarnikov
Copy link
Member

image

The atlas is now available via the brainglobe-atlasapi. I've visualised the uploaded version and all seems in order! Merging this now as everything is now tracked via issues.

@IgorTatarnikov IgorTatarnikov merged commit d060336 into brainglobe:main Oct 30, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] Dorr_2008 atlas

4 participants