Skip to content

Commit 66fd804

Browse files
committed
enh tables in modality agnostic files
1 parent 11fdc8f commit 66fd804

File tree

2 files changed

+35
-32
lines changed

2 files changed

+35
-32
lines changed

src/02-common-principles.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -426,13 +426,13 @@ Note that if a field name included in the data dictionary matches a column name
426426
then that field MUST contain a description of the corresponding column,
427427
using an object containing the following fields:
428428

429-
| Field name | Requirement level | Data type | Definition |
430-
| ----------- | ----------------- | ------------------------- | --------------------------------------------------------------------------------------------------------------- |
431-
| LongName | OPTIONAL | [string][] | Long (unabbreviated) name of the column. |
432-
| Description | RECOMMENDED | [string][] | Description of the column. |
433-
| Levels | RECOMMENDED | [object][] of [strings][] | For categorical variables: An object of possible values (keys) and their descriptions (values). |
434-
| Units | RECOMMENDED | [string][] | Measurement units. SI units in CMIXF formatting are RECOMMENDED (see [Units](./02-common-principles.md#units)). |
435-
| TermURL | RECOMMENDED | [string][] | URL pointing to a formal definition of this type of data in an ontology available on the web. |
429+
| **Key name** | **Requirement level** | **Data type** | **Description** |
430+
| ------------ | --------------------- | ------------------------- | --------------------------------------------------------------------------------------------------------------- |
431+
| LongName | OPTIONAL | [string][] | Long (unabbreviated) name of the column. |
432+
| Description | RECOMMENDED | [string][] | Description of the column. |
433+
| Levels | RECOMMENDED | [object][] of [strings][] | For categorical variables: An object of possible values (keys) and their descriptions (values). |
434+
| Units | RECOMMENDED | [string][] | Measurement units. SI units in CMIXF formatting are RECOMMENDED (see [Units](./02-common-principles.md#units)). |
435+
| TermURL | RECOMMENDED | [string][] | URL pointing to a formal definition of this type of data in an ontology available on the web. |
436436

437437
Please note that while both `Units` and `Levels` are RECOMMENDED, typically only one
438438
of these two fields would be specified for describing a single TSV file column.

src/03-modality-agnostic-files.md

Lines changed: 28 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,20 @@ Templates:
1414
The file `dataset_description.json` is a JSON file describing the dataset.
1515
Every dataset MUST include this file with the following fields:
1616

17-
| **Field name** | **Definition** |
18-
| ------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
19-
| Name | REQUIRED. Name of the dataset. |
20-
| BIDSVersion | REQUIRED. The version of the BIDS standard that was used. |
21-
| HEDVersion | RECOMMENDED if HED tags are used. The version of the HED schema used to validate HED tags for study. |
22-
| DatasetType | RECOMMENDED. The interpretation of the dataset. MUST be one of `"raw"` or `"derivative"`. For backwards compatibility, the default value is `"raw"`. |
23-
| License | RECOMMENDED. The license for the dataset. The use of license name abbreviations is RECOMMENDED for specifying a license (see [Appendix II](./99-appendices/02-licenses.md)). The corresponding full license text MAY be specified in an additional `LICENSE` file. |
24-
| Authors | OPTIONAL. List of individuals who contributed to the creation/curation of the dataset. |
25-
| Acknowledgements | OPTIONAL. Text acknowledging contributions of individuals or institutions beyond those listed in Authors or Funding. |
26-
| HowToAcknowledge | OPTIONAL. Text containing instructions on how researchers using this dataset should acknowledge the original authors. This field can also be used to define a publication that should be cited in publications that use the dataset. |
27-
| Funding | OPTIONAL. List of sources of funding (grant numbers). |
28-
| EthicsApprovals | OPTIONAL. List of ethics committee approvals of the research protocols and/or protocol identifiers. |
29-
| ReferencesAndLinks | OPTIONAL. List of references to publication that contain information on the dataset, or links. |
30-
| DatasetDOI | OPTIONAL. The Document Object Identifier of the dataset (not the corresponding paper). |
17+
| **Key name** | **Requirement level** | **Data type** | **Definition** |
18+
| ------------------ | --------------------- | ------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
19+
| Name | REQUIRED | [string][] | Name of the dataset. |
20+
| BIDSVersion | REQUIRED | [string][] | The version of the BIDS standard that was used. |
21+
| HEDVersion | RECOMMENDED | [string][] | If HED tags are used: The version of the HED schema used to validate HED tags for study. |
22+
| DatasetType | RECOMMENDED | [string][] | The interpretation of the dataset. MUST be one of `"raw"` or `"derivative"`. For backwards compatibility, the default value is `"raw"`. |
23+
| License | RECOMMENDED | [string][] | The license for the dataset. The use of license name abbreviations is RECOMMENDED for specifying a license (see [Appendix II](./99-appendices/02-licenses.md)). The corresponding full license text MAY be specified in an additional `LICENSE` file. |
24+
| Authors | OPTIONAL | [array][] of [strings][] | List of individuals who contributed to the creation/curation of the dataset. |
25+
| Acknowledgements | OPTIONAL | [string][] | Text acknowledging contributions of individuals or institutions beyond those listed in Authors or Funding. |
26+
| HowToAcknowledge | OPTIONAL | [string][] | Text containing instructions on how researchers using this dataset should acknowledge the original authors. This field can also be used to define a publication that should be cited in publications that use the dataset. |
27+
| Funding | OPTIONAL | [array][] of [strings][] | List of sources of funding (grant numbers). |
28+
| EthicsApprovals | OPTIONAL | [array][] of [strings][] | List of ethics committee approvals of the research protocols and/or protocol identifiers. |
29+
| ReferencesAndLinks | OPTIONAL | [array][] of [strings][] | List of references to publication that contain information on the dataset, or links. |
30+
| DatasetDOI | OPTIONAL | [string][] | The Document Object Identifier of the dataset (not the corresponding paper). |
3131

3232
Example:
3333

@@ -69,21 +69,21 @@ In addition to the keys for raw BIDS datasets,
6969
derived BIDS datasets include the following REQUIRED and RECOMMENDED
7070
`dataset_description.json` keys:
7171

72-
| **Key name** | **Description** |
73-
| -------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
74-
| GeneratedBy | REQUIRED. List of [objects][] with at least one element. |
75-
| SourceDatasets | RECOMMENDED. A list of [objects][] specifying the locations and relevant attributes of all source datasets. Valid fields in each object include `URL`, `DOI`, and `Version`. |
72+
| **Key name** | **Requirement level** | **Data type** | **Definition** |
73+
| -------------- | --------------------- | ------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
74+
| GeneratedBy | REQUIRED | [array][] of [objects][] | Used to specify provenance of the derived dataset. See table below for contents of each object. |
75+
| SourceDatasets | RECOMMENDED | [array][] of [objects][] | Used to specify the locations and relevant attributes of all source datasets. Valid keys in each object include `URL`, `DOI`, and `Version` with [string][] values. |
7676

7777
Each object in the `GeneratedBy` list includes the following REQUIRED, RECOMMENDED
7878
and OPTIONAL keys:
7979

80-
| **Key name** | **Description** |
81-
| ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
82-
| Name | REQUIRED. Name of the pipeline or process that generated the outputs. Use `"Manual"` to indicate the derivatives were generated by hand, or adjusted manually after an initial run of an automated pipeline. |
83-
| Version | RECOMMENDED. Version of the pipeline. |
84-
| Description | OPTIONAL. Plain-text description of the pipeline or process that generated the outputs. RECOMMENDED if `Name` is `"Manual"`. |
85-
| CodeURL | OPTIONAL. URL where the code used to generate the derivatives may be found. |
86-
| Container | OPTIONAL. [Object][] specifying the location and relevant attributes of software container image used to produce the derivative. Valid fields in this object include `Type`, `Tag` and `URI`. |
80+
| **Key name** | **Requirement level** | **Data type** | **Definition** |
81+
| ------------ | --------------------- | ------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
82+
| Name | REQUIRED | [string][] | Name of the pipeline or process that generated the outputs. Use `"Manual"` to indicate the derivatives were generated by hand, or adjusted manually after an initial run of an automated pipeline. |
83+
| Version | RECOMMENDED | [string][] | Version of the pipeline. |
84+
| Description | OPTIONAL | [string][] | Plain-text description of the pipeline or process that generated the outputs. RECOMMENDED if `Name` is `"Manual"`. |
85+
| CodeURL | OPTIONAL | [string][] | URL where the code used to generate the derivatives may be found. |
86+
| Container | OPTIONAL | [object][] | Used to specify the location and relevant attributes of software container image used to produce the derivative. Valid keys in this object include `Type`, `Tag` and `URI` with [string][] values. |
8787

8888
Example:
8989

@@ -381,3 +381,6 @@ code organization of these scripts at the moment.
381381

382382
[objects]: https://www.json.org/json-en.html
383383
[object]: https://www.json.org/json-en.html
384+
[string]: https://www.w3schools.com/js/js_json_syntax.asp
385+
[strings]: https://www.w3schools.com/js/js_json_syntax.asp
386+
[array]: https://www.w3schools.com/js/js_json_arrays.asp

0 commit comments

Comments
 (0)