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
Tags in the format `v.*-source` will build docs for the given version.
13
33
@@ -21,6 +41,7 @@ Steps to build a release:
21
41
5. (Force) push to the remote tag (`git push origin v`version`-source`).
22
42
6. CircleCI should deploy the versioned documentation. If the version tag is the newest, it should also overwrite `latest` with these documents.
23
43
44
+
<aid="markdown-guidelines"name="guidelines"></a>
24
45
## Guidelines
25
46
26
47
- Only write a document once, and liberally use the [reStructured Text `.. include::` directive](https://docutils.sourceforge.io/docs/ref/rst/directives.html#include) to include that document where appropriate.
@@ -37,16 +58,50 @@ Steps to build a release:
37
58
'
38
59
"
39
60
```
40
-
- Let CircleCI build your drafts / works-in-progress
41
-
* Build environment will match actual docs build environment
1. In your fork's settings, set the GitHub Pages `source` to `master` branch
45
-

46
-
1. Add your project on CircleCI
47
-
1. Merge your draft / work-in-progress into your fork's `source` branch. Make sure you push to your fork and not the main repository's `source` branch.
48
-
1. Your fork will publish at `https://[your_GitHub_username].github.io/fcp-indi.github.com/`.
1. In your fork's settings, set the GitHub Pages `source` to `master` branch
71
+

72
+
1. Add your project on CircleCI
73
+
1. Merge your draft / work-in-progress into your fork's `source` branch. Make sure you push to your fork and not the main repository's `source` branch.
74
+
1. Your fork will publish at `https://[your_GitHub_username].github.io/fcp-indi.github.com/`.
This documentation aspires to rely on a [single source of truth](https://en.wikipedia.org/wiki/Single_source_of_truth) where possible. To this end, building this documentation requires an installation of the version of [C-PAC](https://github.com/FCP-INDI/C-PAC) that is being documented.
79
+
80
+
Steps to build this documentation locally:
81
+
1. Clone this repository.
82
+
1._(optional)_ <details><summary>Locally replicate the step "👊 Running cpac commands" from [.circleci/config](./.circleci/config) to generate [cpac](https://pypi.org/project/cpac/) usage strings.</summary>
83
+
Either perform this "👊 Running cpac commands" step in a separate Python environment or uninstall cpac after generating the usage string(s).
84
+
1._(optional)_ Create an environment for cpac and activate this environment.
85
+
1.`pip install cpac`
86
+
1. If you don't have a local container for the version of C-PAC you're documenting, `cpac pull` to download the latest or `cpac pull --tag $TAG` to pull a specific version.
87
+
1. Generate ReStructuredText documents with cpac usage strings:
cpac utils --help | sed -e "s/.*/ &/">> docs/_sources/user/utils/help.rst
98
+
```
99
+
1. `deactivate` your cpac environment if you used a separate environment or `pip uninstall cpac`.
100
+
</details>
101
+
1. Locally install [C-PAC](https://github.com/FCP-INDI/C-PAC) from source.
102
+
1. Run `./bin/build $VERSION` where `$VERSION` is the version to build (`nightly`, `latest`, or [<span title='Semantic Versioning'>semver</span>](https://semver.org/) for production, but this string can be anything you want locally). 
- SVGs exported from Lucidchart have scaling coded inin`width` and `height` XML attributes. Add the XML attributes `preserveAspectRatio="xMinYMin meet"` and `viewBox` to the SVG element in the actual SVG files:
@@ -64,6 +119,7 @@ where `{width}` and `{height}` are the values already present in the existing `w
[sphinxcontrib-bibtex](https://sphinxcontrib-bibtex.readthedocs.io/) is installed and configured. This extension creates links between the citations and the reference in the reference list and formats citations in referenced BibTeX files using built-in or [custom styles](https://github.com/FCP-INDI/fcp-indi.github.com/blob/source/docs/_sources/references/style.py). To use this Sphinx extension,
@@ -114,6 +170,7 @@ The rendered file should look something like
114
170
>
115
171
><a name="ref1" href="#backref1">[1]</a> Craddock, C., Sikka, S., Cheung, B., Khanuja, R., Ghosh, S. S., Yan, C., Li, Q., Lurie, D., Vogelstein, J., Burns, R., Colcombe, S., Mennes, M., Kelly, C., Di Martino, A., Castellanos, F. X., and Milham, M. 2013. [Towards automated analysis of connectomes: the Configurable Pipeline forthe Analysis of Connectomes (C-PAC).](http://www.frontiersin.org/neuroinformatics/10.3389/conf.fninf.2013.09.00042/full) *Frontiersin neuroinformatics* 42. doi:[10.3389/conf.fninf.2013.09.00042](https://dx.doi.org/10.3389/conf.fninf.2013.09.00042)
* Because [C-PAC](https://github.com/FCP-INDI/C-PAC.git) and [cpac](https://github.com/FCP-INDI/cpac.git) have conflicting commandline commands, we first run any `cpac` commands in a virtual environment and spoof the `command-output` directive with `code-block` like
#. **FreeSurfer - [On,Off]:** FreeSurfer recon-all. Default is Off.
19
+
20
+
Configuration Without the GUI
21
+
""""""""""""""""""""""""""""""
22
+
23
+
The following nested key/value pairs that will be set to these defaults if not defined in your :doc:`pipeline configuration YAML </user/pipelines/pipeline_config>`:
Copy file name to clipboardExpand all lines: docs/_sources/user/output_dir.rst
+35-6Lines changed: 35 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,33 @@
1
1
Check Your Outputs
2
-
=============================
2
+
==================
3
+
4
+
.. _1.8-outputs:
5
+
6
+
C-PAC ≥ 1.8.0
7
+
^^^^^^^^^^^^^
8
+
9
+
The output structure of C-PAC ≥ 1.8.0 is based on `the Brain Imaging Data Structure v1.6.0-dev BIDS Derivatives specification <https://bids-specification.readthedocs.io/en/latest/05-derivatives/01-introduction.html>`_. The output directory structure is a simple tree like
10
+
11
+
.. code-block:: text
12
+
13
+
└── pipeline-name
14
+
├── log
15
+
│ └── pipeline_pipeline-name
16
+
│ └── subject_session
17
+
└── output
18
+
└── cpac_pipeline-name
19
+
└── subject_session
20
+
├── anat
21
+
└── func
22
+
23
+
.. note::
24
+
25
+
If any nodes use more memory at runtime than C-PAC estimates, C-PAC will report those instances near the end of the log in the terminal and in a log file called ``callback.log.resource_overusage.txt`` (beginning in v1.8.0). Please `report excessive memory usage <https://github.com/FCP-INDI/C-PAC/issues/new>`_ to the C-PAC team.
26
+
27
+
.. _1.7-outputs:
28
+
29
+
C-PAC ≤ 1.7.2
30
+
^^^^^^^^^^^^^
3
31
4
32
A standard C-PAC run output directory for one participant-session is shown below. A directory like this will exist for each participant-session in the run.
5
33
@@ -12,7 +40,7 @@ This is with all derivatives enabled, and the output, smoothing, and z-scoring o
12
40
.. figure:: /_images/output_dir_default.png
13
41
14
42
Descriptions
15
-
^^^^^^^^^^^^^^^^^^^
43
+
------------
16
44
17
45
The output directory folders below are produced during a default run. If you enabled the additional outputs and have the full directory, proceed to the "Full Directory" section further below for descriptions of these extra outputs.
18
46
@@ -73,7 +101,7 @@ The output directory folders below are produced during a default run. If you ena
73
101
* **QC-interface_{scan}_{nuisance/preprocessing strategy}.html**: :doc:`QC Interface HTML page </user/qc_interface>` for each scan and nuisance/preprocessing strategy combination.
74
102
75
103
Sub-Directories
76
-
^^^^^^^^^^^^^^^^^^^^^^^^^^
104
+
---------------
77
105
78
106
Each folder in the output directory may have a different amount of sub-directories, depending on how many functional scans specified in the data configuration, or how many pipeline customizations and forked strategies you specified in the pipeline configuration. For example, if there are multiple functional scans, you'll see a folder for each one if you enter any of the functional-derived outputs' folders, as seen below:
79
107
@@ -88,7 +116,8 @@ And sub-directories for each ROI provided for a derivative that may take in mult
88
116
.. figure:: /_images/output_dir_masks.png
89
117
90
118
Full Directory
91
-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
119
+
--------------
120
+
92
121
The C-PAC output directory is considerably larger when "Extra Functional Outputs", "Debugging Outputs", and both Smoothed/Non-smoothed and both z-score standardized/raw outputs are all enabled.
93
122
94
123
In addition to the output directories described above under "Descriptions", the following outputs are also written to the output directory when all of the output options mentioned above are enabled:
@@ -142,7 +171,7 @@ In addition to the output directories described above under "Descriptions", the
142
171
* **reho**: The direct output of ReHo, before warping to standard space.
143
172
144
173
Visual Quality Control
145
-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
174
+
----------------------
146
175
147
176
C-PAC's data quality control (QC) interface allows you to take a quick glance at the overall quality of your results (registration quality, signal-to-noise ratio, movement plots, computed derivative histograms, etc.). In its current form, the QC interface is a collection of HTML pages - one for each participant-scan-nuisance regression strategy combination, and they can be found in the Output Directory under each participant's directory level.
148
177
@@ -151,7 +180,7 @@ C-PAC's data quality control (QC) interface allows you to take a quick glance at
151
180
In future releases, more visualizations will be introduced, and the QC pages will be integrated into an easy-to-use dashboard that is updated throughout the process of your C-PAC run, and also provides information on the status of the pipeline. As always, we greatly appreciate any ideas, suggestions, or items on your wishlist and `take them into consideration <https://groups.google.com/forum/#!forum/cpax_forum>`_.
0 commit comments