Utilities for Data Processing

We share a series of matlab scripts that may help the researchers to process the data generated by BrainSuite and SVReg sequence.

WARNING: These scripts have not been thoroughly tested and are made available as is. Please use it at your own risk.

Please feel free to send us your feedback to me Anand Joshi: email: ajoshi@sipi.usc.edu

DOWNLOAD

Contents:

1. Smoothing functions on surfaces (main_smooth_func.m)

2. Group Differences - ROIwise and pointwise (main_grp_diff_ptwise.m, main_grp_diff_roiwise.m) 3. Inverting the volumetric map (main_inv_map.m) 4. Regenerating stats file after manual corrections to the label file (main_manual_roi_corr.m) 5. Labeling of surfaces and volumes based on manually drawn cortical ROIs (main_sulci_surf_corr.m) 1. Smoothing Functions on the surfacesThis function allows us to smooth surface valued data with respect to the geometry of the surface. There are two types of smoothing parameters, laplacian regularization and gradient regularization. The function can also perform anisotropic smoothing with respect to the cortex.function fs=smooth_surf_function(s,f,sl,sg,[anisotropy],[normalize])s: patch surface structure as is typically generated by readdfs functionf: a function specified on the surface as specified by Nx1 arraysl: is an Laplacian based regularizationsq: gradient based regularizationfs: smoothed functionanisotropy [optional]: Nx1 anisotropy terms if we want anisotropic smoothingnormalize: 1 if we want the smoothed function to integrate to the same as original unsmoothed functionf=smooth_surf_function(s,s.attributes,3.1,3.1); example: An example function is provided in main_smooth_func.m 2. Group Differences2a. ROIwise group differences:group_differences.mWe provide a sample script that performs a ROIwise group differences. We assume that the brainsuite and svreg sequences have been run on all the subjects in the two groups. Each subject is in its own subdirectory and inside its group directory. 2b. Vertexwise group differencesgroup_differences_vertexwise.mWe provide a sample script that performs a group differences, per vertex, of cortical feature such as curvature, thickness, etc. We assume that the brainsuite and svreg sequences have been run on all the subjects in the two groups. Each subject is in its own subdirectory and inside its group directory. Currently the script is set up for thickness differences. 3. Invert volumetric map from subject to atlasBy defaults, svreg computes a map from subject to atlas. Oftentimes, we need a map from atlas to subject. This can be done by using invert map computation. Here is a function for this task.inv_subject_map (subbasename, atlasbasename) example usage is shown in main_inv_map.mThe filenames and paths in this function need to be adjusted to work for your configuration.

Resources/BST_SVReg_Utilities (last edited 2013-09-26 08:25:47 by feste)