@@ -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
438440else # 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
464468fi # more than one time point
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 "
486491done
487492
0 commit comments