I have been trying to figure out the code on how to script my code and I could not find much information on this. I have a scout_Desikan-Killiany_modified.mat file which is a scout file I created from the existing Desikan-Killiany atlas for the surface model. Using the create atlas, I copied the atlas and merged certain scouts as per the need of my experiment and obtained this modified scout file.
To extract my source time series, I need to import this scout file back into Brainstorm so that I could use it for all my cohorts. I am using a scripting procedure and I was wondering how I could get this scout file back into Brainstorm and then extract the time series for the newly imported scout file.
(Keep in mind i can do this manually using the GUI by just selecting load atlas button on the scout tab)
So far I've come across import_label() but I have much difficulty in implementing an import section for a third-party scout file and then extracting the source time series for the same.
If someone could direct me to an idea of how to do this, it would be a great help for me.
Keep in mind that this modified Desikan-Killiany atlas is only valid for the save surface that contain the original Desikan-Killiany that was merged.
The process (copying, modifying the DK atlas and adding the modified-DK atlas) depends on the anatomy that is used for each of the Subjects in the Protocol.
For Subjects using the Default Anatomy: the process only needs to be done for the Default-Anatomy Cortex.
For Subjects not using the Default Anatomy, the process needs to be done for each of the Subjects, as their DK atlases are not the same vertex by vertex.
The simplest way would do to modify directly the Atlases for the Subject's Cortex:
Thanks for this version of the pipeline. I appreciate it!
I forgot to mention my subjects will be going to use the default anatomy itself, it being ICBM152. The process you describe seems cumbersome for each subject. My question here is, is it possible to upload the scout file that I've created for the merged regions? The file is a scout_Desikan-Killiany.mat.
I was wondering since I am able to click on the Load Atlas button, I should be able to script it out using a function. If you could help me to the function that uploads the scout file, it'd be a great help.