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: CONTRIBUTING.md
+6-8Lines changed: 6 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,18 +9,16 @@ Please, always base changes on the `source` branch. `master` branch will be over
9
9
Pushes to `source` will rebuild docs at https://fcp-indi.github.io/docs/nightly
10
10
11
11
#### C-PAC release tags
12
-
Pushes to `build-version` will look for a C-PAC version tag (e.g, `v1.7.0`) in a file called `build_version.txt` at the root of the repo.
12
+
Tags in the format `v.*-source` will build docs for the given version.
13
13
14
-
If that file exists and includes only an existing tag, docs should build for the given version.
15
-
16
-
If `build_version.txt` does not exist or the included tag doesn't exist in https://github.com/FCP-INDI/C-PAC/tags, the build should fail.
14
+
If a matching version tag doesn't exist in https://github.com/FCP-INDI/C-PAC/tags, the build should fail.
17
15
18
16
Steps to build a release:
19
17
1. Checkout a commit from the `source` from a time appropriate for documentation for the branch being built/rebuilt.
20
-
2.Name your branch (`git switch -c` or `git checkout -b`) either `build-version` or something more specific
21
-
3.Add a text file `build_version.txt` at the root of the repository in your new branch. This text file should include the version tag for the version of C-PAC and nothing else.
22
-
4.Make any changes you need for the specific version.
23
-
5. (Force) push to the remote branch `build-version`.
18
+
2.If you need to make changes, create a branch (`git switch -c` or `git checkout -b`).
19
+
3.Make any changes you need for the specific version.
20
+
4.Tag the commit that's ready to build (`git tag v`version`-source`)
21
+
5. (Force) push to the remote tag (`git push origin v`version`-source`).
24
22
6. CircleCI should deploy the versioned documentation. If the version tag is the newest, it should also overwrite `latest` with these documents.
Initial preprocessing offers methods like `non-local means filtering <https://www.iro.umontreal.ca/~mignotte/IFT6150/Articles/Buades-NonLocal.pdf>`_ and `N4 bias field correction <https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3071855/>`_ to preprocess anatomical images.
11
+
Initial preprocessing offers methods like `ACPC Alignment <https://doi.org/10.1016/j.neuroimage.2013.04.127>`_ , `non-local means filtering <https://www.iro.umontreal.ca/~mignotte/IFT6150/Articles/Buades-NonLocal.pdf>`_ and `N4 bias field correction <https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3071855/>`_ to preprocess anatomical images.
12
12
13
13
C-PAC provides options for configuring initial preprocessing - users can select:
@@ -21,10 +22,22 @@ Configuring CPAC to run initial preprocessing:
21
22
22
23
.. figure:: /_images/anat_init_options.png
23
24
25
+
#. **ACPC Alignment - [On,Off]:** Anterior Commissure - Posterior Comissure (ACPC) alignment. Default is Off. If choose 'on', clicking on the setting icon will bring up a dialog where you can set ACPC alignment parameters.
26
+
24
27
#. **Non-Local Means Filtering - [On,Off]:** ANTs DenoiseImage. Default is Off.
25
28
26
29
#. **N4 Bias Field Correction - [On,Off]:** ANTs N4BiasFieldCorrection - a variant of the popular N3 (nonparametric nonuniform normalization) retrospective bias correction algorithm. Default is Off.
27
30
31
+
Configuring ACPC Alignment options:
32
+
""""""""""""""""""""""""""""""""""""""
33
+
**Note:** These options are pre-set for ACPC Alignment's default values. These do not need to be modified unless you are looking to optimize the results of ACPC alignment for your particular dataset.
34
+
35
+
.. figure:: /_images/acpc_gui.png
36
+
37
+
#. **ACPC Brain Size - [150]:** ACPC size of brain in z-dimension in mm. Default: 150mm for human data, 70mm for macaque data.
38
+
#. **ACPC Aligned Skull Template - [path]:** Skull template to be used for ACPC alignment. It is not necessary to change this path unless you intend to use a non-standard template.
39
+
#. **ACPC Aligned Brain Template - [path]:** Brain template to be used for ACPC alignment. For human data, it can be 'None'. It is not necessary to change this path unless you intend to use a non-standard template.
C-PAC uses `FSL/FAST <http://fsl.fmrib.ox.ac.uk/fsl/fslwiki/FAST>`_ to automatically segment brain images into white matter, gray matter, and CSF. This is done using probability maps that contain information about the likelihood that a given voxel will be of a particular tissue type. Users specify a probability threshold such that voxels meeting a minimum probability of being a particular tissue will be classified as such. This results in masks containing voxels of only a single tissue type.
Please report errors on the `C-PAC github page issue tracker <https://github.com/FCP-INDI/C-PAC/issues>`_. Please use the `C-PAC google group <https://groups.google.com/forum/#!forum/cpax_forum>`_ for help using C-PAC and this application.
Copy file name to clipboardExpand all lines: docs/_sources/user/help.rst
+12-8Lines changed: 12 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,24 +26,28 @@ Crash files are generated by Nipype, and can be viewed from the terminal by typi
26
26
Where :file:`crash-file.pklz` is the name of the crash file you wish to view.
27
27
28
28
Common Issues
29
-
^^^^^^^^^^^^^^^^^^^^^^^^^^^
29
+
^^^^^^^^^^^^^
30
30
31
-
#. My run is crashing with the crash files indicating a memory error. What is going on?
31
+
#. I have a pipeline configuration that used to work, but now I'm getting errors that start with ``OSError: File /ndmg_atlases/label/Human/``. Why?
32
32
33
-
This issue often occurs when scans are resampled to a higher resolution. This is because functional images, the template that you are resampling to, and the resulting generated image are all loaded into memory at various points in the C-PAC pipeline. Typically these images are compressed, but they will be uncompressed when loaded. If the amount of memory required to load the images exceeds the amount of memory available, C-PAC will crash.
33
+
.. include:: /user/ndmg_atlases.rst
34
34
35
-
For instance, suppose you are resampling a 50 MB (100 MB uncompressed) resting-state scan with 3 mm isotropic voxels to a 3 MB (15 MB uncompressed) 1 mm template. By dividing the voxel volume for the original resting state scan by the voxel volume for the template, you can determine that the voxel count of the resampled resting-state scan will be 27 times greater. Therefore, if you multiply the uncompressed file size by 27 you can estimate that the resampled scan alone will take up 2.7 GB of space. You will need at least this much RAM for C-PAC to load the scan. If you are running multiple subjects simultaneously, you would need to multiply this estimate by the number of subjects. Note that the template, original image, and any other open applications will also have their own memory requirements, so the estimate would be closer to 2.8 GB per subject plus however much RAM is used before C-PAC is started (assuming no new applications are started mid-run).
35
+
#. My run is crashing with the crash files indicating a memory error. What is going on?
36
36
37
-
To avoid this error, you will need to either get more RAM, run fewer subjects at once, or consider downsampling your template to a lower resolution.
37
+
This issue often occurs when scans are resampled to a higher resolution. This is because functional images, the template that you are resampling to, and the resulting generated image are all loaded into memory at various points in the C-PAC pipeline. Typically these images are compressed, but they will be uncompressed when loaded. If the amount of memory required to load the images exceeds the amount of memory available, C-PAC will crash.
38
+
39
+
For instance, suppose you are resampling a 50 MB (100 MB uncompressed) resting-state scan with 3 mm isotropic voxels to a 3 MB (15 MB uncompressed) 1 mm template. By dividing the voxel volume for the original resting state scan by the voxel volume for the template, you can determine that the voxel count of the resampled resting-state scan will be 27 times greater. Therefore, if you multiply the uncompressed file size by 27 you can estimate that the resampled scan alone will take up 2.7 GB of space. You will need at least this much RAM for C-PAC to load the scan. If you are running multiple subjects simultaneously, you would need to multiply this estimate by the number of subjects. Note that the template, original image, and any other open applications will also have their own memory requirements, so the estimate would be closer to 2.8 GB per subject plus however much RAM is used before C-PAC is started (assuming no new applications are started mid-run).
40
+
41
+
To avoid this error, you will need to either get more RAM, run fewer subjects at once, or consider downsampling your template to a lower resolution.
38
42
39
43
40
44
.. _working_dir_crashes:
41
45
42
46
#. I'm re-running a pipeline, but I am receiving many crashes. Most of these crashes tell me that a file that has been moved or no longer exists is being used as an input for a step in the C-PAC pipeline. What is going on and how can I tell C-PAC to use the correct inputs?
43
47
44
-
One of the features of Nipype (which C-PAC is built upon) is that steps that have been run before are not re-run when you re-start a pipeline. Nipype accomplishes this by associating a value with a step based on the properties of that step (i.e., hashing). Nipype has two potential values that it can associate with a step: a value based on the size and date of the files created by the step, and a value based upon the data present within the files themselves. The first value is what C-PAC uses with its pipelines, since it is much more computationally practical. Since this value only looks at the size and date of files to determine whether or not a step has been run, it will not see that the file's path has changed, and it will assume that all paths are consistent with the path structure from when the pipeline was run before.
45
-
46
-
To work around this error, you will need to delete the working directory associated with the previous run and create a new directory to replace it for the new run.
48
+
One of the features of Nipype (which C-PAC is built upon) is that steps that have been run before are not re-run when you re-start a pipeline. Nipype accomplishes this by associating a value with a step based on the properties of that step (i.e., hashing). Nipype has two potential values that it can associate with a step: a value based on the size and date of the files created by the step, and a value based upon the data present within the files themselves. The first value is what C-PAC uses with its pipelines, since it is much more computationally practical. Since this value only looks at the size and date of files to determine whether or not a step has been run, it will not see that the file's path has changed, and it will assume that all paths are consistent with the path structure from when the pipeline was run before.
49
+
50
+
To work around this error, you will need to delete the working directory associated with the previous run and create a new directory to replace it for the new run.
0 commit comments