Skip to content

Commit

Permalink
Remove .bval and .bvec files from anat
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
kaitj committed Mar 1, 2024
1 parent 9310e5c commit 1144045
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tar2bids
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1144045

Please sign in to comment.