diff --git a/main.nf b/main.nf index 6eeea69..e70b7a1 100644 --- a/main.nf +++ b/main.nf @@ -68,6 +68,10 @@ workflow { if ( params.use_fodf_for_tracking && ! params.run_tracking ) { error "The parameter use_fodf_for_tracking cannot be enabled if run_tracking is disabled." } + + if ( params.use_fodf_for_tracking && ! params.run_fodf) { + error "The parameter use_fodf_for_tracking cannot be enabled if run_fodf is disabled." + } ch_dwi_bvalbvec = data.dwi .multiMap { meta, dwi, bval, bvec -> @@ -167,6 +171,7 @@ workflow { ch_multiqc_files = ch_multiqc_files.mix(RECONST_DTIMETRICS.out.mqc) /* FODF */ + if ( params.run_fodf ) { RECONST_FRF(ch_for_reconst.map{ it + [[], [], []]}) ch_for_reconst_fodf = ch_for_reconst .join(RECONST_DTIMETRICS.out.fa) @@ -174,7 +179,7 @@ workflow { .join(RECONST_FRF.out.frf) .map{ it + [[], []]} RECONST_FODF(ch_for_reconst_fodf) - + } /* QBALL */ RECONST_QBALL(ch_for_reconst) diff --git a/nextflow.config b/nextflow.config index edfcbf9..b92e2f2 100644 --- a/nextflow.config +++ b/nextflow.config @@ -28,6 +28,7 @@ params { nvox_min = 100 // FODF || QBALL + run_fodf = true use_fodf_for_tracking = false sh_order = 6 min_fodf_value = 1000 diff --git a/nextflow_schema.json b/nextflow_schema.json index 1d8eece..379de8d 100644 --- a/nextflow_schema.json +++ b/nextflow_schema.json @@ -90,6 +90,12 @@ "description": "Set it to false if you don't want to resample your data to the smallest current voxel dimension.", "fa_icon": "fas fa-brain" }, + "run_fodf": { + "type": "boolean", + "default": true, + "description": "Set it to false if you don't want to run fODF", + "fa_icon": "fas fa-brain" + }, "run_tracking": { "type": "boolean", "default": true,