atlas_to_surf {VertexWiseR}R Documentation

Atlas to surface

Description

Maps average parcellation surface values (e.g. produced with the surf_to_atlas() function) to the fsaverage5 or fsaverage6 space

Usage

atlas_to_surf(parcel_data, template)

Arguments

parcel_data

A matrix or vector object containing average surface measures for each region of interest, see the surf_to_atlas() output format.

template

A string object stating the surface space on which to map the data ('fsaverage5' or 'fsaverage6').

Details

The function currently works with the Desikan-Killiany-70, Schaefer-100, Schaefer-200, Schaefer-400, Glasser-360, or Destrieux-148 atlases. ROI to vertex mapping data for 1 to 4 were obtained from the 'ENIGMA toolbox' ; and data for 5 from 'Nilearn' 's nilearn.datasets.fetch_atlas_surf_destrieux . atlas_to_surf() will automatically detect the atlas based on the number of columns.

Value

A matrix or vector object containing vertex-wise surface data mapped in fsaverage5 or fsaverage6 space

See Also

surf_to_atlas

Examples

parcel_data = t(runif(100,min=0, max=100));
surf_data = atlas_to_surf(parcel_data, template='fsaverage5');

[Package VertexWiseR version 1.0.0 Index]