Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Commit

Permalink
Merge branch 'master' of github.com:PennBBL/xcpEngine
Browse files Browse the repository at this point in the history
  • Loading branch information
mattcieslak committed Jan 17, 2019
2 parents c89ef01 + 98941e6 commit c448ee3
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ RUN sed -i '$iexport PATH=$PATH:$XCPEDIR' $ND_ENTRYPOINT

ADD . /xcpEngine


RUN bash -c \
'cd /xcpEngine \
&& wget -nv https://upenn.box.com/shared/static/i30llenk6s37kv8nkqxgulwylaxp928g.xz \
Expand Down
35 changes: 17 additions & 18 deletions modules/prestats/prestats.mod
Original file line number Diff line number Diff line change
Expand Up @@ -234,18 +234,18 @@ while (( ${#rem} > 0 ))

output referenceVolume ${out}/prestats/${prefix}_referenceVolume.nii.gz

rm -rf /tmp/imgmask.nii.gz

exec_afni 3dresample -orient ${template_orientation} \
-inset ${mask1} -prefix /tmp/imgmask.nii.gz

rm -rf /tmp/structmask.nii.gz
-inset ${mask1} -prefix ${prefix}_imgmask.nii.gz

exec_afni 3dresample -master ${out}/prestats/${prefix}_referenceVolume.nii.gz \
-inset ${structmask} -prefix /tmp/structmask.nii.gz
-inset ${structmask} -prefix ${prefix}_structmask.nii.gz

exec_fsl fslmaths /tmp/imgmask.nii.gz -mul /tmp/structmask.nii.gz \
exec_fsl fslmaths ${prefix}_imgmask.nii.gz -mul ${prefix}_structmask.nii.gz \
${out}/prestats/${prefix}_mask.nii.gz
output mask ${out}/prestats/${prefix}_mask.nii.gz

rm ${prefix}_structmask.nii.gz
rm ${prefix}_imgmask.nii.gz

exec_afni 3dresample -master ${mask[cxt]} \
-inset ${segmentation[sub]} \
Expand Down Expand Up @@ -345,16 +345,15 @@ while (( ${#rem} > 0 ))

subroutine @ generate mask and referenceVolumeBrain


rm -rf /tmp/structmask.nii.gz

exec_afni 3dresample -master ${referenceVolume[cxt]} \
-inset ${structmask} -prefix /tmp/structmask.nii.gz
-inset ${structmask} -prefix ${prefix}_structmask.nii.gz

exec_fsl fslmaths ${mask1} -mul /tmp/structmask.nii.gz \
exec_fsl fslmaths ${mask1} -mul ${prefix}_structmask.nii.gz \
${out}/prestats/${prefix}_mask.nii.gz

output mask ${out}/prestats/${prefix}_mask.nii.gz

rm ${prefix}_structmask.nii.gz

exec_fsl fslmaths ${mask[cxt]} -mul ${referenceVolume[cxt]} \
${out}/prestats/${prefix}_referenceVolumeBrain.nii.gz
Expand Down Expand Up @@ -407,17 +406,17 @@ while (( ${#rem} > 0 ))
-prefix ${out}/prestats/${prefix}_referenceVolume.nii.gz
output referenceVolume ${out}/prestats/${prefix}_referenceVolume.nii.gz

rm -rf /tmp/imgmask.nii.gz

exec_afni 3dresample -orient ${template_orientation} \
-inset ${mask1} -prefix /tmp/imgmask.nii.gz
-inset ${mask1} -prefix ${prefix}_imgmask.nii.gz

rm -rf /tmp/structmask.nii.gz

exec_afni 3dresample -master ${referenceVolume[cxt]} \
-inset ${structmask} -prefix /tmp/structmask.nii.gz
-inset ${structmask} -prefix ${prefix}_structmask.nii.gz

exec_fsl fslmaths /tmp/imgmask.nii.gz -mul /tmp/structmask.nii.gz ${out}/prestats/${prefix}_mask.nii.gz
exec_fsl fslmaths ${prefix}_imgmask.nii.gz -mul ${prefix}_structmask.nii.gz ${out}/prestats/${prefix}_mask.nii.gz
output mask ${out}/prestats/${prefix}_mask.nii.gz

rm ${prefix}_structmask.nii.gz ${prefix}_imgmask.nii.gz

exec_afni 3dresample -master ${referenceVolume[cxt]} -inset ${segmentation1} \
-prefix ${out}/prestats/${prefix}_segmentation.nii.gz
Expand Down

0 comments on commit c448ee3

Please sign in to comment.