# JSON full listing

### JSON variables

:blue\_circle: Primary key\
:red\_circle: Required\
:yellow\_circle: Computed (squirrel writer/reader should handle these variables)

## analysis

<table data-header-hidden data-full-width="true"><thead><tr><th width="215" align="right"></th><th width="108.00000000000003"></th><th width="102"></th><th></th></tr></thead><tbody><tr><td align="right"><strong>Variable</strong></td><td><strong>Type</strong></td><td><strong>Default</strong></td><td><strong>Description</strong></td></tr><tr><td align="right"><code>DateStart</code></td><td>date</td><td><span data-gb-custom-inline data-tag="emoji" data-code="1f534">🔴</span></td><td>Datetime of the start of the analysis.</td></tr><tr><td align="right"><code>DateEnd</code></td><td>date</td><td></td><td>Datetime of the end of the analysis.</td></tr><tr><td align="right"><code>DateClusterStart</code></td><td>date</td><td></td><td>Datetime the job began running on the cluster.</td></tr><tr><td align="right"><code>DateClusterEnd</code></td><td>date</td><td></td><td>Datetime the job finished running on the cluster.</td></tr><tr><td align="right"><code>Hostname</code></td><td>string</td><td></td><td>If run on a cluster, the hostname of the node on which the analysis run.</td></tr><tr><td align="right"><code>PipelineName</code></td><td>string</td><td><span data-gb-custom-inline data-tag="emoji" data-code="1f534">🔴</span> <span data-gb-custom-inline data-tag="emoji" data-code="1f535">🔵</span></td><td>Name of the pipeline used to generate these results.</td></tr><tr><td align="right"><code>PipelineVersion</code></td><td>number</td><td><code>1</code></td><td>Version of the pipeline used.</td></tr><tr><td align="right"><code>RunTime</code></td><td>number</td><td><code>0</code></td><td>Elapsed wall time, in seconds, to run the analysis after setup.</td></tr><tr><td align="right"><code>SeriesCount</code></td><td>number</td><td><code>0</code></td><td>Number of series downloaded/used to perform analysis.</td></tr><tr><td align="right"><code>SetupTime</code></td><td>number</td><td><code>0</code></td><td>Elapsed wall time, in seconds, to copy data and set up analysis.</td></tr><tr><td align="right"><code>Status</code></td><td>string</td><td></td><td>Status, should always be ‘complete’.</td></tr><tr><td align="right"><code>StatusMessage</code></td><td>string</td><td></td><td>Last running status message.</td></tr><tr><td align="right"><code>Successful</code></td><td>bool</td><td></td><td>Analysis ran to completion without error and expected files were created.</td></tr><tr><td align="right"><code>Size</code></td><td>number</td><td><span data-gb-custom-inline data-tag="emoji" data-code="1f7e1">🟡</span></td><td>Size in bytes of the analysis.</td></tr><tr><td align="right"><code>VirtualPath</code></td><td>string</td><td><span data-gb-custom-inline data-tag="emoji" data-code="1f7e1">🟡</span></td><td>Relative path to the data within the package.</td></tr></tbody></table>

## data

<table data-full-width="true"><thead><tr><th width="254">Variable</th><th width="168.33333333333331">Type</th><th width="123">Default</th><th>Description</th></tr></thead><tbody><tr><td><code>GroupAnalysisCount</code></td><td>number</td><td><span data-gb-custom-inline data-tag="emoji" data-code="1f7e1">🟡</span></td><td>Number of group analyses.</td></tr><tr><td><code>SubjectCount</code></td><td>number</td><td><span data-gb-custom-inline data-tag="emoji" data-code="1f7e1">🟡</span></td><td>Number of subjects in the package.</td></tr><tr><td><a href="/pages/GbYVqd9e5RufXv4Chg1r">subjects</a></td><td>JSON array</td><td></td><td>Array containing the subjects.</td></tr><tr><td><a href="/pages/LsaHjD85HZFSw6wKHzpq">group-analysis</a></td><td>JSON array</td><td></td><td>Array containing group analyses.</td></tr></tbody></table>

## data-dictionary

<table data-full-width="true"><thead><tr><th width="256" align="right">Variable</th><th width="131.00000000000003">Type</th><th width="89">Default</th><th>Description</th></tr></thead><tbody><tr><td align="right"><code>DataDictionaryName</code></td><td>string</td><td><span data-gb-custom-inline data-tag="emoji" data-code="1f534">🔴</span></td><td>Name of this data dictionary.</td></tr><tr><td align="right"><code>NumFiles</code></td><td>number</td><td><span data-gb-custom-inline data-tag="emoji" data-code="1f7e1">🟡</span></td><td>Number of files contained in the experiment.</td></tr><tr><td align="right"><code>Size</code></td><td>number</td><td><span data-gb-custom-inline data-tag="emoji" data-code="1f7e1">🟡</span></td><td>Size, in bytes, of the experiment files.</td></tr><tr><td align="right"><code>VirtualPath</code></td><td>string</td><td><span data-gb-custom-inline data-tag="emoji" data-code="1f7e1">🟡</span></td><td>Path to the data-dictionary within the squirrel package.</td></tr><tr><td align="right"><mark style="color:blue;">data-dictionary-item</mark></td><td>JSON array</td><td></td><td>Array of data dictionary items. See next table.</td></tr></tbody></table>

## data-dictionary-item

<table data-full-width="true"><thead><tr><th width="240" align="right">Variable</th><th width="98.00000000000003">Type</th><th width="87">Default</th><th>Description</th></tr></thead><tbody><tr><td align="right"><code>VariableType</code></td><td>string</td><td><span data-gb-custom-inline data-tag="emoji" data-code="1f534">🔴</span></td><td>Type of variable.</td></tr><tr><td align="right"><code>VariableName</code></td><td>string</td><td><span data-gb-custom-inline data-tag="emoji" data-code="1f534">🔴</span> <span data-gb-custom-inline data-tag="emoji" data-code="1f535">🔵</span></td><td>Name of the variable.</td></tr><tr><td align="right"><code>VariableDescription</code></td><td>string</td><td></td><td>Description of the variable.</td></tr><tr><td align="right"><code>KeyValueMapping</code></td><td>string</td><td></td><td>List of possible key/value mappings in the format <code>key1=value1, key2=value2</code>. Example <code>1=Female, 2=Male</code></td></tr><tr><td align="right"><code>ExpectedTimepoints</code></td><td>number</td><td></td><td>Number of expected timepoints. Example, the study is expected to have 5 records of a variable.</td></tr><tr><td align="right"><code>RangeLow</code></td><td>number</td><td></td><td>For numeric values, the lower limit.</td></tr><tr><td align="right"><code>RangeHigh</code></td><td>number</td><td></td><td>For numeric values, the upper limit.</td></tr></tbody></table>

## data-steps

<table data-full-width="true"><thead><tr><th width="298" align="right">Variable</th><th width="114">Type</th><th width="91">Default</th><th>Description</th></tr></thead><tbody><tr><td align="right"><code>SearchAssociationType</code></td><td>string</td><td><span data-gb-custom-inline data-tag="emoji" data-code="1f534">🔴</span></td><td>[<mark style="color:red;"><strong>Search</strong></mark>] <code>study</code>, or <code>subject</code>.</td></tr><tr><td align="right"><code>ExportBehavioralDirectoryName</code></td><td>string</td><td></td><td>[<mark style="color:green;"><strong>Export</strong></mark>] if <code>BehFormat</code> writes data to a sub directory, the directory should be named this.</td></tr><tr><td align="right"><code>ExportBehavioralDirectoryFormat</code></td><td>string</td><td></td><td>[<mark style="color:green;"><strong>Export</strong></mark>] <code>nobeh</code>, <code>behroot</code>, <code>behseries</code>, <code>behseriesdir</code></td></tr><tr><td align="right"><code>ExportDataFormat</code></td><td>string</td><td><span data-gb-custom-inline data-tag="emoji" data-code="1f534">🔴</span></td><td>[<mark style="color:green;"><strong>Export</strong></mark>] <code>native</code>, <code>dicom</code>, <code>nifti3d</code>, <code>nifti4d</code>, <code>analyze3d</code>, <code>analyze4d</code>, <code>bids</code>.</td></tr><tr><td align="right"><code>Enabled</code></td><td>bool</td><td><span data-gb-custom-inline data-tag="emoji" data-code="1f534">🔴</span></td><td>[<mark style="color:red;"><strong>Search</strong></mark>] <code>true</code> if the step is enabled, <code>false</code> otherwise</td></tr><tr><td align="right"><code>ExportGzip</code></td><td>bool</td><td></td><td>[<mark style="color:green;"><strong>Export</strong></mark>] <code>true</code> if converted Nift data should be g-zipped, <code>false</code> otherwise.</td></tr><tr><td align="right"><code>SearchImageType</code></td><td>string</td><td></td><td>[<mark style="color:red;"><strong>Search</strong></mark>] Comma separated list of image types, often derived from the DICOM ImageType tag, (0008:0008).</td></tr><tr><td align="right"><code>DataLevel</code></td><td>string</td><td><span data-gb-custom-inline data-tag="emoji" data-code="1f534">🔴</span></td><td>[<mark style="color:red;"><strong>Search</strong></mark>] <code>nearestintime</code>, <code>samestudy</code>. Where is the data coming from.</td></tr><tr><td align="right"><code>Location</code></td><td>string</td><td></td><td>[<mark style="color:green;"><strong>Export</strong></mark>] Directory, relative to the <code>analysisroot</code>, where this data item will be written.</td></tr><tr><td align="right"><code>Modality</code></td><td>string</td><td><span data-gb-custom-inline data-tag="emoji" data-code="1f534">🔴</span></td><td>[<mark style="color:red;"><strong>Search</strong></mark>] Modality to search for.</td></tr><tr><td align="right"><code>NumberBOLDreps</code></td><td>string</td><td></td><td>[<mark style="color:red;"><strong>Search</strong></mark>] If <code>SeriesCriteria</code> is set to <code>usecriteria</code>, then search based on this option.</td></tr><tr><td align="right"><code>NumberImagesCriteria</code></td><td>string</td><td></td><td>[<mark style="color:red;"><strong>Search</strong></mark>] </td></tr><tr><td align="right"><code>Optional</code></td><td>bool</td><td><span data-gb-custom-inline data-tag="emoji" data-code="1f534">🔴</span></td><td>[<mark style="color:red;"><strong>Search</strong></mark>] <code>true</code> if this data step is option. <code>false</code> if this step is required and the analysis will not run if the data step is not found.</td></tr><tr><td align="right"><code>Order</code></td><td>number</td><td><span data-gb-custom-inline data-tag="emoji" data-code="1f534">🔴</span></td><td>The numerical order of this data step.</td></tr><tr><td align="right"><code>PreserveSeries</code></td><td>bool</td><td></td><td>[<mark style="color:green;"><strong>Export</strong></mark>] <code>true</code> to preserve series numbers or <code>false</code> to assign new ordinal numbers.</td></tr><tr><td align="right"><code>PrimaryProtocol</code></td><td>bool</td><td></td><td>[<mark style="color:red;"><strong>Search</strong></mark>] <code>true</code> if this data step determines the primary study, from which subsequent analyses are run.</td></tr><tr><td align="right"><code>Protocol</code></td><td>string</td><td><span data-gb-custom-inline data-tag="emoji" data-code="1f534">🔴</span></td><td>[<mark style="color:red;"><strong>Search</strong></mark>] Comma separated list of protocol name(s).</td></tr><tr><td align="right"><code>SeriesCriteria</code></td><td>string</td><td><span data-gb-custom-inline data-tag="emoji" data-code="1f534">🔴</span></td><td>[<mark style="color:red;"><strong>Search</strong></mark>] Criteria for which series are downloaded if more than one matches criteria: <code>all</code>, <code>first</code>, <code>last</code>, <code>largest</code>, <code>smallest</code>, <code>usecriteria</code>.</td></tr><tr><td align="right"><code>UsePhaseDirectory</code></td><td>bool</td><td></td><td>[<mark style="color:green;"><strong>Export</strong></mark>] <code>true</code> to write data to a sub directory based on the phase encoding direction.</td></tr><tr><td align="right"><code>UseSeriesDirectory</code></td><td>bool</td><td></td><td>[<mark style="color:green;"><strong>Export</strong></mark>] <code>true</code> to write each series to its own directory, <code>false</code> to write data to the root export directory.</td></tr></tbody></table>

## group-analysis

<table data-full-width="true"><thead><tr><th width="221.33333333333331" align="right">Variable</th><th width="132">Type</th><th width="98">Default</th><th>Description</th></tr></thead><tbody><tr><td align="right"><code>Datetime</code></td><td>datetime</td><td></td><td>Datetime of the group analysis.</td></tr><tr><td align="right"><code>Description</code></td><td>string</td><td></td><td>Description.</td></tr><tr><td align="right"><code>GroupAnalysisName</code></td><td>string</td><td><span data-gb-custom-inline data-tag="emoji" data-code="1f534">🔴</span> <span data-gb-custom-inline data-tag="emoji" data-code="1f535">🔵</span></td><td>Name of this group analysis.</td></tr><tr><td align="right"><code>Notes</code></td><td>string</td><td></td><td>Notes about the group analysis.</td></tr><tr><td align="right"><code>FileCount</code></td><td>number</td><td><span data-gb-custom-inline data-tag="emoji" data-code="1f7e1">🟡</span></td><td>Number of files in the group analysis.</td></tr><tr><td align="right"><code>Size</code></td><td>number</td><td><span data-gb-custom-inline data-tag="emoji" data-code="1f7e1">🟡</span></td><td>Size in bytes of the analysis.</td></tr><tr><td align="right"><code>VirtualPath</code></td><td>string</td><td><span data-gb-custom-inline data-tag="emoji" data-code="1f7e1">🟡</span></td><td>Path to the group analysis data within the squirrel package.</td></tr></tbody></table>

## experiments

<table data-full-width="true"><thead><tr><th width="198" align="right">Variable</th><th width="98.00000000000003">Type</th><th width="93">Default</th><th>Description</th></tr></thead><tbody><tr><td align="right"><code>ExperimentName</code></td><td>string</td><td><span data-gb-custom-inline data-tag="emoji" data-code="1f534">🔴</span> <span data-gb-custom-inline data-tag="emoji" data-code="1f535">🔵</span></td><td>Unique name of the experiment.</td></tr><tr><td align="right"><code>FileCount</code></td><td>number</td><td><span data-gb-custom-inline data-tag="emoji" data-code="1f7e1">🟡</span></td><td>Number of files contained in the experiment.</td></tr><tr><td align="right"><code>Size</code></td><td>number</td><td><span data-gb-custom-inline data-tag="emoji" data-code="1f7e1">🟡</span></td><td>Size, in bytes, of the experiment files.</td></tr><tr><td align="right"><code>VirtualPath</code></td><td>string</td><td><span data-gb-custom-inline data-tag="emoji" data-code="1f7e1">🟡</span></td><td>Path to the experiment within the squirrel package.</td></tr></tbody></table>

## interventions

<table data-full-width="true"><thead><tr><th width="240" align="right">Variable</th><th width="120">Type</th><th width="102">Default</th><th>Description</th></tr></thead><tbody><tr><td align="right"><code>AdministrationRoute</code></td><td>string</td><td></td><td>Drug entry route (oral, IV, unknown, etc).</td></tr><tr><td align="right"><code>DateRecordCreate</code></td><td>string</td><td></td><td>Date the record was created in the current database. The original record may have been imported from another database.</td></tr><tr><td align="right"><code>DateRecordEntry</code></td><td>string</td><td></td><td>Date the record was first entered into a database.</td></tr><tr><td align="right"><code>DateRecordModify</code></td><td>string</td><td></td><td>Date the record was modified in the current database.</td></tr><tr><td align="right"><code>DateEnd</code></td><td>datetime</td><td></td><td>Datetime the intervention was stopped.</td></tr><tr><td align="right"><code>DateStart</code></td><td>datetime</td><td><span data-gb-custom-inline data-tag="emoji" data-code="1f534">🔴</span></td><td>Datetime the intervention was started.</td></tr><tr><td align="right"><code>Description</code></td><td>string</td><td></td><td>Longer description.</td></tr><tr><td align="right"><code>DoseString</code></td><td>string</td><td><span data-gb-custom-inline data-tag="emoji" data-code="1f534">🔴</span></td><td>Full dosing string. Examples <code>tylenol 325mg twice daily by mouth</code>, or <code>5g marijuana inhaled by volcano</code></td></tr><tr><td align="right"><code>DoseAmount</code></td><td>number</td><td></td><td>In combination with other dose variables, the quantity of the drug.</td></tr><tr><td align="right"><code>DoseFrequency</code></td><td>string</td><td></td><td>Description of the frequency of administration.</td></tr><tr><td align="right"><code>DoseKey</code></td><td>string</td><td></td><td>For clinical trials, the dose key.</td></tr><tr><td align="right"><code>DoseUnit</code></td><td>string</td><td></td><td>mg, g, ml, tablets, capsules, etc.</td></tr><tr><td align="right"><code>InterventionClass</code></td><td>string</td><td></td><td>Drug class.</td></tr><tr><td align="right"><code>InterventionName</code></td><td>string</td><td><span data-gb-custom-inline data-tag="emoji" data-code="1f534">🔴</span> <span data-gb-custom-inline data-tag="emoji" data-code="1f535">🔵</span></td><td>Name of the intervention.</td></tr><tr><td align="right"><code>Notes</code></td><td>string</td><td></td><td>Notes about drug.</td></tr><tr><td align="right"><code>Rater</code></td><td>string</td><td></td><td>Rater/experimenter name.</td></tr></tbody></table>

## observations

<table data-full-width="true"><thead><tr><th width="217.35296740841875" align="right">Variable</th><th width="126">Type</th><th width="106">Default</th><th>Description</th></tr></thead><tbody><tr><td align="right"><code>DateEnd</code></td><td>datetime</td><td></td><td>End datetime of the observation.</td></tr><tr><td align="right"><code>DateRecordCreate</code></td><td>datetime</td><td></td><td>Date the record was created in the current database. The original record may have been imported from another database.</td></tr><tr><td align="right"><code>DateRecordEntry</code></td><td>datetime</td><td></td><td>Date the record was first entered into a database.</td></tr><tr><td align="right"><code>DateRecordModify</code></td><td>datetime</td><td></td><td>Date the record was modified in the current database.</td></tr><tr><td align="right"><code>DateStart</code></td><td>datetime</td><td><span data-gb-custom-inline data-tag="emoji" data-code="1f534">🔴</span></td><td>Start datetime of the observation.</td></tr><tr><td align="right"><code>Description</code></td><td>string</td><td></td><td>Longer description of the measure.</td></tr><tr><td align="right"><code>Duration</code></td><td>number</td><td></td><td>Duration of the measure in seconds, if known.</td></tr><tr><td align="right"><code>InstrumentName</code></td><td>string</td><td></td><td>Name of the instrument associated with this measure.</td></tr><tr><td align="right"><code>ObservationName</code></td><td>string</td><td><span data-gb-custom-inline data-tag="emoji" data-code="1f534">🔴</span> <span data-gb-custom-inline data-tag="emoji" data-code="1f535">🔵</span></td><td>Name of the observation.</td></tr><tr><td align="right"><code>Notes</code></td><td>string</td><td></td><td>Detailed notes.</td></tr><tr><td align="right"><code>Rater</code></td><td>string</td><td></td><td>Name of the rater.</td></tr><tr><td align="right"><code>Value</code></td><td>string</td><td><span data-gb-custom-inline data-tag="emoji" data-code="1f534">🔴</span></td><td>Value (string or number).</td></tr></tbody></table>

## package

<table data-full-width="true"><thead><tr><th width="274" align="right">Variable</th><th width="128.00000000000003">Type</th><th width="119">Default</th><th>Description</th></tr></thead><tbody><tr><td align="right"><code>Changes</code></td><td>string</td><td></td><td>Any CHANGE files.</td></tr><tr><td align="right"><code>DataFormat</code></td><td>string</td><td><code>orig</code></td><td>Data format for imaging data to be written. Squirrel should attempt to convert to the specified format if possible. <code>orig</code>, <code>anon</code>, <code>anonfull</code>, <code>nifti3d</code>, <code>nifti3dgz</code>, <code>nifti4d</code>, <code>nifti4dgz</code> (<strong>see details below</strong>).</td></tr><tr><td align="right"><code>Datetime</code></td><td>datetime</td><td><span data-gb-custom-inline data-tag="emoji" data-code="1f534">🔴</span> </td><td>Datetime the package was created.</td></tr><tr><td align="right"><code>Description</code></td><td>string</td><td></td><td>Longer description of the package.</td></tr><tr><td align="right"><code>License</code></td><td>string</td><td></td><td>Any sharing or license notes, or LICENSE files.</td></tr><tr><td align="right"><code>NiDBVersion</code></td><td>string</td><td></td><td>The NiDB version which wrote the package.</td></tr><tr><td align="right"><code>Notes</code></td><td>JSON object</td><td></td><td>See details below.</td></tr><tr><td align="right"><code>PackageName</code></td><td>string</td><td><span data-gb-custom-inline data-tag="emoji" data-code="1f534">🔴</span> <span data-gb-custom-inline data-tag="emoji" data-code="1f535">🔵</span></td><td>Short name of the package.</td></tr><tr><td align="right"><code>PackageFormat</code></td><td>string</td><td><code>squirrel</code></td><td>Always <code>squirrel</code>.</td></tr><tr><td align="right"><code>Readme</code></td><td>string</td><td></td><td>Any README files.</td></tr><tr><td align="right"><code>SeriesDirectoryFormat</code></td><td>string</td><td><code>orig</code></td><td><code>orig</code>, <code>seq</code> (<strong>see details below</strong>).</td></tr><tr><td align="right"><code>SquirrelVersion</code></td><td>string</td><td></td><td>Squirrel format version.</td></tr><tr><td align="right"><code>SquirrelBuild</code></td><td>string</td><td></td><td>Build version of the squirrel library and utilities.</td></tr><tr><td align="right"><code>StudyDirectoryFormat</code></td><td>string</td><td><code>orig</code></td><td><code>orig</code>, <code>seq</code> (<strong>see details below</strong>).</td></tr><tr><td align="right"><code>SubjectDirectoryFormat</code></td><td>string</td><td><code>orig</code></td><td><code>orig</code>, <code>seq</code> (<strong>see details below</strong>).</td></tr></tbody></table>

## params

<table data-full-width="true"><thead><tr><th width="137.4">Variable</th><th width="345">Description</th><th width="366">Example</th></tr></thead><tbody><tr><td><em>{Key:Value}</em></td><td>A unique key, sometimes derived from the DICOM header</td><td>Protocol, T1w<br>FieldStrength, 3.0</td></tr></tbody></table>

## pipelines

<table data-full-width="true"><thead><tr><th width="288" align="right">Variable</th><th width="128.00000000000003">Type</th><th width="94">Default</th><th>Description</th></tr></thead><tbody><tr><td align="right"><code>ClusterType</code></td><td>string</td><td></td><td>Compute cluster engine (sge or slurm).</td></tr><tr><td align="right"><code>ClusterUser</code></td><td>string</td><td></td><td>Submit username.</td></tr><tr><td align="right"><code>ClusterQueue</code></td><td>string</td><td></td><td>Queue to submit jobs.</td></tr><tr><td align="right"><code>ClusterSubmitHost</code></td><td>string</td><td></td><td>Hostname to submit jobs.</td></tr><tr><td align="right"><code>CompleteFiles</code></td><td>JSON array</td><td></td><td>JSON array of complete files, with relative paths to <code>analysisroot</code>.</td></tr><tr><td align="right"><code>CreateDate</code></td><td>datetime</td><td><span data-gb-custom-inline data-tag="emoji" data-code="1f534">🔴</span></td><td>Date the pipeline was created.</td></tr><tr><td align="right"><code>DataCopyMethod</code></td><td>string</td><td></td><td>How the data is copied to the analysis directory: <code>cp</code>, <code>softlink</code>, <code>hardlink</code>.</td></tr><tr><td align="right"><code>DependencyDirectory</code></td><td>string</td><td></td><td> </td></tr><tr><td align="right"><code>DependencyLevel</code></td><td>string</td><td></td><td> </td></tr><tr><td align="right"><code>DependencyLinkType</code></td><td>string</td><td></td><td> </td></tr><tr><td align="right"><code>Description</code></td><td>string</td><td></td><td>Longer pipeline description.</td></tr><tr><td align="right"><code>DirectoryStructure</code></td><td>string</td><td></td><td> </td></tr><tr><td align="right"><code>Directory</code></td><td>string</td><td></td><td>Directory where the analyses for this pipeline will be stored. Leave blank to use the default location.</td></tr><tr><td align="right"><code>Group</code></td><td>string</td><td></td><td>ID or name of a group on which this pipeline will run</td></tr><tr><td align="right"><code>GroupType</code></td><td>string</td><td></td><td>Either subject or study</td></tr><tr><td align="right"><code>Level</code></td><td>number</td><td><span data-gb-custom-inline data-tag="emoji" data-code="1f534">🔴</span></td><td>subject-level analysis (1) or group-level analysis (2).</td></tr><tr><td align="right"><code>MaxWallTime</code></td><td>number</td><td></td><td>Maximum allowed clock (wall) time in minutes for the analysis to run.</td></tr><tr><td align="right"><code>ClusterMemory</code></td><td>number</td><td></td><td>Amount of memory in GB requested for a running job.</td></tr><tr><td align="right"><code>PipelineName</code></td><td>string</td><td><span data-gb-custom-inline data-tag="emoji" data-code="1f534">🔴</span> <span data-gb-custom-inline data-tag="emoji" data-code="1f535">🔵</span></td><td>Pipeline name.</td></tr><tr><td align="right"><code>Notes</code></td><td>string</td><td></td><td>Extended notes about the pipeline</td></tr><tr><td align="right"><code>NumberConcurrentAnalyses</code></td><td>number</td><td><code>1</code></td><td>Number of analyses allowed to run at the same time. This number if managed by NiDB and is different than grid engine queue size.</td></tr><tr><td align="right"><code>ClusterNumberCores</code></td><td>number</td><td><code>1</code></td><td>Number of CPU cores requested for a running job.</td></tr><tr><td align="right"><code>ParentPipelines</code></td><td>string</td><td></td><td>Comma separated list of parent pipelines.</td></tr><tr><td align="right"><code>ResultScript</code></td><td>string</td><td></td><td>Executable script to be run at completion of the analysis to find and insert results back into NiDB.</td></tr><tr><td align="right"><code>SubmitDelay</code></td><td>number</td><td></td><td>Delay in hours, after the study datetime, to submit to the cluster. Allows time to upload behavioral data. </td></tr><tr><td align="right"><code>TempDirectory</code></td><td>string</td><td></td><td>The path to a temporary directory if it is used, on a compute node. </td></tr><tr><td align="right"><code>UseProfile</code></td><td>bool</td><td></td><td>true if using the profile option, false otherwise.</td></tr><tr><td align="right"><code>UseTempDirectory</code></td><td>bool</td><td></td><td>true if using a temporary directory, false otherwise.</td></tr><tr><td align="right"><code>Version</code></td><td>number</td><td><code>1</code></td><td>Version of the pipeline.</td></tr><tr><td align="right"><code>PrimaryScript</code></td><td>string</td><td><span data-gb-custom-inline data-tag="emoji" data-code="1f534">🔴</span></td><td>See details of <a href="/pages/Q2IGUMBjqiNFZZ6v471h">pipeline scripts</a></td></tr><tr><td align="right"><code>SecondaryScript</code></td><td>string</td><td></td><td>See details of <a href="/pages/Q2IGUMBjqiNFZZ6v471h">pipeline scripts</a>.</td></tr><tr><td align="right"><code>DataStepCount</code></td><td>number</td><td><span data-gb-custom-inline data-tag="emoji" data-code="1f7e1">🟡</span></td><td>Number of data steps.</td></tr><tr><td align="right"><code>VirtualPath</code></td><td>string</td><td><span data-gb-custom-inline data-tag="emoji" data-code="1f7e1">🟡</span></td><td>Path of this pipeline within the squirrel package.</td></tr><tr><td align="right"><a href="/pages/djyPLM3iOmDgycbcUD7Y">data-steps</a></td><td>JSON array</td><td></td><td>See <a href="/pages/djyPLM3iOmDgycbcUD7Y">data specifications</a></td></tr></tbody></table>

## series

<table data-full-width="true"><thead><tr><th width="238.99111900532864" align="right">Variable</th><th width="131">Type</th><th width="101">Default</th><th>Description</th></tr></thead><tbody><tr><td align="right"><code>BidsEntity</code></td><td>string</td><td></td><td><a href="https://bids.neuroimaging.io/">BIDS</a> entity (anat, fmri, dwi, etc)</td></tr><tr><td align="right"><code>BidsSuffix</code></td><td>string</td><td></td><td>BIDS suffix</td></tr><tr><td align="right"><code>BIDSTask</code></td><td>string</td><td></td><td>BIDS Task name</td></tr><tr><td align="right"><code>BIDSRun</code></td><td>number</td><td></td><td>BIDS run number</td></tr><tr><td align="right"><code>BIDSPhaseEncodingDirection</code></td><td>string</td><td></td><td>BIDS PE direction</td></tr><tr><td align="right"><code>Description</code></td><td>string</td><td></td><td>Description of the series</td></tr><tr><td align="right"><code>ExperimentName</code></td><td>string</td><td></td><td>Experiment name associated with this series. Experiments link to the <a href="/pages/tFr00SPU7TPRxDjNJQkb">experiments</a> section of the squirrel package</td></tr><tr><td align="right"><code>Protocol</code></td><td>string</td><td><span data-gb-custom-inline data-tag="emoji" data-code="1f534">🔴</span></td><td>Protocol name</td></tr><tr><td align="right"><code>Run</code></td><td>number</td><td></td><td>The run identifies order of acquisition in cases of multiple identical series.</td></tr><tr><td align="right"><code>SeriesDatetime</code></td><td>date</td><td><span data-gb-custom-inline data-tag="emoji" data-code="1f534">🔴</span></td><td>Date of the series, usually taken from the DICOM header</td></tr><tr><td align="right"><code>SeriesNumber</code></td><td>number</td><td><span data-gb-custom-inline data-tag="emoji" data-code="1f534">🔴</span> <span data-gb-custom-inline data-tag="emoji" data-code="1f535">🔵</span></td><td>Series number. May be sequential, correspond to NiDB assigned series number, or taken from DICOM header</td></tr><tr><td align="right"><code>SeriesUID</code></td><td>string</td><td></td><td>From the SeriesUID DICOM tag</td></tr><tr><td align="right"><code>BehavioralFileCount</code></td><td>number</td><td><span data-gb-custom-inline data-tag="emoji" data-code="1f7e1">🟡</span></td><td>Total number of beh files (including files in subdirs)</td></tr><tr><td align="right"><code>BehavioralSize</code></td><td>number</td><td><span data-gb-custom-inline data-tag="emoji" data-code="1f7e1">🟡</span></td><td>Size of beh data, in bytes</td></tr><tr><td align="right"><code>FileCount</code></td><td>number</td><td><span data-gb-custom-inline data-tag="emoji" data-code="1f7e1">🟡</span></td><td>Total number of files (including files in subdirs)</td></tr><tr><td align="right"><code>Size</code></td><td>number</td><td><span data-gb-custom-inline data-tag="emoji" data-code="1f7e1">🟡</span></td><td>Size of the data, in bytes</td></tr><tr><td align="right"><a href="/pages/HhKUoHpxbMFKhRj5zwja">params</a></td><td>JSON file</td><td></td><td><code>data/subjectID/studyNum/seriesNum/params.json</code></td></tr><tr><td align="right"><a href="/pages/VGfS15svb9utnYGxPI7g">analysis</a></td><td>JSON object</td><td></td><td> </td></tr></tbody></table>

## studies

<table data-full-width="true"><thead><tr><th width="186" align="right">Variable</th><th width="151">Type</th><th width="101">Default</th><th>Description</th></tr></thead><tbody><tr><td align="right"><code>AgeAtStudy</code></td><td>number</td><td><span data-gb-custom-inline data-tag="emoji" data-code="1f534">🔴</span></td><td>Subject’s age in years at the time of the study.</td></tr><tr><td align="right"><code>Datetime</code></td><td>datetime</td><td><span data-gb-custom-inline data-tag="emoji" data-code="1f534">🔴</span></td><td>Date of the study.</td></tr><tr><td align="right"><code>DayNumber</code></td><td>number</td><td></td><td>For repeated studies and clinical trials, this indicates the day number of this study in relation to time 0.</td></tr><tr><td align="right"><code>Description</code></td><td>string</td><td><span data-gb-custom-inline data-tag="emoji" data-code="1f534">🔴</span></td><td>Study description.</td></tr><tr><td align="right"><code>Equipment</code></td><td>string</td><td></td><td>Equipment name, on which the imaging session was collected.</td></tr><tr><td align="right"><code>Height</code></td><td>number</td><td></td><td>Height in <strong>meters</strong> of the subject at the time of the study.</td></tr><tr><td align="right"><code>Modality</code></td><td>string</td><td><span data-gb-custom-inline data-tag="emoji" data-code="1f534">🔴</span></td><td>Defines the type of data. See table of supported <a href="/pages/274IvIFCGaY1OJMbCPF2">modalities</a>.</td></tr><tr><td align="right"><code>Notes</code></td><td>string</td><td></td><td>Any notes about the study</td></tr><tr><td align="right"><code>StudyNumber</code></td><td>number</td><td><span data-gb-custom-inline data-tag="emoji" data-code="1f534">🔴</span> <span data-gb-custom-inline data-tag="emoji" data-code="1f535">🔵</span></td><td>Study number. May be sequential or correspond to NiDB assigned study number.</td></tr><tr><td align="right"><code>StudyUID</code></td><td>string</td><td></td><td>DICOM field <code>StudyUID</code>.</td></tr><tr><td align="right"><code>TimePoint</code></td><td>number</td><td></td><td>Similar to day number, but this should be an ordinal number.</td></tr><tr><td align="right"><code>VisitType</code></td><td>string</td><td></td><td>Type of visit. ex: Pre, Post.</td></tr><tr><td align="right"><code>Weight</code></td><td>number</td><td></td><td>Weight in <strong>kilograms</strong> of the subject at the time of the study.</td></tr><tr><td align="right"><code>AnalysisCount</code></td><td>number</td><td><span data-gb-custom-inline data-tag="emoji" data-code="1f7e1">🟡</span></td><td>Number of analyses for this study.</td></tr><tr><td align="right"><code>SeriesCount</code></td><td>number</td><td><span data-gb-custom-inline data-tag="emoji" data-code="1f7e1">🟡</span></td><td>Number of series for this study.</td></tr><tr><td align="right"><code>VirtualPath</code></td><td>string</td><td><span data-gb-custom-inline data-tag="emoji" data-code="1f7e1">🟡</span></td><td>Relative path to the data within the package.</td></tr><tr><td align="right"><a href="/pages/a62kqJXd31hUNqzualEc">series</a></td><td>JSON array</td><td></td><td>Array of series.</td></tr><tr><td align="right"><a href="/pages/VGfS15svb9utnYGxPI7g">analyses</a></td><td>JSON array</td><td></td><td>Array of analyses.</td></tr></tbody></table>

## subjects

<table data-full-width="true"><thead><tr><th width="224.0144927536232" align="right">Variable</th><th width="152.00000000000003">Type</th><th width="95">Default</th><th>Description (and possible values)</th></tr></thead><tbody><tr><td align="right"><code>AlternateIDs</code></td><td>JSON array</td><td></td><td>List of alternate IDs. Comma separated.</td></tr><tr><td align="right"><code>DateOfBirth</code></td><td>date</td><td><span data-gb-custom-inline data-tag="emoji" data-code="1f534">🔴</span> </td><td>Subject’s date of birth. Used to calculate age-at-study. Value can be <code>YYYY-00-00</code> to store year only, or <code>YYYY-MM-00</code> to store year and month only.</td></tr><tr><td align="right"><code>Gender</code></td><td>char</td><td></td><td>Gender.</td></tr><tr><td align="right"><code>GUID</code></td><td>string</td><td></td><td>Globally unique identifier, from the NIMH Data Archive (<a href="https://nda.nih.gov/">NDA</a>).</td></tr><tr><td align="right"><code>EnrollmentGroup</code></td><td>string</td><td></td><td>Enrollment group. Example: patient, control, etc.</td></tr><tr><td align="right"><code>EnrollmentStatus</code></td><td>string</td><td></td><td>Project enrollment status: excluded, completed, etc.</td></tr><tr><td align="right"><code>Ethnicity1</code></td><td>string</td><td></td><td>NIH defined ethnicity: Usually <code>hispanic</code>, <code>non-hispanic</code></td></tr><tr><td align="right"><code>Ethnicity2</code></td><td>string</td><td></td><td>NIH defined race: <code>americanindian</code>, <code>asian</code>, <code>black</code>, <code>hispanic</code>, <code>islander</code>, <code>white</code></td></tr><tr><td align="right"><code>Notes</code></td><td>string</td><td></td><td>Notes about this subject</td></tr><tr><td align="right"><code>Sex</code></td><td>char</td><td><span data-gb-custom-inline data-tag="emoji" data-code="1f534">🔴</span> </td><td>Sex at birth (F,M,O,U).</td></tr><tr><td align="right"><code>SubjectID</code></td><td>string</td><td><span data-gb-custom-inline data-tag="emoji" data-code="1f534">🔴</span> <span data-gb-custom-inline data-tag="emoji" data-code="1f535">🔵</span></td><td>Unique ID of this subject. Each subject ID must be unique within the package.</td></tr><tr><td align="right"><code>InterventionCount</code></td><td>number</td><td><span data-gb-custom-inline data-tag="emoji" data-code="1f7e1">🟡</span></td><td>Number of intervention objects.</td></tr><tr><td align="right"><code>ObservationCount</code></td><td>number</td><td><span data-gb-custom-inline data-tag="emoji" data-code="1f7e1">🟡</span></td><td>Number of observation objects.</td></tr><tr><td align="right"><code>StudyCount</code></td><td>number</td><td><span data-gb-custom-inline data-tag="emoji" data-code="1f7e1">🟡</span></td><td>Number of studies.</td></tr><tr><td align="right"><code>VirtualPath</code></td><td>string</td><td><span data-gb-custom-inline data-tag="emoji" data-code="1f7e1">🟡</span></td><td>Relative path to the data within the package.</td></tr><tr><td align="right"><a href="/pages/xfF5wjuJOiP8HQWU0FHZ">studies</a></td><td>JSON array</td><td></td><td>Array of imaging studies/sessions.</td></tr><tr><td align="right"><a href="/pages/IDcHodd3arxLN42yzKa5">observations</a></td><td>JSON array</td><td></td><td>Array of observations.</td></tr><tr><td align="right"><a href="/pages/eGJurtQN45LiXiuGvnJN">interventions</a></td><td>JSON array</td><td></td><td>Array of interventions.</td></tr></tbody></table>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.neuroinfodb.org/squirrel/specifications/specification-v1.0/json-full-listing.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
