File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 5
5
# use retroicor on pre-slice/motion functional input
6
6
#
7
7
8
- REG_PHYSIO_GLOBALS=(prefix funcFile use_physio physio_resp physio_card physio_func_info)
8
+ REG_PHYSIO_GLOBALS=(prefix funcFile use_physio physio_resp physio_card physio_func_info tr )
9
9
reg_physio () {
10
10
# skip if we have nothing to do
11
11
[ -z " $use_physio " ] && return 0
12
12
[ -r .reg_physio_complete ] && return 0
13
13
14
+ # manually set tr. supported in siemphysdat as of 2022-10
15
+ [ -n " ${tr:- } " ] &&
16
+ args=" --changetr $tr -t all -n $( 3dinfo -nt " $prefix$funcFile .nii.gz" ) " ||
17
+ args=" -t all"
18
+
14
19
# write what we use to a file (and do nothing if it fails)
15
20
print_vars_in REG_PHYSIO_GLOBALS || :
16
21
@@ -27,7 +32,7 @@ reg_physio() {
27
32
[ -d xx_retroicor.results ] && rm -r xx_retroicor.results
28
33
29
34
# extract time -- this is likely to fail. physio is often bad
30
- rel " siemphysdat $physio_resp $physio_card $physio_func_info -t all -o $spfix "
35
+ rel " siemphysdat $physio_resp $physio_card $physio_func_info $args -o $spfix "
31
36
32
37
# file with our prefix modified in the last 3 minutes
33
38
local retrots=$( find -maxdepth 1 -type f -iname " $spfix *slibase.1D" -mmin -3 -print -quit)
You can’t perform that action at this time.
0 commit comments