From 114404516a7f95fbb9c08f58e303c19e24033d9e Mon Sep 17 00:00:00 2001 From: Jason Kai Date: Fri, 1 Mar 2024 12:27:11 -0500 Subject: [PATCH] Remove .bval and .bvec files from anat New CFMM MP2RAGE sequence contains (0019, 100c) [B_value] in the DICOM header, causing dcm2niix to interpret these images as diffusion and generating a .bval and .bvec file. --- tar2bids | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tar2bids b/tar2bids index a671c6c..df6cdcf 100755 --- a/tar2bids +++ b/tar2bids @@ -465,6 +465,9 @@ rm -f $output_dir/*/*_scans.tsv $output_dir/*/*/*_scans.tsv rm -f $output_dir/*/fmap/*.bval $output_dir/*/*/fmap/*.bval rm -f $output_dir/*/fmap/*.bvec $output_dir/*/*/fmap/*.bvec +# remove .bval and .bvec files from anat (dcm2niix picking up header suggesting MP2RAGE is diffusion) +rm -f $output_dir/*/anat/*.bval $output_dir/*/*/anat/*.bval +rm -f $output_dir/*/anat/*.bvec $output_dir/*/*/anat/*.bvec if [ "$do_deface" = "1" ] then