The following are instructions to use MSM transformations to resample labels and fields between BigBrain from/to the fs_LR template.

fs_LR TO BIGBRAIN

Resample labels from fs_LR surface to BIGBRAIN surface using spherical maps from MSM. This is useful to transfer labels defining a surface parcellation on fs_LR to an individual brain like BIGBRAIN.

MSM spheres needed for resampling

$BBhome = BigBrainRelease.2015/BigBrainWarp_Support (defines your base directory)
$inmesh = $BBhome/BigBrain_to_fsLR/spheres/lh.BigBrain.rot.fsLR.sphere.surf.gii
$refmesh = $BBhome/BigBrain_to_fsLR/spheres/lh.fsLR.sphere.surf.gii
$outmeshMSM = $BBhome/BigBrain_to_fsLR/spheres/lh.sphere_fsLR_rsled_like_BigBrain.sphere.reg.surf.gii
$outmeshMSM_inverted = $BBhome/BigBrain_to_fsLR/spheres/lh.sphere_BigBrain_rsled_like_fsLR.sphere.reg.surf.gii

Invert $outmeshMSM

wb_command -surface-sphere-project-unproject $refmesh $outmeshMSM $inmesh $outmeshMSM_inverted

Input: FS annot (example: lh.HCP-MMP-1.0)

cd $BBhome/BigBrain_to_fsLR/inmap_fsLR_outmap_BigBrain/input
mris_convert --annot lh.HCP-MMP-1.0.annot $BBhome/white_surfaces/lh.fsLR.white.surf.gii ./lh.HCP-MMP-1.0.label.gii

Transform labels from fs_LR to BigBrain surface

cd $BBhome/BigBrain_to_fsLR/inmap_fsLR_outmap_BigBrain
wb_command -label-resample input/lh.HCP-MMP-1.0.label.gii $outmeshMSM_inverted $inmesh BARYCENTRIC output/lh.HCP-MMP-1.0.label.gii
wb_command -set-structure output/lh.HCP-MMP-1.0.label.gii CORTEX_LEFT

Convert output to .txt

cd $BBhome/BigBrain_to_fsLR/inmap_fsLR_outmap_BigBrain/output
wb_command -cifti-create-label -left-label lh.HCP-MMP-1.0.label.gii lh.HCP-MMP-1.0.dlabel.nii
wb_command -cifti-convert -to-text lh.HCP-MMP-1.0.dlabel.nii lh.HCP-MMP-1.0.label.txt

Convert output to FS .annot

cd $BBhome/BigBrain_to_fsLR/inmap_fsLR_outmap_BigBrain/output
mris_convert --annot lh.HCP-MMP-1.0.label.gii $BBhome/white_surfaces/lh.BigBrain.white.surf.gii ./lh.HCP-MMP-1.0.annot

Visualize

cd $BBhome/BigBrain_to_fsLR/inmap_fsLR_outmap_BigBrain/output
freeview -f $BBhome/white_surfaces/lh.BigBrain.white.surf.gii:annot=lh.HCP-MMP-1.0.annot
brain-view $BBhome/white_surfaces/ih.BigBrain.white.surf.obj lh.HCP-MMP-1.0.label.txt

BIGBRAIN TO fs_LR

Resample a surface field defined on BIGBRAIN surface to the fs_LR surface using spherical maps from MSM. This is useful to resample surface fields on an individual brain like BIGBRAIN to a common template like fs_LR for group comparisons.

Transform metric map from BigBrain to fs_LR (example: lh.curv)

cd $BBhome/BigBrain_to_fsLR/inmap_BigBrain_outmap_fsLR
mris_convert -c input/lh.BigBrain.curv $BBhome/white_surfaces/lh.BigBrain.white.surf.gii input/lh.BigBrain.curv.shape.gii
wb_command -metric-resample input/lh.BigBrain.curv.shape.gii $outmeshMSM $refmesh BARYCENTRIC output/lh.BigBrain.curv_rsled_to_fsLR.shape.gii
wb_command -set-structure output/lh.BigBrain.curv_rsled_to_fsLR.shape.gii CORTEX_LEFT