Skip to content

Commit c0f2de6

Browse files
committed
Adding provenance files
1 parent a38c8c9 commit c0f2de6

File tree

6 files changed

+71
-4
lines changed

6 files changed

+71
-4
lines changed

examples/dcm2niix_5/README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@ After conversion, and adding provenance traces, the resulting directory tree loo
1212

1313
```
1414
prov/
15-
├── prov-dcm2niix_act.prov.json
16-
├── prov-dcm2niix_env.prov.json
17-
└── prov-dcm2niix_soft.prov.json
15+
├── prov-dcm2niix_act.json
16+
├── prov-dcm2niix_ent.json
17+
├── prov-dcm2niix_env.json
18+
└── prov-dcm2niix_soft.json
1819
sourcedata/
1920
sub-02/
2021
└── anat
@@ -71,7 +72,7 @@ We introduce the following BIDS suffixes that are currently not existing:
7172

7273
We use the `GeneratedBy` field of JSON sidecars to link to `Activities` that created the file the sidecars refers to.
7374

74-
In this example, we rely on the fact that nodes defined in the `prov/*.prov.jsonld` files have `bids::prov/` as base IRIs.
75+
In this example, we rely on the fact that nodes defined in the `prov/*.jsonld` files have `bids::prov/` as base IRIs.
7576

7677
The `code/merge_prov.py` code is responsible for:
7778
* merging the JSON provenance traces into the base JSON-LD graph;
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"Activities": [
3+
{
4+
"Id": "bids::prov/#conversion-00f3a18f",
5+
"Label": "Conversion",
6+
"Command": "dcm2niix -o . -f sub-%i/anat/sub-%i_T1w sourcedata/hirni-demo/acq1/dicoms/example-dicom-structural-master/dicoms",
7+
"AssociatedWith": "bids::prov/#dcm2niix-khhkm7u1",
8+
"Used": [
9+
"bids::prov/#fedora-uldfv058",
10+
"bids::sourcedata/hirni-demo/acq1/dicoms/example-dicom-structural-master/dicoms"
11+
]
12+
}
13+
]
14+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"Entities": [
3+
{
4+
"Id": "bids::sourcedata/hirni-demo/acq1/dicoms/example-dicom-structural-master/dicoms",
5+
"Type": "Entity",
6+
"Label": "dicoms"
7+
}
8+
]
9+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"Environments": [
3+
{
4+
"Id": "bids::prov/#fedora-uldfv058",
5+
"Label": "Fedora release 36 (Thirty Six)",
6+
"OperatingSystem": "GNU/Linux 6.2.15-100.fc36.x86_64"
7+
}
8+
]
9+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"Software": [
3+
{
4+
"Id": "bids::prov/#dcm2niix-khhkm7u1",
5+
"Label": "dcm2niix",
6+
"Version": "v1.0.20220720"
7+
}
8+
]
9+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"Modality": "MR",
3+
"ManufacturersModelName": "nifti2dicom",
4+
"SoftwareVersions": "0.4.11",
5+
"SeriesDescription": "anat-T1w",
6+
"ProtocolName": "anat-T1w",
7+
"ImageType": ["DERIVED", "SECONDARY"],
8+
"RawImage": false,
9+
"SeriesNumber": 401,
10+
"AcquisitionTime": "13:25:18.000000",
11+
"AcquisitionNumber": 1,
12+
"SliceThickness": 0.666667,
13+
"SpacingBetweenSlices": 0.666667,
14+
"ImageOrientationPatientDICOM": [
15+
0.999032,
16+
-0.0217884,
17+
0.0382096,
18+
0.0265195,
19+
0.991414,
20+
-0.128044 ],
21+
"ConversionSoftware": "dcm2niix",
22+
"ConversionSoftwareVersion": "v1.0.20220720",
23+
"GeneratedBy": "bids::prov/#conversion-00f3a18f",
24+
"SidecarGeneratedBy": "bids::prov/#conversion-00f3a18f"
25+
}

0 commit comments

Comments
 (0)