You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/_sources/developer/nodes.rst
+22-5Lines changed: 22 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,6 @@
1
1
*****
2
2
Nodes
3
3
*****
4
-
5
4
.. _mem_gb:
6
5
7
6
.. _n_procs:
@@ -23,8 +22,10 @@ When a developer creates or modifies a Node in C-PAC, a ``mem_gb`` and ``n_procs
23
22
24
23
For nodes that will use a varying amount of memory depending on the node's input data, the optional parameter ``mem_x`` takes a tuple of ``(memory multiplier, input file, multiplier mode)`` where ``memory multiplier`` is a number and ``input file`` is the string name of the Node input to multiply such that the memory estimate returned by the ``mem_gb`` attribute is the ``mem_gb`` argument plus ``memory multiplier`` times the dimensions of the ``input file`` as specified in the ``multiplier mode`` (``xyzt`` (spatial × temporal; default), ``xyz`` (spatial), or just ``t`` (temporal)).
25
24
26
-
.. note::
27
-
``mem_x`` is a new parameter in C-PAC v1.8.1 and subject to change in future releases as we continue to `develop methods for setting data- and operation-dependent memory estimates <https://github.com/FCP-INDI/C-PAC/issues/1509>`_.
25
+
26
+
.. note::
27
+
``mem_x`` is a new parameter in C-PAC v1.8.1 and subject to change in future releases as we continue to `develop methods for setting data- and operation-dependent memory estimates <https://github.com/FCP-INDI/C-PAC/issues/1509>`_.
The Nipype utility function :py:func:`~nipype.utils.draw_gantt_chart.log_to_dict` reads a log file generated by ``log_nodes_cb`` to a Python dictionary.
When performing reproducibility/variability experiments, it is important to isolate sources of variability. One such source is random state.
5
+
6
+
Users can fix the random state of C-PAC's execution by specifying a random seed. When adding a Node that should accept a user-specified random seed, add
7
+
8
+
* the :py:class:`nipype.interfaces.base.core.Interface` and the corresponding flags to add/remove to set the random seed, or
9
+
* in the case of a :py:class:`CPAC.utils.interfaces.function.Function` Node, the Function node's function and a function to apply to that function definition to set the random seed
10
+
11
+
to :py:func:`CPAC.pipeline.random_state.seed.random_seed_flags`.
Copy file name to clipboardExpand all lines: docs/_sources/user/pipelines/design_a_pipeline.rst
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,21 +13,21 @@ Design A Pipeline
13
13
14
14
C-PAC offers a graphical interface you can use to quickly and easily modify the default pipeline or create your own from scratch: `https://fcp-indi.github.io/C-PAC_GUI/ <https://fcp-indi.github.io/C-PAC_GUI/>`_
15
15
16
-
.. note::
16
+
.. note::
17
+
18
+
Currently the GUI creates a C-PAC v1.6.0 pipeline configuration file. This syntax persisted through v1.7.2 but is deprecated with the release of v1.8.0.
17
19
18
-
Currently the GUI creates a C-PAC v1.6.0 pipeline configuration file. This syntax persisted through v1.7.2 but is deprecated with the release of v1.8.0.
20
+
If given a pipeline file in the older syntax, C-PAC v1.8 will attempt to convert the pipeline configuration file to the new syntax, saving the converted file in your output directory.
19
21
20
-
If given a pipeline file in the older syntax, C-PAC v1.8 will attempt to convert the pipeline configuration file to the new syntax, saving the converted file in your output directory.
22
+
An update to the GUI to create v1.8.0 syntax configuration files is underway.
21
23
22
-
An update to the GUI to create v1.8.0 syntax configuration files is underway.
24
+
The newer (v1.8) syntax will not work with older versions of C-PAC.
23
25
24
-
The newer (v1.8) syntax will not work with older versions of C-PAC.
26
+
See :ref:`using_a_text_editor` for configuring a custom pipeline without the GUI.
27
+
28
+
.. seealso::
25
29
26
-
See :ref:`using_a_text_editor` for configuring a custom pipeline without the GUI.
27
-
28
-
.. seealso::
29
-
30
-
:doc:`Details about mapping the older syntax to the new. </user/pipelines/1.7-1.8-nesting-mappings>`
30
+
:doc:`Details about mapping the older syntax to the new. </user/pipelines/1.7-1.8-nesting-mappings>`
Copy file name to clipboardExpand all lines: docs/_sources/user/pipelines/pipeline_config.rst
+43-6Lines changed: 43 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,15 +37,10 @@ Definitions
37
37
.. include:: /glossary/template.rst
38
38
:start-line: 3
39
39
40
-
.. rubric:: Reference
41
-
42
-
.. bibliography:: /references/glossary.bib
43
-
:style: cpac_docs_style
44
-
:cited:
45
-
:keyprefix: glossary-
46
40
47
41
.. include:: design_a_pipeline.rst
48
42
43
+
49
44
.. _using_a_text_editor:
50
45
51
46
Using a Text Editor
@@ -97,6 +92,39 @@ Why a list?
97
92
'''''''''''
98
93
You may notice as you learn about the settings for various outputs that many of the values for C-PAC's configurable settings are stored in lists (i.e., multiple values are separated by commas and surrounded by square brackets). Such lists containing ``On``s and ``Off``s (for ``True`` and ``False`` respectively) allow you to toggle on multiple options at the same time, and branch a pipeline into two different analysis strategies. See the `developer documentation <http://fcp-indi.github.io/docs/developer/workflows/cpac_pipeline.html>`_ for more information about how lists are used in C-PAC.
* :doc:`Amplitude of Low Frequency Fluctuations (ALFF) and fractional ALFF (fALFF) </user/alff>` - Measure the power of slow fluctuations in brain activity.
124
+
* :doc:`Regional Homogeneity (ReHo) </user/reho>` - Measure the similarity of activity patterns across neighboring voxels.
125
+
* :doc:`Network Centrality </user/centrality>` - Analyze the structure of functional networks.
126
+
127
+
100
128
.. toctree::
101
129
:maxdepth:2
102
130
@@ -106,3 +134,12 @@ You may notice as you learn about the settings for various outputs that many of
:end-before: # Select Off if you intend to run CPAC on a single machine.
17
+
18
+
or on the command line with ``--random_seed $SEED``.
19
+
20
+
Valid options are positive integers up to 2,147,483,647 or the word 'random' (which will set an integer in that range). If not specified, a seed will not be set, and each relevant process will run with an undocumented random seed.
21
+
22
+
When a seed is set, a ``random.log`` file, including the constant seed and each node the seed was applied to, will be generated in the logging directory.
23
+
24
+
The following processes currently support this feature:
25
+
26
+
.. exec::
27
+
from CPAC.pipeline.random_state.seed import random_seed_flags, \
Copy file name to clipboardExpand all lines: docs/_sources/user/singularity.rst
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,13 +3,13 @@ Run on Singularity
3
3
4
4
For those who wish to avoid the administrator rights requirements often associated with Docker usage (or the security hazards when used on a shared computing system), `Singularity <https://singularityhub.github.io/singularityhub-docs/>`_ is a good option. Singularity is a container solution just like Docker, except it is designed specifically to offer secure deployment on shared cluster environments.
5
5
6
-
You can pull a Singularity container much like how you would pull a Docker container, except you are pulling from `Singularity Hub <https://singularityhub.github.io/singularityhub-docs/>`_:
6
+
You can pull a Singularity container much like how you would pull a Docker container:
7
7
8
8
.. code-block:: console
9
9
10
-
singularity pull shub://FCP-INDI/C-PAC
10
+
singularity pull docker://fcpindi/c-pac:latest
11
11
12
-
This will produce a Singularity container image in your current directory, named something like ``FCP-INDI-C-PAC-master-latest.simg``.
12
+
This will produce a Singularity container image in your current directory, named something like ``c-pac_latest.sif``. You can instead specify the local filename you want before the ``docker://`` URI.
13
13
14
14
Running a Singularity image is similar to running a Docker image, except ``-B`` maps local directories to a location in the Singularity image instead of ``-v``:
0 commit comments