You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dataset is the same as the one for [example dcm2niix_1](/BEP028_BIDSprov/examples/dcm2niix_1/README.md#source-dataset).
53
53
54
-
###Notes
54
+
## Notes
55
55
56
56
In this example, we rely on the fact that nodes defined in the `prov/*.prov.jsonld` files have `bids::prov/` as base IRIs. Here are the involved nodes:
57
57
*`bids::prov/#dcm2niix-xce5m9z3`
58
58
*`bids::prov/#fedora-b7hmkmqd`
59
59
60
-
###Limitations
60
+
## Limitations
61
61
62
62
The `bids::prov/#fedora-b7hmkmqd` node defined in `prov/environments.prov.jsonld` is defined as an `Entity` as the current context (commit [ce0eb77](https://github.com/bids-standard/BEP028_BIDSprov/commit/ce0eb774abd9527e594bd69212a87d5047864678)) does not define the `Environments` term.
Copy file name to clipboardExpand all lines: examples/dcm2niix_3/README.md
+41-47Lines changed: 41 additions & 47 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,44 +1,59 @@
1
1
# BIDS Prov example for `dcm2niix`
2
2
3
-
This example aims at showing the capture of provenance for a [`dcm2niix`](https://github.com/rordenlab/dcm2niix) usecase: converting DICOM data to Nifti files within a BIDS dataset.
3
+
This example aims at showing provenance traces from a DICOM to Nifti conversion, performed by `dcm2niix` on a Linux-based (Fedora) operating system.
4
4
5
-
Source data for this example can be found here: https://github.com/psychoinformatics-de/hirni-demo. This is a datalad dataset containing anatomical and functional MRI acquisitions. The contents of this dataset can be downloaded using:
Dataset is the same as the one for [example dcm2niix_1](/BEP028_BIDSprov/examples/dcm2niix_1/README.md#source-dataset).
55
+
56
+
## Notes
42
57
43
58
We introduce the following BIDS entity that is currently not existing:
44
59
*`prov`
@@ -54,26 +69,6 @@ We introduce the following BIDS suffixes that are currently not existing:
54
69
55
70
We use the `GeneratedBy` field of JSON sidecars to link to `Activities` that created the file the sidecars refers to.
56
71
57
-
## Merging JSON in a JSON-LD file and plotting graph
58
-
59
-
The python script `code/merge_prov.py` aims at merging all these provenance records into one JSON-LD graph.
60
-
61
-
```shell
62
-
mkdir prov/merged/
63
-
python code/merge_prov.py
64
-
```
65
-
66
-
From that, we generate the JSON-LD graph `prov/merge/prov-dcm2niix.prov.jsonld`. Then we were able to plot the graph as a png file. We used this command:
In this example, we rely on the fact that nodes defined in the `prov/*.prov.jsonld` files have `bids::prov/` as base IRIs.
78
73
79
74
The `code/merge_prov.py` code is responsible for:
@@ -86,7 +81,6 @@ The `code/merge_prov.py` code is responsible for:
86
81
87
82
2. Listing all the DICOM files used by the dcm2niix conversion steps would lower readability of the JSON-LD provenance files. Therefore we only listed the following directories as `Entities`:
0 commit comments