Skip to content

Commit 667abab

Browse files
committed
add keep-dtype
1 parent 81e7ad5 commit 667abab

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

recon_surf/long_prepare_template.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ for ((i=0;i<${#tpids[@]};++i)); do
335335
mkdir -p "$mdir"
336336
# Import (copy) raw inputs (convert to extension format)
337337
t1input=$mdir/cross_input${extension}
338-
cmd="$python -m neuroreg.cli.vol2vol --in ${t1s[i]} --out $t1input"
338+
cmd="$python -m neuroreg.cli.vol2vol --in ${t1s[i]} --out $t1input --keep-dtype"
339339
RunIt "$cmd" "$LF"
340340

341341
# conform !!!!!!! should we conform to some common value, determined from all time points?? !!!!!!
@@ -427,12 +427,14 @@ then
427427
cmd="$python -m neuroreg.cli.vol2vol --in ${normInVols[0]} --transform ${ltaXforms[0]}"
428428
cmd="$cmd --ref ${normInVols[0]} --interp cubic"
429429
cmd="$cmd --out ${SUBJECTS_DIR}/$tid/mri/base_brainmask${extension}"
430+
cmd="$cmd --keep-dtype"
430431
RunIt "$cmd" "$LF"
431432

432433
# 3. create the base orig volume the same way
433434
cmd="$python -m neuroreg.cli.vol2vol --in ${subjInVols[0]} --transform ${ltaXforms[0]}"
434435
cmd="$cmd --ref ${subjInVols[0]} --interp cubic"
435436
cmd="$cmd --out ${SUBJECTS_DIR}/$tid/mri/orig.mgz"
437+
cmd="$cmd --keep-dtype"
436438
RunIt "$cmd" "$LF"
437439

438440
else #more than 1 time point:
@@ -448,6 +450,7 @@ else #more than 1 time point:
448450
cmd="$cmd --template ${SUBJECTS_DIR}/$tid/mri/base_brainmask${extension}"
449451
cmd="$cmd --average ${robust_template_avg_arg}"
450452
cmd="$cmd --sat 4.685 $device_opt"
453+
cmd="$cmd --keep-dtype"
451454
RunIt "$cmd" "$LF"
452455

453456
# create the 'mean/median' input (orig) volume by reusing the transforms above (no
@@ -459,6 +462,7 @@ else #more than 1 time point:
459462
cmd="$cmd --noit"
460463
t1=${SUBJECTS_DIR}/$tid/mri/orig.mgz
461464
cmd="$cmd --template $t1 $device_opt"
465+
cmd="$cmd --keep-dtype"
462466
RunIt "$cmd" "$LF"
463467

464468
fi # more than one time point
@@ -482,6 +486,7 @@ do
482486
cmd="$python -m neuroreg.cli.vol2vol --in $mdir/cross_input${extension}"
483487
cmd="$cmd --transform ${ltaXforms[$i]} --ref ${SUBJECTS_DIR}/$tid/mri/base_brainmask${extension}"
484488
cmd="$cmd --interp $interpol --out $mdir/long_conform${extension}"
489+
cmd="$cmd --keep-dtype"
485490
RunIt "$cmd" "$LF"
486491
done
487492

0 commit comments

Comments
 (0)