Skip to content

Commit

Permalink
Merge branch 'master' into jn/12-improve-double-quoting
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuacwnewton committed Aug 3, 2023
2 parents b3bf0ef + e92fb1e commit 482cfd5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/run_batch_script.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,19 @@ jobs:
- name: Output full log for sanity checking
run: |
cd "${{ github.event.repository.name }}/multi_subject/output/log"
cat process_data_sub-01.log
for logfile in process_data_sub-01.log err.process_data_sub-01.log; do
if [[ -e "${logfile}" ]]; then
echo "=== Contents of ${logfile} ==="
cat "${logfile}"
else
echo "=== No file ${logfile} ==="
fi
done
- name: Check that script executed without error
run: |
cd "${{ github.event.repository.name }}/multi_subject/output/log"
[ "$(compgen -G "process_data_sub-0*.log")" ] # Log files should exist
[ ! "$(compgen -G "err.process_data_sub-0*.log")" ] # Error files should NOT exist
grep -iF "warning" process_data_sub-01.log
grep -iF "error" process_data_sub-01.log
grep -iF "error" process_data_sub-01.log
7 changes: 5 additions & 2 deletions multi_subject/process_data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,12 @@ file_mt1="${file_mt1}"_crop
# Tips: here we only use rigid transformation because both images have very
# similar sequence parameters. We don't want to use SyN/BSplineSyN to avoid
# introducing spurious deformations.
sct_register_multimodal -i "${file_mt0}".nii.gz -d "${file_mt1}".nii.gz \
sct_register_multimodal -i "${file_mt0}".nii.gz \
-d "${file_mt1}".nii.gz \
-dseg "${file_mt1}"_seg.nii.gz \
-param step=1,type=im,algo=rigid,slicewise=1,metric=CC \
-x spline -qc "${PATH_QC}"
-x spline \
-qc "${PATH_QC}"
# Register template->mt1
# Tips: here we only use the segmentations due to poor SC/CSF contrast at the bottom slice.
# Tips: First step: slicereg based on images, with large smoothing to capture
Expand Down

0 comments on commit 482cfd5

Please sign in to comment.