Skip to content

Commit

Permalink
updated the processing file to include skull and scalp extraction
Browse files Browse the repository at this point in the history
  • Loading branch information
ajoshiusc committed Oct 15, 2021
1 parent 707216c commit 2eb6c1c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions process_script/brainsuite_process_subject.m
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ function brainsuite_process_subject(configfile,subbasename)
BrainSuitePath=config.brainsuitepath;

bst_exe=fullfile(BrainSuitePath,'bin','cortical_extraction.cmd');
skullfinder_exe=fullfile(BrainSuitePath,'bin','skullfinder.exe');

svreg_exe=fullfile(BrainSuitePath,'svreg','bin','svreg.exe');
svreg_resample_exe=fullfile(BrainSuitePath,'svreg','bin','svreg_resample.exe');

Expand All @@ -44,10 +46,16 @@ function brainsuite_process_subject(configfile,subbasename)
cmd=[svreg_resample_exe,' ',subbasename,'.nii.gz ', subbasename_r,'.nii.gz'];
unix(cmd);

% brainsuite cortical extraction
subbasename = subbasename_r;
cmd=[bst_exe,' ',subbasename];
unix(cmd);

% Skull finder
cmd=[skullfinder_exe,' -i ', subbasename,'.nii.gz -o ',subbasename,'.skull.label.nii.gz -m ',subbasename,'.mask.nii.gz --scalplabel ',subbasename,'.scalp.label.nii.gz -s ',subbasename];
unix(cmd);

% svreg
cmd=[svreg_exe,' ',subbasename,' ',USCBrainbasename];
unix(cmd);

Expand Down

0 comments on commit 2eb6c1c

Please sign in to comment.