Skip to content

Commit 976b76d

Browse files
committed
pft tracking fix to restore cache
1 parent 624cdd1 commit 976b76d

File tree

4 files changed

+5
-11
lines changed

4 files changed

+5
-11
lines changed

modules/nf-neuro/preproc/n4/main.nf

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ process PREPROC_N4 {
2323
def bspline_knot_per_voxel = task.ext.bspline_knot_per_voxel ? "$task.ext.bspline_knot_per_voxel" : "1"
2424
def shrink_factor = task.ext.shrink_factor ? "$task.ext.shrink_factor" : "1"
2525
"""
26-
export ITK_GLOBAL_DEFAULT_NUMBER_OF_THREADS=1
26+
export ITK_GLOBAL_DEFAULT_NUMBER_OF_THREADS=$task.cpus
2727
export OMP_NUM_THREADS=1
2828
export OPENBLAS_NUM_THREADS=1
2929
export ANTS_RANDOM_SEED=1234

modules/nf-neuro/tracking/pfttracking/main.nf

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ process TRACKING_PFTTRACKING {
5454
--interface ${prefix}__interface.nii.gz -f
5555
5656
if [ "${pft_seeding_mask}" == "wm" ]; then
57-
scil_volume_math.py convert $wm ${prefix}__mask_wm.nii.gz \
57+
scil_volume_math.py convert $wm ${prefix}__pft_seeding_mask.nii.gz \
5858
--data_type uint8 -f
59-
scil_volume_math.py union ${prefix}__mask_wm.nii.gz \
59+
scil_volume_math.py union ${prefix}__pft_seeding_mask.nii.gz \
6060
${prefix}__interface.nii.gz ${prefix}__pft_seeding_mask.nii.gz\
6161
--data_type uint8 -f
6262

subworkflows/local/utils_nfcore_nf-tractoflow_pipeline/main.nf

+1-3
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,8 @@ workflow PIPELINE_INITIALISATION {
117117
ch_samplesheet = ch_samplesheet.mix(ch_bids_sheets)
118118
}
119119

120-
IO_SAFECASTINPUTS( ch_samplesheet )
121-
122120
emit:
123-
samplesheet = IO_SAFECASTINPUTS.out.safe_inputs
121+
samplesheet = ch_samplesheet
124122
versions = ch_versions
125123
}
126124

workflows/nf-tractoflow.nf

+1-5
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,7 @@ include { MULTIQC } from '../modules/nf-core/multiqc/main'
77
include { paramsSummaryMap } from 'plugin/nf-schema'
88
include { paramsSummaryMultiqc } from '../subworkflows/nf-core/utils_nfcore_pipeline'
99
include { softwareVersionsToYAML } from '../subworkflows/nf-core/utils_nfcore_pipeline'
10-
include { methodsDescriptionText } from '../subworkflows/local/utils_nfcore_tractoflow_pipeline'
11-
include { TRACTOFLOW as RUN } from '../subworkflows/nf-neuro/tractoflow'
12-
include { RECONST_SHSIGNAL } from '../modules/local/reconst/shsignal'
13-
14-
10+
include { methodsDescriptionText } from '../subworkflows/local/utils_nfcore_nf-tractoflow_pipeline'
1511
include { TRACTOFLOW as RUN } from '../subworkflows/nf-neuro/tractoflow'
1612
include { RECONST_SHSIGNAL } from '../modules/local/reconst/shsignal'
1713

0 commit comments

Comments
 (0)