Skip to content

Commit c665114

Browse files
shnizzedygkiarsgiavasis
committed
⏪ Revert "💡 Update comments based on default preconfig"
This reverts commit 91052f7. Ref https://cmi-cnl.slack.com/archives/C044UUCC4BX/p1666888504397959?thread_ts=1666888233.415009&cid=C044UUCC4BX Co-authored-by: Greg Kiar <[email protected]> Co-authored-by: Steve Giavasis <[email protected]>
1 parent 91052f7 commit c665114

18 files changed

+2022
-3665
lines changed

CPAC/resources/configs/pipeline_config_abcd-options.yml

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

CPAC/resources/configs/pipeline_config_anat-only.yml

Lines changed: 141 additions & 160 deletions
Original file line numberDiff line numberDiff line change
@@ -6,28 +6,24 @@
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
109

11-
pipeline_setup:
10+
FROM: default
1211

12+
13+
pipeline_setup:
1314
# 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:
17-
18-
# Quality control outputs
19-
quality_control:
2016

21-
# Generate quality control pages containing preprocessing and derivative outputs.
22-
generate_quality_control_images: On
23-
24-
system_config:
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
2521

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

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-
44+
Amazon-AWS:
5645
# Enable server-side 256-AES encryption on data to the S3 bucket
5746
s3_encryption: On
5847

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
48+
anatomical_preproc:
49+
# Non-local means filtering via ANTs DenoiseImage
50+
non_local_means_filtering:
51+
run: [Off]
7352

7453
# N4 bias field correction via ANTs
7554
n4_bias_field_correction:
76-
77-
# this is a fork option
7855
run: [On]
7956

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:
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
8761

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:
8873
# These masks should be in the same space of your registration template, e.g. if
8974
# you choose 'EPI Template' , below tissue masks should also be EPI template tissue masks.
9075
#
9176
# Options: ['T1_Template', 'EPI_Template']
9277
template_for_segmentation: []
9378

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

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
82+
# Full path to a binarized White Matter mask.
83+
WHITE: $FSLDIR/data/standard/tissuepriors/2mm/avg152T1_white_bin.nii.gz
10284

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
85+
# Full path to a binarized Gray Matter mask.
86+
GRAY: $FSLDIR/data/standard/tissuepriors/2mm/avg152T1_gray_bin.nii.gz
10587

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
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
10996

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

114101
# Register skull-on anatomical image to a template.
115102
reg_with_skull: Off
116103

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
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
132108

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

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:
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]
141117

118+
EPI_registration:
119+
ANTs:
142120
# EPI registration configuration - synonymous with T1_registration
143121
# parameters under anatomical registration above
144-
parameters:
145-
146-
functional_preproc:
147-
slice_timing_correction:
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
148127

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]
128+
func_registration_to_template:
129+
run: Off
153130

154-
motion_estimates_and_correction:
155-
run: On
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
156137

157-
distortion_correction:
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
158141

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

163-
# using: ['PhaseDiff', 'Blip', 'Blip-FSL-TOPUP']
145+
distortion_correction:
146+
# using: ['PhaseDiff', 'Blip']
164147
# 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.
165148
# Blip - Uses AFNI 3dQWarp to calculate the distortion unwarp for EPI field maps of opposite/same phase encoding direction.
166-
# Blip-FSL-TOPUP - Uses FSL TOPUP 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
167152
using: []
168153

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:
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
230206

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

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

214+
eigenvector_centrality:
239215
# Enable/Disable eigenvector centrality by selecting the connectivity weights
240216
# weight_options: ['Binarized', 'Weighted']
241217
# disable this type of centrality with:
242218
# weight_options: []
243219
weight_options: [Binarized, Weighted]
244220

245-
local_functional_connectivity_density:
246-
221+
local_functional_connectivity_density:
247222
# Select the type of threshold used when creating the lFCD adjacency matrix.
248223
# options:
249224
# 'Significance threshold', 'Correlation threshold'
@@ -254,3 +229,9 @@ network_centrality:
254229
# Sparsity value for Sparsity Threshold
255230
# Pearson's r value for Correlation Threshold
256231
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)