From d53954f93c6bf705c6b6a62c1bf42fc3087d8882 Mon Sep 17 00:00:00 2001 From: Remi Gau Date: Mon, 18 Oct 2021 13:38:33 +0200 Subject: [PATCH 1/7] add details for content of beh.json --- .../07-behavioral-experiments.md | 33 +++++++++++++++++-- 1 file changed, 31 insertions(+), 2 deletions(-) diff --git a/src/04-modality-specific-files/07-behavioral-experiments.md b/src/04-modality-specific-files/07-behavioral-experiments.md index efdf8fc898..9397ae9ea5 100644 --- a/src/04-modality-specific-files/07-behavioral-experiments.md +++ b/src/04-modality-specific-files/07-behavioral-experiments.md @@ -27,9 +27,14 @@ stimulation turned on or off, the data files may be labelled ## RECOMMENDED metadata -In addition of the metadata REQUIRED for some data that can be found in the `beh` folder +In addition of the metadata: + +- RECOMMENDED for side-car JSON files for [tabular data](../02-common-principles.md#tabular-data), + +- REQUIRED for some data that can be found in the `beh` folder (for example `SamplingFrequency` and `StartTime` for `*_.tsv.gz` files), -it is RECOMMENDED to add the following metadata to the JSON files of this folder. + +it is RECOMMENDED to add the following metadata to the JSON files of this folder: {{ MACROS___make_metadata_table( { @@ -43,3 +48,27 @@ it is RECOMMENDED to add the following metadata to the JSON files of this folder "InstitutionalDepartmentName": "RECOMMENDED", } ) }} + +Example of the content of a `_beh.tsv` and its `_beh.json` file: + +```Text +trial response response_time stim_file +congruent red 1.435 images/word-red_color-red.jpg +incongruent red 1.739 images/word-red_color-blue.jpg +``` + +In the accompanying JSON sidecar, the `trial_type` column might look as follows: + +```JSON +{ + "TaskName": "Stroop", + "trial": { + "LongName": "Trial name", + "Description": "Indicator of the type of trial", + "Levels": { + "congruent": "Word and color font are congruent.", + "incongruent": "Word and color font are not congruent.", + } + } +} +``` \ No newline at end of file From 77e58f0ee205ef6ab799f4b89ae206b8fcb9c422 Mon Sep 17 00:00:00 2001 From: Remi Gau Date: Mon, 18 Oct 2021 13:52:51 +0200 Subject: [PATCH 2/7] fix typo --- src/04-modality-specific-files/07-behavioral-experiments.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/04-modality-specific-files/07-behavioral-experiments.md b/src/04-modality-specific-files/07-behavioral-experiments.md index 9397ae9ea5..3a9d776be0 100644 --- a/src/04-modality-specific-files/07-behavioral-experiments.md +++ b/src/04-modality-specific-files/07-behavioral-experiments.md @@ -67,7 +67,7 @@ In the accompanying JSON sidecar, the `trial_type` column might look as follows: "Description": "Indicator of the type of trial", "Levels": { "congruent": "Word and color font are congruent.", - "incongruent": "Word and color font are not congruent.", + "incongruent": "Word and color font are not congruent." } } } From a8bae436c1a54ea2b57df520d4d440669bef8e73 Mon Sep 17 00:00:00 2001 From: Remi Gau Date: Mon, 18 Oct 2021 15:55:59 +0200 Subject: [PATCH 3/7] Apply suggestions from code review Co-authored-by: Taylor Salo --- src/04-modality-specific-files/07-behavioral-experiments.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/04-modality-specific-files/07-behavioral-experiments.md b/src/04-modality-specific-files/07-behavioral-experiments.md index 3a9d776be0..99db6a4941 100644 --- a/src/04-modality-specific-files/07-behavioral-experiments.md +++ b/src/04-modality-specific-files/07-behavioral-experiments.md @@ -66,8 +66,8 @@ In the accompanying JSON sidecar, the `trial_type` column might look as follows: "LongName": "Trial name", "Description": "Indicator of the type of trial", "Levels": { - "congruent": "Word and color font are congruent.", - "incongruent": "Word and color font are not congruent." + "congruent": "Word and font color match.", + "incongruent": "Word and font color do not match." } } } From 4b1a6c022c6cf331ef8aa960748930f3018e0bf5 Mon Sep 17 00:00:00 2001 From: Remi Gau Date: Thu, 21 Oct 2021 12:04:22 +0200 Subject: [PATCH 4/7] Apply suggestions from code review Co-authored-by: Stefan Appelhoff --- src/04-modality-specific-files/07-behavioral-experiments.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/04-modality-specific-files/07-behavioral-experiments.md b/src/04-modality-specific-files/07-behavioral-experiments.md index 99db6a4941..f77111728a 100644 --- a/src/04-modality-specific-files/07-behavioral-experiments.md +++ b/src/04-modality-specific-files/07-behavioral-experiments.md @@ -27,9 +27,9 @@ stimulation turned on or off, the data files may be labelled ## RECOMMENDED metadata -In addition of the metadata: +In addition to the metadata that is either: -- RECOMMENDED for side-car JSON files for [tabular data](../02-common-principles.md#tabular-data), +- RECOMMENDED for side-car JSON files for [tabular data](../02-common-principles.md#tabular-data), or - REQUIRED for some data that can be found in the `beh` folder (for example `SamplingFrequency` and `StartTime` for `*_.tsv.gz` files), @@ -49,7 +49,7 @@ it is RECOMMENDED to add the following metadata to the JSON files of this folder } ) }} -Example of the content of a `_beh.tsv` and its `_beh.json` file: +Example of the content of a `_beh.tsv` and its accompanying `_beh.json` sidecar file: ```Text trial response response_time stim_file From c4f8be7d389189a347e903e1753b6164ec4258a3 Mon Sep 17 00:00:00 2001 From: Stefan Appelhoff Date: Tue, 26 Oct 2021 15:17:16 +0200 Subject: [PATCH 5/7] Update 07-behavioral-experiments.md --- src/04-modality-specific-files/07-behavioral-experiments.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/04-modality-specific-files/07-behavioral-experiments.md b/src/04-modality-specific-files/07-behavioral-experiments.md index f77111728a..14585371bc 100644 --- a/src/04-modality-specific-files/07-behavioral-experiments.md +++ b/src/04-modality-specific-files/07-behavioral-experiments.md @@ -57,7 +57,7 @@ congruent red 1.435 images/word-red_color-red.jpg incongruent red 1.739 images/word-red_color-blue.jpg ``` -In the accompanying JSON sidecar, the `trial_type` column might look as follows: +In the accompanying JSON sidecar, the `trial` column might be documented as follows: ```JSON { @@ -71,4 +71,4 @@ In the accompanying JSON sidecar, the `trial_type` column might look as follows: } } } -``` \ No newline at end of file +``` From d1d2809683ec4a198db1adced8e3fb7ec8163580 Mon Sep 17 00:00:00 2001 From: Stefan Appelhoff Date: Tue, 26 Oct 2021 15:20:08 +0200 Subject: [PATCH 6/7] Update 07-behavioral-experiments.md --- src/04-modality-specific-files/07-behavioral-experiments.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/04-modality-specific-files/07-behavioral-experiments.md b/src/04-modality-specific-files/07-behavioral-experiments.md index 14585371bc..8550ee8315 100644 --- a/src/04-modality-specific-files/07-behavioral-experiments.md +++ b/src/04-modality-specific-files/07-behavioral-experiments.md @@ -29,10 +29,10 @@ stimulation turned on or off, the data files may be labelled In addition to the metadata that is either: -- RECOMMENDED for side-car JSON files for [tabular data](../02-common-principles.md#tabular-data), or +- RECOMMENDED for side-car JSON files for [tabular data](../02-common-principles.md#tabular-data), or -- REQUIRED for some data that can be found in the `beh` folder -(for example `SamplingFrequency` and `StartTime` for `*_.tsv.gz` files), +- REQUIRED for some data that can be found in the `beh` folder + (for example `SamplingFrequency` and `StartTime` for `*_.tsv.gz` files), it is RECOMMENDED to add the following metadata to the JSON files of this folder: From a72fb44bc172586344f558a3304790e6c8cd1b52 Mon Sep 17 00:00:00 2001 From: Stefan Appelhoff Date: Wed, 27 Oct 2021 17:22:07 +0200 Subject: [PATCH 7/7] Apply suggestions from code review --- src/04-modality-specific-files/07-behavioral-experiments.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/04-modality-specific-files/07-behavioral-experiments.md b/src/04-modality-specific-files/07-behavioral-experiments.md index 8550ee8315..0406871b15 100644 --- a/src/04-modality-specific-files/07-behavioral-experiments.md +++ b/src/04-modality-specific-files/07-behavioral-experiments.md @@ -29,7 +29,7 @@ stimulation turned on or off, the data files may be labelled In addition to the metadata that is either: -- RECOMMENDED for side-car JSON files for [tabular data](../02-common-principles.md#tabular-data), or +- RECOMMENDED for sidecar JSON files for [tabular data](../02-common-principles.md#tabular-data), or - REQUIRED for some data that can be found in the `beh` folder (for example `SamplingFrequency` and `StartTime` for `*_.tsv.gz` files),