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,12 +41,13 @@ 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.
27
48
- Use absolute paths for `.. include::`s. That way the path will resolve correctly regardless of differences in nesting levels.
28
49
- Include any source documents that you want built in at least one [`toctree`](https://www.sphinx-doc.org/en/1.8/usage/restructuredtext/directives.html#directive-toctree). Use the `:hidden:` option if you don't want it linked in an actual table of contents in the document with the `toctree`.
29
-
- Use consistent section title indicators throughout a sourcetree. [fcp-indi.github.com/docs/user](https://fcp-indi.github.com/docs/user) currently has the following hierarchy (top to bottom):
50
+
- Use consistent section title indicators throughout a sourcetree. [fcp-indi.github.io/docs/user](https://fcp-indi.github.io/docs/user) currently has the following hierarchy (top to bottom):
30
51
```
31
52
=
32
53
^
@@ -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.io/`.
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,16 +119,17 @@ 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,
125
+
[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.io/blob/source/docs/_sources/references/style.py). To use this Sphinx extension,
70
126
71
-
1. Include your citations in a BibTeX file (see the `*.bib` files in [docs/_sources/references](https://github.com/FCP-INDI/fcp-indi.github.com/blob/source/docs/_sources/references) for examples).
127
+
1. Include your citations in a BibTeX file (see the `*.bib` files in [docs/_sources/references](https://github.com/FCP-INDI/fcp-indi.github.io/blob/source/docs/_sources/references) for examples).
72
128
2. Using the key (the text between the opening `{` and the first `,`in a BibTeX entry) use the ReStructuredText syntax `` :cite:`key``` to cite your reference in a ReStructuredText file.
73
129
3. Include a `.. bibliography::` directive somewhere on any page that you want to use this extension to format references and create two-way links between the references and citations. Specify the (one) BibTeX file forthis reference list any formatting for the reference listin this directive. Both `:cite:` and `.. bibliography::` need to be rendered on the same page for the links to generate.
74
130
4. If you will (or might) use more than one `.. bibliography::` directive on a single rendered page (including `.. include::` directives), choose a prefix forthe keys and include that prefixin both the `:cite:` role (like `` :cite:`prefix-key```) and the bibliography directive (like `:keyprefix: prefix-`).
75
131
5. If you want to include a header over a reference list, use the `.. rubric::` directive above its `.. bibliography` directive.
76
-
6. If the entry type (e.g., `book`, `article`, `misc`) of any of the entries in your BibTeX file(s) is not included in [docs/_sources/references/style.py](https://github.com/FCP-INDI/fcp-indi.github.com/blob/source/docs/_sources/references/style.py), add a `get_{entry_type}_template`[Pybtex](https://pybtex.org) method to `CPAC_DocsStyle`.
132
+
6. If the entry type (e.g., `book`, `article`, `misc`) of any of the entries in your BibTeX file(s) is not included in [docs/_sources/references/style.py](https://github.com/FCP-INDI/fcp-indi.github.io/blob/source/docs/_sources/references/style.py), add a `get_{entry_type}_template` [Pybtex](https://pybtex.org) method to `CPAC_DocsStyle`.
77
133
78
134
For example, if you have a BibTeX file called `cpac_citation.bib` that contains
79
135
@@ -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
119
176
```RST
@@ -125,5 +182,5 @@ The rendered file should look something like
125
182
:shell:
126
183
:ellipsis: 0,9
127
184
```
128
-
*:heavy_plus_sign: Check [`.circleci/config.yml`](https://github.com/FCP-INDI/fcp-indi.github.com/blob/source/.circleci/config.yml) of the branch you're working from for build dependencies.
185
+
* :heavy_plus_sign: Check [`.circleci/config.yml`](https://github.com/FCP-INDI/fcp-indi.github.io/blob/source/.circleci/config.yml) of the branch you're working from for build dependencies.
129
186
* :octocat: Set an environment variable `GITHUBTOKEN` to a [personal access token](https://help.github.com/en/github/authenticating-to-github/creating-a-personal-access-token-for-the-command-line) to increase [your API rate limit](https://developer.github.com/v3/#rate-limiting) from 60 to 5000 requests per hour (for getting [release notes from GitHub](https://github.com/FCP-INDI/C-PAC/releases)).
Copy file name to clipboardExpand all lines: docs/_sources/user/alff.rst
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ ALFF is defined as the total power within the frequency range between 0.01 and 0
9
9
10
10
Computation and Analysis Considerations
11
11
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12
-
All computations are performed in a subject's native space. After transforming voxel time series frequency information into the power domain, calculation of these measures is relatively simple. ALFF is calculated as the sum of amplitudes within a specific low frequency range. f/ALFF is calculated as a fraction of the sum of amplitudes across the entire frequency range detectable in a given signal. For both measures, amplitudes in subject-level maps are transformed into Z-scores to create standardized subject-level maps. Anatomical images and Z-score maps are then transformed into MNI152 standard space. For more detail on how CPAC computes these steps, please see the `ALFF and f/ALFF Page of the developer documentation <http://fcp-indi.github.com/docs/developer/workflows/alff.html>`_.
12
+
All computations are performed in a subject's native space. After transforming voxel time series frequency information into the power domain, calculation of these measures is relatively simple. ALFF is calculated as the sum of amplitudes within a specific low frequency range. f/ALFF is calculated as a fraction of the sum of amplitudes across the entire frequency range detectable in a given signal. For both measures, amplitudes in subject-level maps are transformed into Z-scores to create standardized subject-level maps. Anatomical images and Z-score maps are then transformed into MNI152 standard space. For more detail on how CPAC computes these steps, please see the `ALFF and f/ALFF Page of the developer documentation <http://fcp-indi.github.io/docs/developer/workflows/alff.html>`_.
13
13
14
14
Though both ALFF and f/ALFF are sensitive mostly to signal from gray matter, ALFF is more prone to noise from physiological sources, particularly near the ventricles and large blood vessels (Zuo et al., 2008;2010). The figure below (from Zuo et al., 2010) shows areas in which ALFF shows higher amplitude than f/ALFF, as well as the relative sensitivity of these measures to gray matter.
#. **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>`:
0 commit comments