help > error importing bids format .tsv (regexprep)
Showing 1-2 of 2 posts
Display:
Results per page:
Sep 22, 2021  04:09 AM | Erik Jahner
error importing bids format .tsv (regexprep)
Could someone advise on how to address this error?
I am trying to import .tsv files for each subject. These .tsv files Arte in bids format under each subject file. I have attached an example file below incase I have formatted something wrong. There are extra columns but that should not matter. Also it should be noted that my resting task file is empty; I don't know if this is the issue.

ERROR DESCRIPTION:

Error using regexprep
The 'STRING' input must be either a char row vector, a cell array of char row vectors, or a string array.
Error in conn_importbids (line 189)
fname=conn_prepend('',regexprep(tname,'_bold\.nii(\.gz)?$','.nii'),'_events.tsv');
Error in conn_importcondition (line 176)
[ok,err,wrn]=conn_importbids('all','type','conditions','subjects',options.subjects,'sessions',options.sessions);
Error in conn (line 3538)
conn_importcondition;
Sep 22, 2021  10:09 AM | Alfonso Nieto-Castanon - Boston University
RE: error importing bids format .tsv (regexprep)
Hi Erik,

I believe this error indicates that you may have not yet entered the functional data (at least for one subject/session) as the import procedure is looking for the .tsv files associated with each individual functional data file

Hope this helps
Alfonso
Originally posted by Erik Jahner:
Could someone advise on how to address this error?
I am trying to import .tsv files for each subject. These .tsv files Arte in bids format under each subject file. I have attached an example file below incase I have formatted something wrong. There are extra columns but that should not matter. Also it should be noted that my resting task file is empty; I don't know if this is the issue.

ERROR DESCRIPTION:

Error using regexprep
The 'STRING' input must be either a char row vector, a cell array of char row vectors, or a string array.
Error in conn_importbids (line 189)
fname=conn_prepend('',regexprep(tname,'_bold\.nii(\.gz)?$','.nii'),'_events.tsv');
Error in conn_importcondition (line 176)
[ok,err,wrn]=conn_importbids('all','type','conditions','subjects',options.subjects,'sessions',options.sessions);
Error in conn (line 3538)
conn_importcondition;