From bd2aa931a7c153677bc050da6ee3065817683625 Mon Sep 17 00:00:00 2001 From: Remi Gau Date: Thu, 25 Jan 2024 10:04:41 +0100 Subject: [PATCH] do not copy participants.tsv to derivatives --- +bids/copy_to_derivative.m | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/+bids/copy_to_derivative.m b/+bids/copy_to_derivative.m index 2d36c15d..662d41b4 100644 --- a/+bids/copy_to_derivative.m +++ b/+bids/copy_to_derivative.m @@ -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}, ... @@ -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;