CONN toolbox troubleshooting: batch setup error
4 views (last 30 days)
Show older comments
I'm following along Andy Jahns Brain Book- Chapter 12 Functional Connectivity Scripting.
My code runs well through "loading the files" scripted as.. ________________________
NSUBJECTS=6;
cwd=pwd;
FUNCTIONAL_FILE=cellstr(conn_dir('sub-*_func_sub-*_task-rest_bold.nii.gz'));
STRUCTURAL_FILE=cellstr(conn_dir('sub-*_anat_sub-*_T1w.nii'));
if rem(length(FUNCTIONAL_FILE),NSUBJECTS),error('mismatch number of functional files %n', length(FUNCTIONAL_FILE));end
if rem(length(STRUCTURAL_FILE),NSUBJECTS),error('mismatch number of anatomical files %n', length(FUNCTIONAL_FILE));end
nsessions=length(FUNCTIONAL_FILE)/NSUBJECTS;
FUNCTIONAL_FILE=reshape(FUNCTIONAL_FILE,[NSUBJECTS,nsessions]);
STRUCTURAL_FILE={STRUCTURAL_FILE{1:NSUBJECTS}};
disp([num2str(size(FUNCTIONAL_FILE,1)),' subjects']);
disp([num2str(size(FUNCTIONAL_FILE,2)),' sessions']);
TR=3.56; % Repetition time
___________________________________________________________
In my case, I have a return of 35 subjects and 1 session. Now I enter "the setup field" and get no return of my data. A .mat file should be created, and subsequent preprocessing steps should return outliers, among other output. The script runs through without error- but without any data produced. Any ideas?______________
%% CONN-SPECIFIC SECTION: RUNS PREPROCESSING/SETUP/DENOISING/ANALYSIS STEPS
%% Prepares batch structure
clear batch;
batch.filename=fullfile(cwd,'Arithmetic_Scripted.mat'); % New conn_*.mat experiment name
%% SETUP & PREPROCESSING step (using default values for most parameters, see help conn_batch to define non-default values)
% CONN Setup
% CONN Setup.preprocessing (realignment/coregistration/segmentation/normalization/smoothing)
(Preproccesing steps continue as consistent with Chapter #12 Scripting)___________________________
0 Comments
Answers (0)
See Also
Categories
Find more on Neuroimaging in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!