When trying to export a dataset with specified participant_ids without any additional column in pInfo and createids='off', bids_export unexpectedly overrides with new anonymized ids in the subject folders and .set filenames but not participants.tsv. For example with pInfo = {'participant_id'; 'control01'; 'control02'}.
When trying to export a dataset with specified participant_ids without any additional column in pInfo and
createids='off'
,bids_export
unexpectedly overrides with new anonymized ids in the subject folders and.set
filenames but notparticipants.tsv
. For example withpInfo = {'participant_id'; 'control01'; 'control02'}
.Workaround: add an extra column to pInfo.
Cause: The
participant_id
column is removed from pInfo here: https://github.com/sccn/bids-matlab-tools/blob/c64ed18628f671b6ad2ca91bb290ebe4b9a849f3/bids_export.m#L436 If there are no other columns in pInfo, then this code https://github.com/sccn/bids-matlab-tools/blob/c64ed18628f671b6ad2ca91bb290ebe4b9a849f3/bids_export.m#L601 incorrectly concludes that participant_ids were not specified.