Skip to content

[ENH][BEP028] Specification update for BEP028 BIDS-Prov #2099

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 24 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
b05b950
[SPEC] first draft for BEP028 BIDS-Prov
bclenet Apr 10, 2025
9ae1649
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Apr 10, 2025
f572174
Adapting markdown to mkdocs
bclenet Apr 22, 2025
ee0d30d
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Apr 22, 2025
17103ab
Split modality agnostic files content into separate sections
bclenet Apr 23, 2025
3165456
Update links to modality-agnostic-files section
bclenet Apr 23, 2025
5e0a9ad
Update links to modality-agnostic-files section
bclenet Apr 23, 2025
6507ac4
Remove broken links in CHANGES and pregh-changes files
bclenet Apr 23, 2025
b619de1
Broken paragraph links
bclenet Apr 23, 2025
74722b1
Citing BIRS Provenance + removing 'BIDS-Prov' from spec
bclenet Apr 23, 2025
34411ba
Into JSON only provenance files
bclenet Apr 25, 2025
248d2b8
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Apr 25, 2025
ac7aff4
Into JSON only provenance files
bclenet Apr 25, 2025
3fef3dc
Merge branch 'spec-refac' into BEP028_spec
bclenet Apr 25, 2025
03026d1
Flags for markdown code blocks
bclenet Apr 25, 2025
a3dd018
Merge branch 'master' into BEP028_spec
bclenet Apr 25, 2025
0202806
Typo in provenance.md
bclenet Apr 25, 2025
58055b7
Remark check
bclenet May 6, 2025
a3cef66
Removing non latin content
bclenet May 7, 2025
c9a65b7
Merge branch 'master' into BEP028_spec
bclenet May 13, 2025
4f89eff
Removing inline description of activities inside dataset_description
bclenet May 15, 2025
3d45ac9
Update description for suffixes
bclenet May 15, 2025
ae91f1d
Adding provenance contexte
bclenet May 15, 2025
197e173
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] May 15, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ nav:
- The BIDS Specification:
- Introduction: introduction.md
- Common principles: common-principles.md
- Modality agnostic files: modality-agnostic-files.md
- Modality agnostic files:
- Dataset description: modality-agnostic-files/dataset-description.md
- Data description: modality-agnostic-files/data-description.md
- Code: modality-agnostic-files/code.md
- Provenance: modality-agnostic-files/provenance.md
- Modality specific files:
- Magnetic Resonance Imaging: modality-specific-files/magnetic-resonance-imaging-data.md
- Magnetoencephalography: modality-specific-files/magnetoencephalography.md
Expand Down Expand Up @@ -101,21 +105,15 @@ extra:

extra_javascript:
- js/jquery-3.6.0.min.js
extra_css:
- css/tsv.css
markdown_extensions:
- toc:
anchorlink: true
- attr_list
- pymdownx.superfences:
preserve_tabs: true
custom_fences:
- name: tsv
class: tsv
format: !!python/name:bidsschematools.render.tsv.fence
- name: tsvgz
class: tsv
format: !!python/name:bidsschematools.render.tsv.fence
- admonition
- pymdownx.details
plugins:
Expand All @@ -132,7 +130,10 @@ plugins:
redirect_maps:
"01-introduction.md": "introduction.md"
"02-common-principles.md": "common-principles.md"
"03-modality-agnostic-files.md": "modality-agnostic-files.md"
"03-modality-agnostic-files/01-dataset-description.md": "modality-agnostic-files/dataset-description.md"
"03-modality-agnostic-files/02-data-description.md": "modality-agnostic-files/data-description.md"
"03-modality-agnostic-files/03-code.md": "modality-agnostic-files/code.md"
"03-modality-agnostic-files/04-provenance.md": "modality-agnostic-files/provenance.md"
"04-modality-specific-files/01-magnetic-resonance-imaging-data.md": "modality-specific-files/magnetic-resonance-imaging-data.md"
"04-modality-specific-files/02-magnetoencephalography.md": "modality-specific-files/magnetoencephalography.md"
"04-modality-specific-files/03-electroencephalography.md": "modality-specific-files/electroencephalography.md"
Expand Down
2 changes: 1 addition & 1 deletion src/CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@
## 1.0.1-rc1

- Added T1 Rho maps: [4.1 Anatomy imaging data](modality-specific-files/magnetic-resonance-imaging-data.md#anatomy-imaging-data).
- Added support for phenotypic information split into multiple files: [3.2 Participant key file](modality-agnostic-files.md#participants-file).
- Added support for phenotypic information split into multiple files: 3.2 Participant key file.
- Added recommendations for multi site datasets.
- Added `SoftwareVersions`.
- Added `run-<run_index>` to the phase encoding maps. Improved the description.
Expand Down
2 changes: 1 addition & 1 deletion src/appendices/meg-file-formats.md
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ entity to indicate each part.
If there are multiple parts of a recording and the optional `scans.tsv` is provided,
remember to list all files separately in `scans.tsv` and that the entries
for the `acq_time` column in `scans.tsv` MUST all be identical, as described in
[Scans file](../modality-agnostic-files.md#scans-file).
[Scans file](../modality-agnostic-files/data-description.md#scans-file).

Example:

Expand Down
2 changes: 1 addition & 1 deletion src/appendices/qmri.md
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ and a guide for using macros can be found at
### Metadata requirements for qMRI maps

As qMRI maps are stored as derivatives, they are subjected to the metadata requirements of
[derived datasets](../modality-agnostic-files.md#derived-dataset-and-pipeline-description).
[derived datasets](../modality-agnostic-files/dataset-description.md#derived-dataset-and-pipeline-description).

An example `dataset_description.json` for a qMRI map derivatives directory:

Expand Down
10 changes: 5 additions & 5 deletions src/common-principles.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ Data for each subject are placed in subdirectories named "`sub-<label>`",
where string "`<label>`" is substituted with the unique identification
label of each subject.
Additional information on each participant MAY be provided in a
[participants file](modality-agnostic-files.md#participants-file)
[participants file](modality-agnostic-files/data-description.md#participants-file)
in the root directory of the dataset.

If data for the subject were acquired across multiple sessions, then within
Expand All @@ -119,7 +119,7 @@ label for each session.
In datasets where at least one subject has more than one session, this
additional subdirectory later SHOULD be added for all subjects in the dataset.
Additional information on each session MAY be provided in a
[sessions file](modality-agnostic-files.md#sessions-file)
[sessions file](modality-agnostic-files/data-description.md#sessions-file)
within the subject directory.

Within the session subdirectory (or the subject subdirectory if no
Expand Down Expand Up @@ -1144,8 +1144,8 @@ to suppress warnings or provide interpretations of your filenames.

<!-- Link Definitions -->

[dataset-description]: modality-agnostic-files.md#dataset-description
[dataset_description.json]: modality-agnostic-files.md#dataset_descriptionjson
[derived-dataset-description]: modality-agnostic-files.md#derived-dataset-and-pipeline-description
[dataset-description]: modality-agnostic-files/data-description.md
[dataset_description.json]: modality-agnostic-files/data-description.md#dataset_descriptionjson
[derived-dataset-description]: modality-agnostic-files/data-description.md#derived-dataset-and-pipeline-description
[deprecated]: #definitions
[uris]: #uniform-resource-indicator
2 changes: 1 addition & 1 deletion src/derivatives/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ for GIFTI files.

[storage]: ../common-principles.md#storage-of-derived-datasets

[derived-dataset-description]: ../modality-agnostic-files.md#derived-dataset-and-pipeline-description
[derived-dataset-description]: ../modality-agnostic-files/dataset-description.md#derived-dataset-and-pipeline-description

[gifti]: https://www.nitrc.org/projects/gifti/

Expand Down
1 change: 1 addition & 0 deletions src/images/prov_records.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/images/prov_w3c.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions src/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,12 @@ For example:

- (publication forthcoming)

### Other extensions specific publications

#### Provenance

- (publication forthcoming)

### Research Resource Identifier (RRID)

BIDS has also a
Expand Down
2 changes: 1 addition & 1 deletion src/longitudinal-and-multi-site-studies.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Multiple sessions (visits) are encoded by adding an extra layer of directories
and [filenames](common-principles.md#filenames)
in the form of a session (for example `ses-<label>`) and
with a [`*_sessions.tsv` file](modality-agnostic-files.md#sessions-file).
with a [`*_sessions.tsv` file](modality-agnostic-files/data-description.md#sessions-file).

<!-- This block generates a file tree.
A guide for using macros can be found at
Expand Down
12 changes: 12 additions & 0 deletions src/modality-agnostic-files/code.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Code

Template: `code/*`

Source code of scripts that were used to prepare the dataset MAY be stored here.
Examples include deidentification or defacing of the data, or
the conversion from the format of the source data to the BIDS format
(see [source vs. raw vs. derived data](../common-principles.md#source-vs-raw-vs-derived-data)).
Extra care should be taken to avoid including original IDs or
any identifiable information with the source code.
There are no limitations or recommendations on the language and/or
code organization of these scripts at the moment.
Loading
Loading