Skip to content

Commit d74fd95

Browse files
committed
Tweaks to subject list config page.
1 parent 8a2bfd5 commit d74fd95

38 files changed

+2829
-470
lines changed
77.2 KB
Loading
-3.67 KB
Loading
16 KB
Binary file not shown.

docs/user/_sources/.index.txt.swp

0 Bytes
Binary file not shown.
-3.67 KB
Loading

docs/user/_sources/index.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ User Guide Index
7575

7676
Installing C-PAC <install>
7777
Setting Up A Subject List <subject_list_config>
78-
Setting Up A Pipeline <pipeline_config>
78+
Setting Up A Pipeline Configuration <pipeline_config>
7979
Setting Up Group Analysis <group_analysis>
8080
Running C-PAC <running>
8181
Using C-PAC in the AWS Cloud <cloud>

docs/user/_sources/subject_list_config.txt

Lines changed: 22 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,13 @@ An example of such a YAML file can be found `here <https://raw.githubusercontent
3434
| | A value of 'None' means all sites will be run. This list can also be read from a text file. | file with site IDs separated by new lines, or 'None'. |
3535
+-------------------------------+------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------+
3636
| scanParametersCSV | Path to a CSV specifying the slice time acquisition parameters for scans. If set to 'None', the NifTI headers will be used. | A path or 'None'. |
37+
| | Instructions for creating such a file can be found :doc:`here </func>`. | |
3738
+-------------------------------+------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------+
3839
| outputSubjectListLocation | The directory where the subject list will be generated. | A path. |
3940
+-------------------------------+------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------+
4041
| subjectListName | A name for the subject list. | A list containing a string (e.g.,['ABIDE']). |
4142
+-------------------------------+------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------+
42-
43+
4344
Generating Subject Lists with the Data Configuration File
4445
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4546
When you are done setting up the data configuration file, navigate in a terminal to the directory where you would like to store your subject list. Then, open iPython by typing :file:`ipython` and run one of the following commands from the iPython prompt.
@@ -72,12 +73,27 @@ First, open the C-PAC GUI by entering the command ``cpac_gui`` in a terminal win
7273

7374
.. figure:: /_images/main_gui.png
7475

75-
Now, to generate a subject list file, click on the *New* button next to the *Subject Lists* box. This will bring up the following dialog window:
76+
Now, to generate a subject list file, click on the *New* button next to the *Subject Lists* box. This will bring up the following dialog window, which will allow you to define the parameters of the data configuration YAML:
7677

7778
.. figure:: /_images/subject_list_gui.png
7879

79-
Each of the options in this window will now be described in the sections below.
80+
#. **Anatomical File Path Template - [text]:** A file path template for anatomical scans (see below for how to define templates).
81+
82+
#. **Functional File Path Template - [text]:** A file path template for functional scans (see below for how to define templates).
83+
84+
#. **Subjects to Include (Optional) - [text/path]:** An optional comma-separated list of subjects to include (if you wish to include only a subset of subjects whose scans match the templates). A value of 'None' means all subjects will be run. This list can also be read from a text file whose path is given in this field.
85+
86+
#. **Subjects to Exclude (Optional) - [text/path]:** An optional comma-separated list of subjects to exclude (if you wish to exclude only a subset of subjects whose scans match the templates). A value of 'None' means all subjects will be run. This list can also be read from a text file whose path is given in this field.
87+
88+
#. **Sites to Include (Optional) - [text/path]:** An optional comma-separated list of sites to include (if you wish to include only a subset of sites whose scans match the templates). A value of 'None' means all sites will be run. This list can also be read from a text file whose path is given in this field.
89+
90+
#. **Scan Parameters File (Optional) - [path]:** Path to a CSV specifying the slice time acquisition parameters for scans. If set to 'None', the NifTI headers will be used. Instructions for creating such a file can be found :doc:`here </func>`.
8091

92+
#. **Output Directory - [path]:** The directory where the subject list will be generated.
93+
94+
#. **Subject List Name - [text]:** A name for the subject list.
95+
96+
#. **Multiscan Data [checkbox]:** Check this box only if the scans have different slice timing information.
8197

8298
Defining Anatomical and Functional File Path Templates
8399
-------------------------------------------------------
@@ -90,8 +106,8 @@ File path templates are defined by adding wildcard characters (``%s``) to the fi
90106

91107
Then the file path templates would would be::
92108

93-
anatomicalTemplate = '/home/data/%s/%s/anat/mprage.nii.gz'
94-
functionalTemplate = '/home/data/%s/%s/func/rest.nii.gz'
109+
anatomicalTemplate : /home/data/%s/%s/anat/mprage.nii.gz
110+
functionalTemplate : /home/data/%s/%s/func/rest.nii.gz
95111

96112
It should be noted that C-PAC currently requires subject directories to be within a site level directory. If your data set does not contain scans from multiple acquisition sites, we recommend creating a dummy :file:`site_1` directory and placing subject files inside this directory. This peculiarity will be fixed in future versions of C-PAC.
97113

@@ -104,7 +120,7 @@ In cases where file paths differ in more than just the site and subject director
104120

105121
The file path template would be::
106122

107-
functionalTemplate = '/home/data/%s/%s/*_func/session_*/rest_*.nii.gz'
123+
functionalTemplate : /home/data/%s/%s/*_func/session_*/rest_*.nii.gz
108124

109125
As an example of how the templates work, the image below illustrates the file structure used by the `1000 Functional Connectomes <http://fcon_1000.projects.nitrc.org/fcpClassic/FcpTable.html>`_ data release and the resulting file path templates.
110126

@@ -119,13 +135,3 @@ A final example is the file structure used by the `Enhanced Nathan Kline Institu
119135
.. figure:: /_images/nki-rs_template.png
120136

121137
If you experience difficulties defining file path templates, you may want to re-organize your data to match one of the examples above. If you manually define a file path template and encounter an error when attempting to generate subject lists, please :doc:`contact us </help>` and we will be happy to help.
122-
123-
Selectively Include or Exclude Subjects
124-
---------------------------------------
125-
By default, C-PAC will process data for all subjects matching the file templates defined above. In many cases however, you may want to run only a subset of the subjects within a particular data set. In others, you may want to exclude particular subjects from analysis. This can be done by specifying a list of subjects through the :file:`subjectList` or :file:`exclusionSubjectList` options. Lists can be specified either as a text file or directly in :file:`data_config.yml`. Text files should contain one subject ID per line, with each subject ID matching the name of a subject folder. The same steps can used with the :file:`siteList` option to selectively process data from specific acquisition sites.
126-
127-
Set Up Slice Timing Correction
128-
------------------------------
129-
If you wish to run :doc:`Slice Timing Correction </func>`, you must specify the path to a spreadsheet file containing scan acquisition parameters and slice timing information. Instructions for creating this file can be :doc:`found here </func>`, and we provide preconfigured versions for INDI data releases on the :doc:`Preconfigured Files </files>` page. If you do not wish to run Slice Timing Correction, set :file:`scanParametersCSV = None`.
130-
131-

docs/user/alff.html

Lines changed: 40 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
23
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
34

@@ -13,7 +14,7 @@
1314

1415
<script type="text/javascript">
1516
var DOCUMENTATION_OPTIONS = {
16-
URL_ROOT: './',
17+
URL_ROOT: '',
1718
VERSION: '0.3.9 Alpha',
1819
COLLAPSE_INDEX: false,
1920
FILE_SUFFIX: '.html',
@@ -77,14 +78,38 @@ <h2>Configuring CPAC to Run ALFF and f/ALFF<a class="headerlink" href="#configur
7778
<li><strong>f/ALFF High-Pass Cutoff - [decimal]:</strong> Frequency cutoff (in Hz) for the high-pass filter used when calculating f/ALFF.</li>
7879
<li><strong>f/ALFF Low-Pass Cutoff - [decimal]:</strong> Frequency cutoff (in Hz) for the low-pass filter used when calculating f/ALFF</li>
7980
</ol>
80-
<div class="section" id="configuration-using-a-yaml-file">
81-
<h3>Configuration Using a YAML File<a class="headerlink" href="#configuration-using-a-yaml-file" title="Permalink to this headline"></a></h3>
82-
<p>To configure ALFF and f/ALFF options within a YAML file, add the following lines to your file (with appropriate substitutions for paths):</p>
83-
<div class="highlight-python"><div class="highlight"><pre>runALFF : [1]
84-
highPassFreqALFF : [0.01]
85-
lowPassFreqALFF : [0.1]
86-
</pre></div>
87-
</div>
81+
<div class="section" id="configuration-without-the-gui">
82+
<h3>Configuration Without the GUI<a class="headerlink" href="#configuration-without-the-gui" title="Permalink to this headline"></a></h3>
83+
<p>The following key/value pairs must be defined in your <a class="reference internal" href="pipeline_config.html"><em>pipeline configuration YAML</em></a> for C-PAC to run anatomical preprocessing:</p>
84+
<blockquote>
85+
<div><table border="1" class="docutils">
86+
<colgroup>
87+
<col width="13%" />
88+
<col width="52%" />
89+
<col width="35%" />
90+
</colgroup>
91+
<thead valign="bottom">
92+
<tr class="row-odd"><th class="head">Key</th>
93+
<th class="head">Description</th>
94+
<th class="head">Potential Values</th>
95+
</tr>
96+
</thead>
97+
<tbody valign="top">
98+
<tr class="row-even"><td>runALFF</td>
99+
<td>Calculate Amplitude of Low Frequency Fluctuations (ALFF) and and fractional ALFF (f/ALFF) for all voxels.</td>
100+
<td>A list where &#8216;1&#8217; represents &#8216;yes&#8217; and &#8216;0&#8217; represents &#8216;no&#8217; (e.g., &#8216;[1]&#8217;).</td>
101+
</tr>
102+
<tr class="row-odd"><td>highPassFreqALFF</td>
103+
<td>Frequency cutoff (in Hz) for the high-pass filter used when calculating f/ALFF.</td>
104+
<td>A list containing a decimal value (e.g., &#8216;[0.01]&#8217;).</td>
105+
</tr>
106+
<tr class="row-even"><td>lowPassFreqALFF</td>
107+
<td>Frequency cutoff (in Hz) for the low-pass filter used when calculating f/ALFF.</td>
108+
<td>A list containing a decimal value (e.g., &#8216;[0.1]&#8217;).</td>
109+
</tr>
110+
</tbody>
111+
</table>
112+
</div></blockquote>
88113
</div>
89114
</div>
90115
<div class="section" id="references">
@@ -111,10 +136,11 @@ <h2>References<a class="headerlink" href="#references" title="Permalink to this
111136
<h3><a href="index.html">Table Of Contents</a></h3>
112137
<ul>
113138
<li class="toctree-l1"><a class="reference internal" href="install.html">Installing C-PAC</a></li>
114-
<li class="toctree-l1"><a class="reference internal" href="use.html">Using C-PAC</a></li>
115-
<li class="toctree-l1"><a class="reference internal" href="cloud.html">Running C-PAC in the Cloud</a></li>
116-
<li class="toctree-l1"><a class="reference internal" href="preproc.html">Data Preprocessing</a></li>
117-
<li class="toctree-l1"><a class="reference internal" href="outputs.html">Outputs</a></li>
139+
<li class="toctree-l1"><a class="reference internal" href="subject_list_config.html">Setting Up A Subject List</a></li>
140+
<li class="toctree-l1"><a class="reference internal" href="pipeline_config.html">Setting Up A Pipeline Configuration</a></li>
141+
<li class="toctree-l1"><a class="reference internal" href="group_analysis.html">Setting Up Group Analysis</a></li>
142+
<li class="toctree-l1"><a class="reference internal" href="running.html">Running C-PAC</a></li>
143+
<li class="toctree-l1"><a class="reference internal" href="cloud.html">Using C-PAC in the AWS Cloud</a></li>
118144
<li class="toctree-l1"><a class="reference internal" href="files.html">Preconfigured Files</a></li>
119145
<li class="toctree-l1"><a class="reference internal" href="benchmark.html">C-PAC Benchmark</a></li>
120146
<li class="toctree-l1"><a class="reference internal" href="help.html">Troubleshooting and Help</a></li>
@@ -149,7 +175,7 @@ <h3>Navigation</h3>
149175
</div>
150176
<div class="footer">
151177
&copy; Copyright 2015, C-PAC Team.
152-
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.2.3.
178+
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.1.3.
153179
</div>
154180
</body>
155181
</html>

0 commit comments

Comments
 (0)