Skip to content

Commit

Permalink
do not copy participants.tsv to derivatives
Browse files Browse the repository at this point in the history
  • Loading branch information
Remi-Gau committed Jan 25, 2024
1 parent 5b237f4 commit bd2aa93
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions +bids/copy_to_derivative.m
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,6 @@ function copy_to_derivative(varargin)

ds_desc.write(derivatives_folder);

copy_participants_tsv(BIDS, derivatives_folder, args);

% looping over selected files
for iFile = 1:numel(data_list)
copy_file(BIDS, derivatives_folder, data_list{iFile}, ...
Expand All @@ -178,23 +176,6 @@ function copy_to_derivative(varargin)

end

function copy_participants_tsv(BIDS, derivatives_folder, args)
%
% Very "brutal" approach where we copy the whole file
%
% TODO: if only certain subjects are copied only copy those entries from the TSV
%

if ~isempty(BIDS.participants)

src = fullfile(BIDS.pth, 'participants.tsv');
target = fullfile(derivatives_folder, 'participants.tsv');

copy_tsv(src, target, args);

end
end

function copy_tsv(src, target, args)

flag = false;
Expand Down

0 comments on commit bd2aa93

Please sign in to comment.