Task results are formatted following [bids](https://bids-specification.readthedocs.io/en/stable/04-modality-specific-files/05-task-events.html),
and stored in `source/<subject>/<session>/nii/FCsepNBack.tsv` file.
The results are formatted following [bids](https://bids-specification.readthedocs.io/en/stable/03-modality-agnostic-files.html#phenotypic-and-assessment-data),
and stored in `source/<subject>/<session>/nii/VAS.tsv`
This dataset is an purely fictional, designed to demonstrate the core
## <a name="intro"></a> Introduction
This dataset is a purely fictional, designed to demonstrate the core
features of `bidscoin` bidsifier tool.
features of `bidscoin` bidsifier tool.
The structure of dataset is modelled of real-life dataset, currently unpublished.
The structure of dataset is modelled of real-life dataset, currently unpublished.
...
@@ -15,108 +40,83 @@ for [SPM12](https://www.fil.ion.ucl.ac.uk/spm/software/spm12/).
...
@@ -15,108 +40,83 @@ for [SPM12](https://www.fil.ion.ucl.ac.uk/spm/software/spm12/).
All `.nii` images are replaced by an empty file, and any personal information is removed
All `.nii` images are replaced by an empty file, and any personal information is removed
from json files.
from json files.
## Experiment description
## <a name="exp_descr"></a>Experiment description
The experiment is designed to study of effect of fatigue on memory performance.
5 participants are separated into pairs with matched sex, age and years of education.
First persons of pairs are used for study (patient group), while paired persons are used for control.
During experiment, each participant is scanned 3 times (sessions), for each of session they are asked to perform either a memory or a stroop task:
-**HLC** with memory task performed after a tiring task (High Cognitive Load)
- In additional to functional and structural, a diffusion scan is present
-**LCL** with memory task performed without tiring task (Low Cognitive Load)
- Session contains structural and functional MRI scans
-**STROOP** with a standard stroop task
- session contains only multi parametric mapping MRI (MPM)
The order in which each scan is performed may vary from participant to participant.
## Original dataset structure
The original data is stored in `source` directory. Data corresponding to each participants
is stored in `source/<participant id>` sub-folder, where `<participant id>` the code of
participant padded with `0`.
Inside participants sub-folders, 3 folders of session data is places. The folder names
don't have a direct correspondence with session, bit represent a code applied by a scanner,
in form `sXYZ`.
The image data is stored directly in session sub-folder `nii`.
For **LCL** and **HCL** sessions, task and assessment are stored in `inp` sub-folder.
Tiring task, and stroop task data are not present in dataset.
### Memory task description
Task consist of a classic n-back working memory update task.
A set of letters is presented to participant. Each letter is presented during `1.7s`,
followed by `0.5s` fixation cross presentation. Participant is asked to remember
if such letter was present in the last, 2 cards ago or 3 cards age (1back, 2back, 3back).
A participant response ("c" for correct, "n" for non-correct) is registered alongside with
expected response.
A fill task consists of 18 blocks of 1,2,3-back tasks, with 16 presented letters in each block.
Task results are formatted following [bids](https://bids-specification.readthedocs.io/en/stable/04-modality-specific-files/05-task-events.html),
The experiment is designed to study of effect of fatigue on cognition
and stored in `source/<subject>/<session>/nii/FCsepNBack.tsv` file.
(working memory and processing speed) and to identify brain
correlates of cognitive fatigue in patterns with multiple sclerosis
compared to healthy controls.
### Assesment description
In total dataset contains 4 participants, two in `patient` group and two
in `control` group with matched demographic information (age, sex and
years of educations).
The demographic data for each matched pair is randomly generated.
Each task is followed by visual analogue assessment (VAS) questioner, where participant is
During experiment, each participant is scanned 3 times (sessions),
asked to estimate his psychological state from bad (0) to good (100).
during three separate days.
In particular the next estimations are requested:
Each session started with a cognitive task outside the scanner:
either a Stroop task or dual-task (Time Load Dual Back) in which
cognitive was manipulated.
-**Motivation**
The order in which each scan is performed was counterbalanced from participant
-**Hapiness**
to participant.
-**Fatigue**
-**Openness**
-**Stress**
-**Anxiety**
-**Effort**
The results are formatted following [bids](https://bids-specification.readthedocs.io/en/stable/03-modality-agnostic-files.html#phenotypic-and-assessment-data),
`Appariement.xlsx` is an excel table containing the list of participants with key
`Appariement.xlsx` is an excel table containing the list of participants with key
demographic data.
demographic data.
...
@@ -161,7 +229,7 @@ Columns are, in order:
...
@@ -161,7 +229,7 @@ Columns are, in order:
-**2**: Name of the second scanned session
-**2**: Name of the second scanned session
-**3**: Name of the third scanned session
-**3**: Name of the third scanned session
#### Sidecar json files
#### <a name=ds_aux_json></a>Sidecar json files
Prepeared json files to use as [descriptions](https://bids-specification.readthedocs.io/en/stable/02-common-principles.html#tabular-files)
Prepeared json files to use as [descriptions](https://bids-specification.readthedocs.io/en/stable/02-common-principles.html#tabular-files)
for bidsified `.tsv` files:
for bidsified `.tsv` files:
...
@@ -174,13 +242,23 @@ demonstration of participant table manipulations by `bidscoin`
...
@@ -174,13 +242,23 @@ demonstration of participant table manipulations by `bidscoin`
-`VAS.json` is sidecar json file for VAS
-`VAS.json` is sidecar json file for VAS
#### bval and bvec files
#### <a name="ds_aux-bval"></a>bval and bvec files
`bval` and `bvec` files used to accompany [diffusion data](https://bids-specification.readthedocs.io/en/stable/04-modality-specific-files/01-magnetic-resonance-imaging-data.html#diffusion-imaging-data)
`bval` and `bvec` files used to accompany [diffusion data](https://bids-specification.readthedocs.io/en/stable/04-modality-specific-files/01-magnetic-resonance-imaging-data.html#diffusion-imaging-data)
are placed in `resources/diffusion` folder. They are common to all diffusion images used
are placed in `resources/diffusion` folder.
in this dataset.
They are common to all diffusion images used in this dataset.
is stored at `resources/dataset_description.json`.
### <a name="ds_bids"></a>Bidscoin files
#### Bidsmap files
A set of files needed to run the example are stored in `resources/map` and
`resources/plugins`
#### <a name="ds_bids_map"></a>Bidsmap files
Generated bidsmap files, that can be used to bidsify this dataset are placed in `resources/map` directory:
Generated bidsmap files, that can be used to bidsify this dataset are placed in `resources/map` directory:
...
@@ -189,7 +267,7 @@ Generated bidsmap files, that can be used to bidsify this dataset are placed in
...
@@ -189,7 +267,7 @@ Generated bidsmap files, that can be used to bidsify this dataset are placed in
These files can be used with `-b` option directly, or copied into `bids/code/bidscoin` directory.
These files can be used with `-b` option directly, or copied into `bids/code/bidscoin` directory.
#### Plugins
#### <a name="ds_bids_plug"></a>Plugins
The plugins are stored in `resources/plugins` directory, and contains commented example of additional data management provided by `bidscoin` infrastructure.
The plugins are stored in `resources/plugins` directory, and contains commented example of additional data management provided by `bidscoin` infrastructure.
...
@@ -198,28 +276,21 @@ The plugins are stored in `resources/plugins` directory, and contains commented
...
@@ -198,28 +276,21 @@ The plugins are stored in `resources/plugins` directory, and contains commented
-`process_plugin.py` contains some example of intermediate data processing, namely merging functional and diffusion 3D images into 4D images, it also shows example of subject demographic data modification
-`process_plugin.py` contains some example of intermediate data processing, namely merging functional and diffusion 3D images into 4D images, it also shows example of subject demographic data modification
-`bidsify_plugin.py` contains examples of recording metadata modification in order to facilitate recordings identification
-`bidsify_plugin.py` contains examples of recording metadata modification in order to facilitate recordings identification
@@ -227,7 +298,7 @@ The options `--part-template resources/participants.json` will tell bidscoin to
...
@@ -227,7 +298,7 @@ The options `--part-template resources/participants.json` will tell bidscoin to
The column `participant_id` will be filled automatically, while other columns will be filled
The column `participant_id` will be filled automatically, while other columns will be filled
by default by `n/a`, unless they are set in plugin:
by default by `n/a`, unless they are set in plugin:
```
```python
session.sub_values["sex"]="M"
session.sub_values["sex"]="M"
```
```
...
@@ -245,7 +316,7 @@ After the execution of preparation, the `rename` folder should contain folders a
...
@@ -245,7 +316,7 @@ After the execution of preparation, the `rename` folder should contain folders a
-**code/bidscoin**, with log files of the last execution of preparation step
-**code/bidscoin**, with log files of the last execution of preparation step
-**participants.tsv** and **participants.json** files with formatted and filled participant list, all columns for all subjects must be filled except `handiness`, which should contain only `n/a`
-**participants.tsv** and **participants.json** files with formatted and filled participant list, all columns for all subjects must be filled except `handiness`, which should contain only `n/a`
-**sub-00X** folders for subjects 1-4
-**sub-00X** folders for subjects 1-4
-**ses-HCL** sub-folders with bidsified session name (either `ses-LCL`, if run with plugin, of `ses-s01905` if run without plugin)
-**ses-HCL** sub-folders with bidsified session name (either `ses-HCL`, if run with plugin, of `ses-s01905` if run without plugin)
-**auxiliary** folder with task and VAS tables and json (only if run with plugin)
-**auxiliary** folder with task and VAS tables and json (only if run with plugin)
-**MRI** subfolder containing MRI data
-**MRI** subfolder containing MRI data
-**00x-<seq_name>** folders with original image data organased by sequences
-**00x-<seq_name>** folders with original image data organased by sequences
...
@@ -255,25 +326,25 @@ For example the participant table can be corrected if contain wrong or missing v
...
@@ -255,25 +326,25 @@ For example the participant table can be corrected if contain wrong or missing v
Running bidscoin with all options can be tedious. To streamline the experience, the majority of options can be saved in configuration file by running
Running bidscoin with all options can be tedious. To streamline the experience, the majority of options can be saved in configuration file by running