I have a .nii file with an atlas that has 214 ROIs, each one coded by intensity level. When I open it with the MATLAB function niftiread I see that it has 215 unique values (0 to 214).
![imagen](https://neuroimage.usc.edu/forums/uploads/default/original/2X/2/2b4aaeeccd032ac04c38ef49f874c0d57f88e8a6.png)
I was able to load it into my cortex file after segmentation of the subject's MRI, and it looks like this:
However, when I downsample to this atlas after source reconstruction, I get 216 time series. How can this be the case? (The example corresponds to one trial with 2500 temporal samples).
![imagen](https://neuroimage.usc.edu/forums/uploads/default/original/2X/6/692812b4d3e7e8d1e181d2b9551e0617fdc36b01.png)
Thanks in advance.
The step you need to check is the import of your parcellation.
Check the Atlas field in the cortex surface:
https://neuroimage.usc.edu/brainstorm/Tutorials/Scouts#On_the_hard_drive
Note that we don't recommend using this process "Downsample to atlas".
I added a new warning in this process:
![image](https://neuroimage.usc.edu/forums/uploads/default/original/2X/f/fbdc23232d89b760041562e0a3e6c4ef8e634ce5.png)
When I'm loading the atlas it says it's creating 214 scouts:
![imagen](https://neuroimage.usc.edu/forums/uploads/default/original/2X/c/cef8c3d4e9b74db99886943187302db7959b0587.png)
But in the end it creates 216, I don't really understand? The atlas field in the cortex surface has 216 regions.
Note that using a volume atlas from a .nii volume to create surface atlases is not an accurate procedure.
If you need to use an volume anatomical atlas with volume ROIs, it could be a better option to use volume source models and volume scouts.
https://neuroimage.usc.edu/brainstorm/Tutorials/TutVolSource
If you want to keep working in the same direction, please share the example file you are trying to load here: upload it (zipped) somewhere and post the download link here.
For reproducing the behavior you describe, I would also need:
- the cortex surface on which you are trying to load the atlas an (the .mat file from the Brainstorm database)
- the reference MRI of the subject (the first one in the anatomy folder)
Please zip these two files together with the .nii atlas and share it with us.