Skip to content

Commit

Permalink
test alternate nft-nifti build
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexVCaron committed Aug 26, 2024
1 parent 111dc6a commit 7bfb3ad
Show file tree
Hide file tree
Showing 5 changed files with 123 additions and 651 deletions.
2 changes: 1 addition & 1 deletion modules/nf-scil/reconst/dtimetrics/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ process RECONST_DTIMETRICS {
if ( task.ext.rd ) args += " --rd ${prefix}__rd.nii.gz"
if ( task.ext.tensor ) args += " --tensor ${prefix}__tensor.nii.gz"
if ( task.ext.nonphysical ) args += " --non-physical ${prefix}__nonphysical.nii.gz"
if ( task.ext.pulsation ) args += " --pulsation ${prefix}__pulsation_std_dwi.nii.gz"
if ( task.ext.pulsation ) args += " --pulsation ${prefix}__pulsation.nii.gz"
if ( task.ext.residual ) args += " --residual ${prefix}__residual.nii.gz"


Expand Down
36 changes: 33 additions & 3 deletions modules/nf-scil/reconst/dtimetrics/tests/main.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,35 @@ nextflow_process {
then {
assertAll(
{ assert process.success },
{ assert snapshot(process.out).match() }
{ assert snapshot(
niftiMD5SUM(process.out.ad.get(0).get(1), 6),
niftiMD5SUM(process.out.evecs.get(0).get(1), 6),
niftiMD5SUM(process.out.evecs_v1.get(0).get(1), 6),
niftiMD5SUM(process.out.evecs_v2.get(0).get(1), 6),
niftiMD5SUM(process.out.evecs_v3.get(0).get(1), 6),
niftiMD5SUM(process.out.evals.get(0).get(1), 6),
niftiMD5SUM(process.out.evals_e1.get(0).get(1), 6),
niftiMD5SUM(process.out.evals_e2.get(0).get(1), 6),
niftiMD5SUM(process.out.evals_e3.get(0).get(1), 6),
niftiMD5SUM(process.out.fa.get(0).get(1), 6),
niftiMD5SUM(process.out.ga.get(0).get(1), 6),
niftiMD5SUM(process.out.rgb.get(0).get(1), 6),
niftiMD5SUM(process.out.md.get(0).get(1), 6),
niftiMD5SUM(process.out.mode.get(0).get(1), 6),
niftiMD5SUM(process.out.norm.get(0).get(1), 6),
niftiMD5SUM(process.out.rd.get(0).get(1), 6),
niftiMD5SUM(process.out.tensor.get(0).get(1), 6),
niftiMD5SUM(process.out.nonphysical.get(0).get(1), 6),
niftiMD5SUM(process.out.pulsation_std_dwi.get(0).get(1), 6),
niftiMD5SUM(process.out.residual.get(0).get(1), 6),
process.out.residual_iqr_residuals,
process.out.residual_mean_residuals,
process.out.residual_q1_residuals,
process.out.residual_q3_residuals,
process.out.residual_residuals_stats,
process.out.residual_std_residuals,
process.out.versions
).match() }
)
}

Expand Down Expand Up @@ -75,9 +103,11 @@ nextflow_process {
then {
assertAll(
{ assert process.success },
{ assert snapshot(process.out).match() }
{ assert snapshot(
niftiMD5SUM(process.out.fa.get(0).get(1), 6),
process.out.versions
).match() }
)
}

}
}
Loading

0 comments on commit 7bfb3ad

Please sign in to comment.