Skip to content

Commit

Permalink
Update tar2bids
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
switt4 authored Nov 7, 2022
1 parent df54b93 commit 4098cd9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tar2bids
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4098cd9

Please sign in to comment.