Dear Dr Alfonso Nieto-Castanon,
I would like to carry out a gPPI analysis with the CONN toolbox. I am facing several issues:
[u]1. Import conditions informations from a text file[/u]
To set Setup.conditions I tried to import the information about the conditions from a .csv file.
I had followed the structure given as an example in help conn_import condition (I am attaching here an extract from my file) relating to "FILE FORMAT 1 (CONN single-file condition format; *.csv or *.txt extensions)". However, during the import, an error "multiple rows for condition human subject 1 session 1" seems to indicate that there cannot be several onsets and durations for the same condition.
Nevertheless, in my event design paradigm, within a run several trials belonging to different conditions follow one another, in random order for each participant.
Could you please help me to understand how to model this in an automated way with a .csv file import in CONN toolbox?
[u]2. Batch to select functional and structural files[/u]
When I executed the batch to select the structural files and functional files (with the path to my files), the matlab terminal indicates "Unzipping files..." but nothing is written in the folder and the script remains blocked at this stage (even though I have write rights in the folders). Unzipping .gz files manually does not solve the problem.
You can find just below the corresponding block of code:
% FIND functional/structural files
% note: this will look for all data in these folders, irrespestive of the specific download subsets entered as command-line arguments
NSUBJECTS=3;
cwd=pwd;
%FUNCTIONAL_FILE=cellstr(conn_dir('SSU_archeoneuro_*/TRACE*_BOLD/wvol0000_warp_merged_blur.nii'));
%STRUCTURAL_FILE=cellstr(conn_dir('archeoneuro_*_wmcropped_T1.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,[nsessions, NSUBJECTS]);
%STRUCTURAL_FILE={STRUCTURAL_FILE{1:NSUBJECTS}};
%disp([num2str(size(FUNCTIONAL_FILE,1)),' sessions']);
%disp([num2str(size(FUNCTIONAL_FILE,2)),' subjects']);
[u]3. Configure the denoising step in the CONN Toolbox[/u]
Could you please tell me where are stored the files used in the Denoising step, which contain the non interest regressors (nuisance table): CSF, white-matter, motion regressors.
Are these files replaceable and modifiable?
Many thanks in advance.
Best Regards,
Mathilde Salagnon
I would like to carry out a gPPI analysis with the CONN toolbox. I am facing several issues:
[u]1. Import conditions informations from a text file[/u]
To set Setup.conditions I tried to import the information about the conditions from a .csv file.
I had followed the structure given as an example in help conn_import condition (I am attaching here an extract from my file) relating to "FILE FORMAT 1 (CONN single-file condition format; *.csv or *.txt extensions)". However, during the import, an error "multiple rows for condition human subject 1 session 1" seems to indicate that there cannot be several onsets and durations for the same condition.
Nevertheless, in my event design paradigm, within a run several trials belonging to different conditions follow one another, in random order for each participant.
Could you please help me to understand how to model this in an automated way with a .csv file import in CONN toolbox?
[u]2. Batch to select functional and structural files[/u]
When I executed the batch to select the structural files and functional files (with the path to my files), the matlab terminal indicates "Unzipping files..." but nothing is written in the folder and the script remains blocked at this stage (even though I have write rights in the folders). Unzipping .gz files manually does not solve the problem.
You can find just below the corresponding block of code:
% FIND functional/structural files
% note: this will look for all data in these folders, irrespestive of the specific download subsets entered as command-line arguments
NSUBJECTS=3;
cwd=pwd;
%FUNCTIONAL_FILE=cellstr(conn_dir('SSU_archeoneuro_*/TRACE*_BOLD/wvol0000_warp_merged_blur.nii'));
%STRUCTURAL_FILE=cellstr(conn_dir('archeoneuro_*_wmcropped_T1.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,[nsessions, NSUBJECTS]);
%STRUCTURAL_FILE={STRUCTURAL_FILE{1:NSUBJECTS}};
%disp([num2str(size(FUNCTIONAL_FILE,1)),' sessions']);
%disp([num2str(size(FUNCTIONAL_FILE,2)),' subjects']);
[u]3. Configure the denoising step in the CONN Toolbox[/u]
Could you please tell me where are stored the files used in the Denoising step, which contain the non interest regressors (nuisance table): CSF, white-matter, motion regressors.
Are these files replaceable and modifiable?
Many thanks in advance.
Best Regards,
Mathilde Salagnon