Commit 1fc74dfd authored by Brent Womble's avatar Brent Womble
Browse files

Convert to MATLAB function

parent c097daa0
matlabbatch{1}.spm.spatial.preproc.channel.vols = {'/data/scratch/kecannon/brainhack2018/raw_data/MPRAGE GRAPPA2/NIFTI/MPRAGE_GRAPPA2.nii'};
%%Individual job for a Cheaha node
%%script needs to be in ~/matlab/
function cheaha_vessels_segment(sub_dir, sub)
%Segment in SPM12 using modified TPMs, input should be a directory and a subject ID
%Add SPM12 and Nifti tools to the path
addpath('/share/apps/vbc/matlab/toolbox/spm12');
sub_folder = [sub_dir,'/',sub,'/'];
matlabbatch{1}.spm.spatial.preproc.channel.vols = {[sub_folder,'r',sub,'_T1.nii,1']};
matlabbatch{1}.spm.spatial.preproc.channel.biasreg = 0.001;
matlabbatch{1}.spm.spatial.preproc.channel.biasfwhm = 60;
matlabbatch{1}.spm.spatial.preproc.channel.write = [0 0];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment