CONN toolbox troubleshooting: batch setup error

조회 수: 4 (최근 30일)
Emily Haight
Emily Haight 2021년 2월 10일
편집: Emily Haight 2021년 2월 10일
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개)

카테고리

Help CenterFile Exchange에서 Neuroimaging에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by