Skip to content

Commit 91052f7

Browse files
💡 Update comments based on default preconfig
1 parent 7cad86d commit 91052f7

18 files changed

+3665
-2022
lines changed

CPAC/resources/configs/pipeline_config_abcd-options.yml

Lines changed: 194 additions & 144 deletions
Large diffs are not rendered by default.

CPAC/resources/configs/pipeline_config_anat-only.yml

Lines changed: 160 additions & 141 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,28 @@
66
# http://fcp-indi.github.io for more info.
77
#
88
# Tip: This file can be edited manually with a text editor for quick modifications.
9+
FROM: blank
910

10-
FROM: default
11+
pipeline_setup:
1112

12-
13-
pipeline_setup:
1413
# Name for this pipeline configuration - useful for identification.
14+
# This string will be sanitized and used in filepaths
1515
pipeline_name: cpac_anat
16+
output_directory:
1617

17-
working_directory:
18-
# Deletes the contents of the Working Directory after running.
19-
# This saves disk space, but any additional preprocessing or analysis will have to be completely re-run.
20-
remove_working_dir: Off
18+
# Quality control outputs
19+
quality_control:
20+
21+
# Generate quality control pages containing preprocessing and derivative outputs.
22+
generate_quality_control_images: On
23+
24+
system_config:
2125

22-
system_config:
2326
# Select Off if you intend to run CPAC on a single machine.
2427
# If set to On, CPAC will attempt to submit jobs through the job scheduler / resource manager selected below.
25-
on_grid:
26-
SGE:
28+
on_grid:
29+
SGE:
30+
2731
# SGE Parallel Environment to use when running CPAC.
2832
# Only applies when you are running on a grid or compute cluster using SGE.
2933
parallel_environment: cpac
@@ -41,184 +45,205 @@ pipeline_setup:
4145
# If you have specified an FSL path in your .bashrc file, this path will be set automatically.
4246
FSLDIR: FSLDIR
4347

44-
Amazon-AWS:
48+
working_directory:
49+
50+
# Deletes the contents of the Working Directory after running.
51+
# This saves disk space, but any additional preprocessing or analysis will have to be completely re-run.
52+
remove_working_dir: Off
53+
54+
Amazon-AWS:
55+
4556
# Enable server-side 256-AES encryption on data to the S3 bucket
4657
s3_encryption: On
4758

48-
anatomical_preproc:
49-
# Non-local means filtering via ANTs DenoiseImage
50-
non_local_means_filtering:
51-
run: [Off]
59+
anatomical_preproc:
60+
run: On
61+
acpc_alignment:
62+
T1w_brain_ACPC_template: /usr/share/fsl/5.0/data/standard/MNI152_T1_1mm_brain.nii.gz
63+
64+
# ACPC aligned template
65+
T1w_ACPC_template: /usr/share/fsl/5.0/data/standard/MNI152_T1_1mm.nii.gz
66+
67+
brain_extraction:
68+
run: On
69+
FSL-BET:
70+
71+
# Mask created along with skull stripping. It should be `On`, if selected functionalMasking : ['Anatomical_Refined'] and `FSL` as skull-stripping method.
72+
mask_boolean: Off
5273

5374
# N4 bias field correction via ANTs
5475
n4_bias_field_correction:
76+
77+
# this is a fork option
5578
run: [On]
5679

57-
brain_extraction:
58-
FSL-BET:
59-
# Mask created along with skull stripping. It should be `On`, if selected functionalMasking : ['Anatomical_Refined'] and `FSL` as skull-stripping method.
60-
mask_boolean: Off
80+
segmentation:
81+
82+
# Automatically segment anatomical images into white matter, gray matter,
83+
# and CSF based on prior probability maps.
84+
run: On
85+
tissue_segmentation:
86+
Template_Based:
6187

62-
segmentation:
63-
tissue_segmentation:
64-
# option parameters
65-
FSL-FAST:
66-
use_priors:
67-
# Full path to a directory containing binarized prior probability maps.
68-
# These maps are included as part of the 'Image Resource Files' package available on the Install page of the User Guide.
69-
# It is not necessary to change this path unless you intend to use non-standard priors.
70-
priors_path: $FSLDIR/data/standard/tissuepriors/2mm
71-
72-
Template_Based:
7388
# These masks should be in the same space of your registration template, e.g. if
7489
# you choose 'EPI Template' , below tissue masks should also be EPI template tissue masks.
7590
#
7691
# Options: ['T1_Template', 'EPI_Template']
7792
template_for_segmentation: []
7893

79-
# These masks are included as part of the 'Image Resource Files' package available
80-
# on the Install page of the User Guide.
94+
registration_workflows:
95+
anatomical_registration:
96+
run: On
97+
registration:
98+
FSL-FNIRT:
8199

82-
# Full path to a binarized White Matter mask.
83-
WHITE: $FSLDIR/data/standard/tissuepriors/2mm/avg152T1_white_bin.nii.gz
100+
# Reference mask with 2mm resolution to be used during FNIRT-based brain extraction in ABCD-options pipeline.
101+
ref_mask_res-2: /usr/share/fsl/5.0/data/standard/MNI152_T1_2mm_brain_mask_dil.nii.gz
84102

85-
# Full path to a binarized Gray Matter mask.
86-
GRAY: $FSLDIR/data/standard/tissuepriors/2mm/avg152T1_gray_bin.nii.gz
103+
# Template with 2mm resolution to be used during FNIRT-based brain extraction in ABCD-options pipeline.
104+
T1w_template_res-2: /usr/share/fsl/5.0/data/standard/MNI152_T1_2mm.nii.gz
87105

88-
# Full path to a binarized CSF mask.
89-
CSF: $FSLDIR/data/standard/tissuepriors/2mm/avg152T1_csf_bin.nii.gz
90-
91-
registration_workflows:
92-
anatomical_registration:
93-
# Template to be used during registration.
94-
# It is not necessary to change this path unless you intend to use a non-standard template.
95-
T1w_brain_template: $FSLDIR/data/standard/MNI152_T1_${resolution_for_anat}_brain.nii.gz
106+
# Identity matrix used during FSL-based resampling of anatomical-space data throughout the pipeline.
107+
# It is not necessary to change this path unless you intend to use a different template.
108+
identity_matrix: /usr/share/fsl/5.0/etc/flirtsch/ident.mat
96109

97110
# Template to be used during registration.
98111
# It is not necessary to change this path unless you intend to use a non-standard template.
99-
T1w_template: $FSLDIR/data/standard/MNI152_T1_${resolution_for_anat}.nii.gz
112+
T1w_brain_template_mask: /usr/share/fsl/5.0/data/standard/MNI152_T1_${resolution_for_anat}_brain_mask.nii.gz
100113

101114
# Register skull-on anatomical image to a template.
102115
reg_with_skull: Off
103116

104-
registration:
105-
FSL-FNIRT:
106-
# Reference mask for FSL registration.
107-
ref_mask: $FSLDIR/data/standard/MNI152_T1_${resolution_for_anat}_brain_mask_dil.nii.gz
117+
functional_registration:
118+
coregistration:
119+
boundary_based_registration:
120+
121+
# Standard FSL 5.0 Scheduler used for Boundary Based Registration.
122+
# It is not necessary to change this path unless you intend to use non-standard MNI registration.
123+
bbr_schedule: /usr/share/fsl/5.0/etc/flirtsch/bbr.sch
124+
125+
func_registration_to_template:
126+
target_template:
127+
T1_template:
128+
129+
# Template to be used during registration.
130+
# It is not necessary to change this path unless you intend to use a non-standard template.
131+
T1w_brain_template_mask_funcreg: /usr/share/fsl/5.0/data/standard/MNI152_T1_${func_resolution}_brain_mask.nii.gz
108132

109-
functional_registration:
110-
coregistration:
111-
run: Off
133+
FNIRT_pipelines:
112134

113-
boundary_based_registration:
114-
# this is a fork point
115-
# run: [On, Off] - this will run both and fork the pipeline
116-
run: [Off]
135+
# Identity matrix used during FSL-based resampling of functional-space data throughout the pipeline.
136+
# It is not necessary to change this path unless you intend to use a different template.
137+
identity_matrix: /usr/share/fsl/5.0/etc/flirtsch/ident.mat
138+
139+
EPI_registration:
140+
ANTs:
117141

118-
EPI_registration:
119-
ANTs:
120142
# EPI registration configuration - synonymous with T1_registration
121143
# parameters under anatomical registration above
122-
parameters:
123-
FSL-FNIRT:
124-
# Identity matrix used during FSL-based resampling of BOLD-space data throughout the pipeline.
125-
# It is not necessary to change this path unless you intend to use a different template.
126-
identity_matrix: $FSLDIR/etc/flirtsch/ident.mat
144+
parameters:
145+
146+
functional_preproc:
147+
slice_timing_correction:
127148

128-
func_registration_to_template:
129-
run: Off
149+
# Interpolate voxel time courses so they are sampled at the same time points.
150+
# this is a fork point
151+
# run: [On, Off] - this will run both and fork the pipeline
152+
run: [On]
130153

131-
target_template:
132-
# option parameters
133-
T1_template:
134-
# Standard Skull Stripped Template. Used as a reference image for functional registration.
135-
# This can be different than the template used as the reference/fixed for T1-to-template registration.
136-
T1w_brain_template_funcreg: $FSLDIR/data/standard/MNI152_T1_${func_resolution}_brain.nii.gz
154+
motion_estimates_and_correction:
155+
run: On
137156

138-
# Standard Anatomical Brain Image with Skull.
139-
# This can be different than the template used as the reference/fixed for T1-to-template registration.
140-
T1w_template_funcreg: $FSLDIR/data/standard/MNI152_T1_${func_resolution}.nii.gz
157+
distortion_correction:
141158

142-
functional_preproc:
143-
run: Off
159+
# this is a fork point
160+
# run: [On, Off] - this will run both and fork the pipeline
161+
run: [On]
144162

145-
distortion_correction:
146-
# using: ['PhaseDiff', 'Blip']
163+
# using: ['PhaseDiff', 'Blip', 'Blip-FSL-TOPUP']
147164
# PhaseDiff - Perform field map correction using a single phase difference image, a subtraction of the two phase images from each echo. Default scanner for this method is SIEMENS.
148165
# Blip - Uses AFNI 3dQWarp to calculate the distortion unwarp for EPI field maps of opposite/same phase encoding direction.
149-
# NOTE:
150-
# this is NOT a fork point - instead, the technique used will depend on what type of distortion correction field data accompanies the dataset
151-
# for example, phase-difference field maps will lead to phase-difference distortion correction, and phase-encoding direction field maps will lead to blip-up/blip-down
166+
# Blip-FSL-TOPUP - Uses FSL TOPUP to calculate the distortion unwarp for EPI field maps of opposite/same phase encoding direction.
152167
using: []
153168

154-
nuisance_corrections:
155-
2-nuisance_regression:
156-
# this is a fork point
157-
# run: [On, Off] - this will run both and fork the pipeline
158-
run: [Off]
159-
160-
# Select which nuisance signal corrections to apply
161-
Regressors:
162-
# Standard Lateral Ventricles Binary Mask
163-
# used in CSF mask refinement for CSF signal-related regressions
164-
lateral_ventricles_mask: $FSLDIR/data/atlases/HarvardOxford/HarvardOxford-lateral-ventricles-thr25-2mm.nii.gz
165-
166-
timeseries_extraction:
167-
run: Off
168-
169-
seed_based_correlation_analysis:
170-
# SCA - Seed-Based Correlation Analysis
171-
# For each extracted ROI Average time series, CPAC will generate a whole-brain correlation map.
172-
# It should be noted that for a given seed/ROI, SCA maps for ROI Average time series will be the same.
173-
run: Off
174-
175-
amplitude_low_frequency_fluctuation:
176-
# ALFF & f/ALFF
177-
# Calculate Amplitude of Low Frequency Fluctuations (ALFF) and and fractional ALFF (f/ALFF) for all voxels.
178-
run: Off
179-
180-
regional_homogeneity:
181-
# ReHo
182-
# Calculate Regional Homogeneity (ReHo) for all voxels.
183-
run: Off
184-
185-
voxel_mirrored_homotopic_connectivity:
186-
# VMHC
187-
# Calculate Voxel-mirrored Homotopic Connectivity (VMHC) for all voxels.
188-
run: Off
189-
190-
symmetric_registration:
191-
# Included as part of the 'Image Resource Files' package available on the Install page of the User Guide.
192-
# It is not necessary to change this path unless you intend to use a non-standard symmetric template.
193-
T1w_brain_template_symmetric: $FSLDIR/data/standard/MNI152_T1_${resolution_for_anat}_brain_symmetric.nii.gz
194-
195-
# Included as part of the 'Image Resource Files' package available on the Install page of the User Guide.
196-
# It is not necessary to change this path unless you intend to use a non-standard symmetric template.
197-
T1w_template_symmetric: $FSLDIR/data/standard/MNI152_T1_${resolution_for_anat}_symmetric.nii.gz
198-
199-
# Included as part of the 'Image Resource Files' package available on the Install page of the User Guide.
200-
# It is not necessary to change this path unless you intend to use a non-standard symmetric template.
201-
dilated_symmetric_brain_mask: $FSLDIR/data/standard/MNI152_T1_${resolution_for_anat}_brain_mask_symmetric_dil.nii.gz
202-
203-
network_centrality:
204-
# Calculate Degree, Eigenvector Centrality, or Functional Connectivity Density.
205-
run: Off
169+
func_masking:
170+
FSL_AFNI:
171+
brain_mask: /usr/share/fsl/5.0/data/standard/MNI152_T1_${resolution_for_anat}_brain_mask.nii.gz
172+
brain_probseg: /usr/share/fsl/5.0/data/standard/MNI152_T1_${resolution_for_anat}_brain_mask.nii.gz
173+
174+
generate_func_mean:
175+
176+
# Generate mean functional image
177+
run: On
178+
179+
normalize_func:
180+
181+
# Normalize functional image
182+
run: On
183+
184+
nuisance_corrections:
185+
2-nuisance_regression:
186+
187+
# Process and refine masks used to produce regressors and time series for
188+
# regression.
189+
regressor_masks:
190+
erode_anatomical_brain_mask:
191+
192+
# Erode brain mask in millimeters, default for brain mask is 30 mm
193+
# Brain erosion default is using millimeters.
194+
brain_mask_erosion_mm: 30
195+
196+
erode_csf:
197+
198+
# Erode cerebrospinal fluid mask in millimeters, default for cerebrospinal fluid is 30mm
199+
# Cerebrospinal fluid erosion default is using millimeters.
200+
csf_mask_erosion_mm: 30
201+
202+
erode_wm:
203+
204+
# Target volume ratio, if using erosion.
205+
# Default proportion is 0.6 for white matter mask.
206+
# If using erosion, using both proportion and millimeters is not recommended.
207+
# White matter erosion default is using proportion erosion method when use erosion for white matter.
208+
wm_erosion_prop: 0.6
209+
210+
erode_gm:
211+
212+
# Target volume ratio, if using erosion.
213+
# If using erosion, using both proportion and millimeters is not recommended.
214+
gm_erosion_prop: 0.6
215+
216+
timeseries_extraction:
217+
connectivity_matrix:
218+
219+
# Create a connectivity matrix from timeseries data
220+
# Options:
221+
# ['AFNI', 'Nilearn', 'ndmg']
222+
using: [Nilearn, ndmg]
223+
224+
# Options:
225+
# ['Pearson', 'Partial']
226+
# Note: These options are not configurable for ndmg, which will ignore these options
227+
measure: [Pearson, Partial]
228+
229+
network_centrality:
206230

207231
# Maximum amount of RAM (in GB) to be used when calculating Degree Centrality.
208232
# Calculating Eigenvector Centrality will require additional memory based on the size of the mask or number of ROI nodes.
209233
memory_allocation: 3.0
210234

211235
# Full path to a NIFTI file describing the mask. Centrality will be calculated for all voxels within the mask.
212236
template_specification_file: s3://fcp-indi/resources/cpac/resources/mask-thr50-3mm.nii.gz
237+
eigenvector_centrality:
213238

214-
eigenvector_centrality:
215239
# Enable/Disable eigenvector centrality by selecting the connectivity weights
216240
# weight_options: ['Binarized', 'Weighted']
217241
# disable this type of centrality with:
218242
# weight_options: []
219243
weight_options: [Binarized, Weighted]
220244

221-
local_functional_connectivity_density:
245+
local_functional_connectivity_density:
246+
222247
# Select the type of threshold used when creating the lFCD adjacency matrix.
223248
# options:
224249
# 'Significance threshold', 'Correlation threshold'
@@ -229,9 +254,3 @@ network_centrality:
229254
# Sparsity value for Sparsity Threshold
230255
# Pearson's r value for Correlation Threshold
231256
correlation_threshold: 0.001
232-
233-
# PACKAGE INTEGRATIONS
234-
# --------------------
235-
PyPEER:
236-
# Template-space eye mask
237-
eye_mask_path: $FSLDIR/data/standard/MNI152_T1_${func_resolution}_eye_mask.nii.gz

0 commit comments

Comments
 (0)