Optimizing the surface template
Optimizing the surface template#
This section contains the code that was used to optimize the surface template, which is described in the Methods section of our manuscript under “Optimize the template using anatomy-based sampling.”
Warning
The code in this section is provided for reproducibility purposes only. Do not create a new template for your own research unless you have strong reasons to do so. This will make it unnecessarily difficult to compare your results with those of other studies and/or perform meta-analyses with your results.
For most of the users, we recommend using the standard onavg
template as provided (see Use the onavg template of this documentation).
Note
Part of the code in these scripts is based on a legacy surface
module, which is now deprecated.
These functions have been integreated into the neuroboros
package as the surface module.
The three scripts correspond to the three steps of the optimization process: