From 4098cd91b9e7df714ba3c2c03d4c9a3373ea683b Mon Sep 17 00:00:00 2001 From: SW <39967319+switt4@users.noreply.github.com> Date: Mon, 7 Nov 2022 12:33:36 -0500 Subject: [PATCH] Update tar2bids Add code to remove .bval and .bvec files from fmap directory. Should only do anything if reverse phase-encoding DWI fieldmap exists in fmap directory. --- tar2bids | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tar2bids b/tar2bids index 6b5bfd4..313a354 100755 --- a/tar2bids +++ b/tar2bids @@ -440,6 +440,10 @@ python3 $execpath/etc/merge_vNav.py $output_dir #remove scans.tsv files as they may be out of date after corrections rm -f $output_dir/*/*_scans.tsv $output_dir/*/*/*_scans.tsv +#remove .bval and .bvec files from fmap +rm -f $output_dir/*/fmap/*.bval $output_dir/*/*/fmap/*.bval +rm -f $output_dir/*/fmap/*.bvec $output_dir/*/*/fmap/*.bvec + if [ "$do_deface" = "1" ] then