Skip to content

Commit 82a5e93

Browse files
authored
🎨 Use Sphinx start-at/-after and end-at/-before (#258)
2 parents 6a82b2b + 6f25a5f commit 82a5e93

File tree

17 files changed

+172
-30
lines changed

17 files changed

+172
-30
lines changed

‎docs/_sources/user/after_warp.rst‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ The following nested key/value pairs that will be set to these defaults if not d
4242

4343
.. literalinclude:: /references/default_pipeline.yml
4444
:language: YAML
45-
:lines: 1184-1214
45+
:start-at: # OUTPUTS AND DERIVATIVES
46+
:end-at: output: ['z-scored']
4647

4748
External Resources
4849
^^^^^^^^^^^^^^^^^^

‎docs/_sources/user/alff.rst‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ Configuring CPAC to Run ALFF and f/ALFF
4141

4242
.. literalinclude:: /references/default_pipeline.yml
4343
:language: YAML
44-
:lines: 1290-1300
44+
:start-at: amplitude_low_frequency_fluctuation:
45+
:end-before: regional_homogeneity:
4546

4647
References
4748
^^^^^^^^^^

‎docs/_sources/user/anat.rst‎

Lines changed: 56 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ Configuring CPAC to run surface analysis:
2121

2222
.. literalinclude:: /references/default_pipeline.yml
2323
:language: YAML
24-
:lines: 152-159
24+
:start-at: surface_analysis:
25+
:end-before: longitudinal_template_generation:
2526

2627
Initial Preprocessing
2728
^^^^^^^^^^^^^^^^^^^^^
@@ -50,7 +51,8 @@ Configuring CPAC to run initial preprocessing:
5051

5152
.. literalinclude:: /references/default_pipeline.yml
5253
:language: YAML
53-
:lines: 197-209
54+
:start-at: anatomical_preproc:
55+
:end-before: Run ACPC alignment before non-local means filtering or N4 bias
5456

5557
Configuring ACPC Alignment options:
5658
""""""""""""""""""""""""""""""""""""""
@@ -66,7 +68,12 @@ Configuring ACPC Alignment options:
6668

6769
.. literalinclude:: /references/default_pipeline.yml
6870
:language: YAML
69-
:lines: 197-198,207-226
71+
:start-at: anatomical_preproc:
72+
:lines: 1
73+
74+
.. literalinclude:: /references/default_pipeline.yml
75+
:start-at: acpc_alignment:
76+
:end-before: brain_extraction:
7077

7178
Skull-Stripping
7279
^^^^^^^^^^^^^^^
@@ -95,7 +102,12 @@ Configuring CPAC to run Skull-Stripping:
95102

96103
.. literalinclude:: /references/default_pipeline.yml
97104
:language: YAML
98-
:lines: 197-198,228-232
105+
:start-at: anatomical_preproc:
106+
:lines: 1
107+
108+
.. literalinclude:: /references/default_pipeline.yml
109+
:start-at: brain_extraction:
110+
:end-at: using: ['3dSkullStrip']
99111

100112
Configuring AFNI 3dSkullStrip options:
101113
""""""""""""""""""""""""""""""""""""""
@@ -143,7 +155,18 @@ Configuring AFNI 3dSkullStrip options:
143155

144156
.. literalinclude:: /references/default_pipeline.yml
145157
:language: YAML
146-
:lines: 197-198,228-229,234-298
158+
:start-at: anatomical_preproc:
159+
:lines: 1
160+
161+
162+
.. literalinclude:: /references/default_pipeline.yml
163+
:start-at: brain_extraction:
164+
:lines: 1
165+
166+
167+
.. literalinclude:: /references/default_pipeline.yml
168+
:start-at: AFNI-3dSkullStrip:
169+
:end-before: FSL-BET:
147170

148171
Configuring FSL BET options:
149172
""""""""""""""""""""""""""""
@@ -181,7 +204,18 @@ Configuring FSL BET options:
181204

182205
.. literalinclude:: /references/default_pipeline.yml
183206
:language: YAML
184-
:lines: 197-198,228-229,300-339
207+
:start-at: anatomical_preproc:
208+
:lines: 1
209+
210+
211+
.. literalinclude:: /references/default_pipeline.yml
212+
:start-at: brain_extraction:
213+
:lines: 1
214+
215+
216+
.. literalinclude:: /references/default_pipeline.yml
217+
:start-at: FSL-BET:
218+
:end-before: UNet:
185219

186220
Configuring niworkflows-ants options:
187221
"""""""""""""""""""""""""""""""""""""
@@ -199,7 +233,18 @@ Configuring niworkflows-ants options:
199233

200234
.. literalinclude:: /references/default_pipeline.yml
201235
:language: YAML
202-
:lines: 197-198,228-229,346-358
236+
:start-at: anatomical_preproc:
237+
:lines: 1
238+
239+
240+
.. literalinclude:: /references/default_pipeline.yml
241+
:start-at: brain_extraction:
242+
:lines: 1
243+
244+
245+
.. literalinclude:: /references/default_pipeline.yml
246+
:start-at: niworkflows-ants:
247+
:end-before: FreeSurfer-BET:
203248

204249
Anatomical Registration
205250
^^^^^^^^^^^^^^^^^^^^^^^
@@ -243,7 +288,8 @@ Configuring CPAC to Run Anatomical Registration
243288

244289
.. literalinclude:: /references/default_pipeline.yml
245290
:language: YAML
246-
:lines: 482-600
291+
:start-at: registration_workflows:
292+
:end-before: functional_registration:
247293

248294
Anatomical Tissue Segmentation
249295
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -344,7 +390,8 @@ Configuring CPAC to Run Anatomical Tissue Segmentation
344390

345391
.. literalinclude:: /references/default_pipeline.yml
346392
:language: YAML
347-
:lines: 361-479
393+
:start-at: segmentation:
394+
:end-before: registration_workflows:
348395

349396
References
350397
^^^^^^^^^^

‎docs/_sources/user/aroma_ica.rst‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ The following nested key/value pairs that will be set to these defaults if not d
4040

4141
.. literalinclude:: /references/default_pipeline.yml
4242
:language: YAML
43-
:lines: 1022-1033
43+
:start-at: nuisance_corrections:
44+
:end-before: 2-nuisance_regression:
4445

4546
EXTERNAL RESOURCES:
4647
^^^^^^^^^^^^^^^^^^^

‎docs/_sources/user/centrality.rst‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ Note that only centrality measures that have binarized/weighted checked on this
6161

6262
.. literalinclude:: /references/default_pipeline.yml
6363
:language: YAML
64-
:lines: 1346-1413
64+
:start-at: network_centrality:
65+
:end-before: # PACKAGE INTEGRATIONS
6566

6667
References
6768
^^^^^^^^^^

‎docs/_sources/user/compute_config.rst‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,13 @@ Computer Settings
2828

2929
.. literalinclude:: /references/default_pipeline.yml
3030
:language: YAML
31-
:lines: 10-11,81-136
31+
:start-at: pipeline_setup:
32+
:lines: 1
33+
34+
.. literalinclude:: /references/default_pipeline.yml
35+
:language: YAML
36+
:start-at: system_config:
37+
:end-before: Amazon-AWS:
3238

3339
Setting up SGE
3440
"""""""""""""""

‎docs/_sources/user/func.rst‎

Lines changed: 72 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,23 @@ Initial Preprocessing
3636

3737
.. literalinclude:: /references/default_pipeline.yml
3838
:language: YAML
39-
:lines: 602-606,609-610,615-619,815-936
39+
:start-at: registration_workflows:
40+
:lines: 1
41+
42+
.. literalinclude:: /references/default_pipeline.yml
43+
:language: YAML
44+
:start-at: functional_registration:
45+
:end-before: boundary_based_registration:
46+
47+
.. literalinclude:: /references/default_pipeline.yml
48+
:language: YAML
49+
:start-at: functional_preproc:
50+
:end-before: slice_timing_correction:
51+
52+
.. literalinclude:: /references/default_pipeline.yml
53+
:language: YAML
54+
:start-at: motion_estimates_and_correction:
55+
:end-before: distortion_correction:
4056

4157
.. _motion_estimate_filter_valid_options:
4258

@@ -78,7 +94,13 @@ Note that if a scan parameters file was used to construct the participant list,
7894

7995
.. literalinclude:: /references/default_pipeline.yml
8096
:language: YAML
81-
:lines: 815-816,848-853
97+
:start-at: functional_preproc:
98+
:lines: 1
99+
100+
.. literalinclude:: /references/default_pipeline.yml
101+
:language: YAML
102+
:start-at: slice_timing_correction:
103+
:end-before: motion_estimates_and_correction:
82104

83105
Through the Data Configuration
84106
""""""""""""""""""""""""""""""
@@ -161,7 +183,13 @@ The C-PAC pipeline configuration builder provides options for configuring the Di
161183

162184
.. literalinclude:: /references/default_pipeline.yml
163185
:language: YAML
164-
:lines: 815-816,938-965
186+
:start-at: functional_preproc:
187+
:lines: 1
188+
189+
.. literalinclude:: /references/default_pipeline.yml
190+
:language: YAML
191+
:start-at: distortion_correction:
192+
:end-before: func_masking:
165193

166194
Functional to Anatomical Registration
167195
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -183,7 +211,28 @@ Functional to Anatomical Registration
183211

184212
.. literalinclude:: /references/default_pipeline.yml
185213
:language: YAML
186-
:lines: 482-483,602-614,621-635,815-816,967-971
214+
:start-at: registration_workflows:
215+
:lines: 1
216+
217+
.. literalinclude:: /references/default_pipeline.yml
218+
:language: YAML
219+
:start-at: functional_registration:
220+
:end-before: reference:
221+
222+
.. literalinclude:: /references/default_pipeline.yml
223+
:language: YAML
224+
:start-at: func_input_prep:
225+
:end-before: EPI_registration:
226+
227+
.. literalinclude:: /references/default_pipeline.yml
228+
:language: YAML
229+
:start-at: functional_preproc:
230+
:lines: 1
231+
232+
.. literalinclude:: /references/default_pipeline.yml
233+
:language: YAML
234+
:start-at: func_masking:
235+
:end-before: FSL-BET:
187236

188237
Configuring FSL BET options:
189238
""""""""""""""""""""""""""""
@@ -224,7 +273,13 @@ Configuring FSL BET options:
224273

225274
.. literalinclude:: /references/default_pipeline.yml
226275
:language: YAML
227-
:lines: 815-816,973-1014
276+
:start-at: functional_preproc:
277+
:lines: 1
278+
279+
.. literalinclude:: /references/default_pipeline.yml
280+
:language: YAML
281+
:start-at: FSL-BET:
282+
:end-before: FSL_AFNI:
228283

229284
Functional to Template Registration
230285
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -254,4 +309,15 @@ Functional to Template Registration
254309

255310
.. literalinclude:: /references/default_pipeline.yml
256311
:language: YAML
257-
:lines: 482-483,602-603,636-812
312+
:start-at: registration_workflows:
313+
:lines: 1
314+
315+
.. literalinclude:: /references/default_pipeline.yml
316+
:language: YAML
317+
:start-at: functional_registration:
318+
:lines: 1
319+
320+
.. literalinclude:: /references/default_pipeline.yml
321+
:language: YAML
322+
:start-at: EPI_registration:
323+
:end-before: ANTs_pipelines:

‎docs/_sources/user/futuredocs/epi_distcorr.rst‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@ The parameters provided in the GUI are described below:
1515

1616
.. literalinclude:: /references/default_pipeline.yml
1717
:language: YAML
18-
:lines: 940-967
18+
:start-at: distortion_correction:
19+
:end-before: func_masking:

‎docs/_sources/user/longitudinal.rst‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ Configuring CPAC to Run Longitudinal Preprocessing Pipeline
2626

2727
.. literalinclude:: /references/default_pipeline.yml
2828
:language: YAML
29-
:lines: 162-194
29+
:start-at: longitudinal_template_generation:
30+
:end-before: anatomical_preproc:
3031

3132
References
3233
^^^^^^^^^^

‎docs/_sources/user/nuisance.rst‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,13 @@ Configuring Temporal Filtering Options
133133

134134
.. literalinclude:: /references/default_pipeline.yml
135135
:language: YAML
136-
:lines: 1022-1023,1035-1181
136+
:start-at: nuisance_corrections:
137+
:lines: 1
138+
139+
.. literalinclude:: /references/default_pipeline.yml
140+
:language: YAML
141+
:start-at: 2-nuisance_regression:
142+
:end-before: # OUTPUTS AND DERIVATIVES
137143

138144
An example of nuisance regressors
139145
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

0 commit comments

Comments
 (0)