Brain Atlas File Naming Convention

The 3D Brain Atlas tool finds atlases by scanning the atlas folder and matching filenames against a fixed naming pattern — it does not read file contents to figure out what an atlas is. If a file doesn't match the pattern exactly, the tool treats it as if it doesn't exist.

This mostly matters if you're manually copying atlas files into the atlas folder rather than creating them through Add a Custom Brain Atlas. The wizard always generates correctly-named files automatically; this page is for when you're placing files there yourself.

The four file types

Every atlas is made up of up to four files, all sharing the same <Prefix><Animal> stem:

FileNaming patternExample
Region map<Prefix><Animal>Atlas.rmhaLabMouseAtlas.rmha
Anatomical reference (header)<Prefix><Animal><Modality>.mhdLabMouseCT.mhd
Anatomical reference (data)<Prefix><Animal><Modality>.rawLabMouseCT.raw
Region key<Prefix><Animal>Atlas-Key-<KeyType>.csvLabMouseAtlas-Key-AllRegions.csv

<Prefix> — any combination of letters, digits, underscore (_), period (.), and hyphen (-). Can be blank.

<Animal> — must exactly match one of the species names the tool recognizes (matching is not case-sensitive, but the word itself must be right — no extra spaces, abbreviations, or plurals).

<Modality> — the modality abbreviation as shown in the tool's Modality dropdown (e.g. CT, MR).

<KeyType> — a label for the region set in that key file, e.g. AllRegions, AllRegionsLeft, AllRegionsRight, AllRegionsLeftRight, or a custom key name. An atlas can have more than one key file.

The one detail people get backwards

This is the most common manual-naming mistake:

.rmha and key .csv files must contain the word "Atlas". Anatomical .mhd/.raw files must not contain it.
FileCorrectWrong
Region mapLabMouseAtlas.rmhaLabMouse.rmha
AnatomicalLabMouseCT.mhdLabMouseAtlasCT.mhd
KeyLabMouseAtlas-Key-AllRegions.csvLabMouse-Key-AllRegions.csv

Naming an anatomical file with "Atlas" in it (or a region map/key file without it) doesn't cause an error — it just makes that file invisible to the tool. The atlas may still appear in the list, but fail (or silently be missing its reference image or regions) when you try to use it.

No version tags or other extra text

The naming pattern is exact — nothing extra is allowed between the animal name and the rest of the filename. In particular:

If you have older or third-party atlas files that don't fit this pattern, don't try to make them work by editing internals or hoping the tool is lenient — just copy the .rmha and key .csv files under a correctly-named copy. Leave anatomical .mhd/.raw files alone if they already match the pattern (they usually do, since they never had the extra text to begin with).

The tool checks for you

Every time the Brain Atlas tool opens, it scans the atlas folder and reports any problems it finds, before you ever get to pick an atlas from the list:

These show up both in the tool's log and, if anything was found, as a one-time popup summary. If you've just added files manually and see this warning, it's telling you exactly which file(s) don't fit the convention — that's the first place to look.

Quick checklist before adding files manually

When in doubt, use Add a Custom Brain Atlas to build the atlas instead of placing files by hand — it produces filenames that are guaranteed to match.