Skip to content

Commit b82a0de

Browse files
authored
Merge pull request #67 from omar-rifai/example_clinica_pipelines
Example clinica pipelines
2 parents b930466 + ce94099 commit b82a0de

File tree

5 files changed

+124
-0
lines changed

5 files changed

+124
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"@context": "https://raw.githubusercontent.com/omar-rifai/Provenance/main/context.json",
3+
"records": {
4+
"prov:Agent": [
5+
{
6+
"@id": "RRID:Clinica",
7+
"@type": "prov:SoftwareAgent",
8+
"label": "Clinica"
9+
}
10+
],
11+
"prov:Activity": [
12+
{
13+
"@id": "uuid:38133b39-f2fe-4746-aa3c-e3eca1b8abb4",
14+
"label": "adni-to-bids",
15+
"command": "clinica convert adni-to-bids path/to/adni/raw path/to/clinical_data path/to/bids",
16+
"wasAssociatedWith": "RRID:Clinica",
17+
"used": "uuid:0c18a16e-11e9-42cf-b004-019bc6aaa76b"
18+
}
19+
],
20+
"prov:Entity": [
21+
{
22+
"@id": "uuid:0c18a16e-11e9-42cf-b004-019bc6aaa76b",
23+
"label": "Dicom 022_S_0004",
24+
"prov:atLocation": "/path/to/adni/data/raw/"
25+
},
26+
{
27+
"@id": "uuid:6cada670-8bf2-44ef-80ae-71796eb5ecd7",
28+
"label": "sub-ADNI022S0004_ses-M00_T1w.nii.gz",
29+
"atLocation": "/path/to/bids/sub-ADNI022S0004/ses-M00/anat/sub-ADNI022S0004_ses-M00_T1w.nii.gz",
30+
"wasGeneratedBy": "uuid:38133b39-f2fe-4746-aa3c-e3eca1b8abb4"
31+
}
32+
]
33+
}
34+
}
84 KB
Loading
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
## 2-step workflow using Clinica (https://github.com/aramis-lab/clinica)
2+
3+
---
4+
5+
### Workflow
6+
7+
<center>
8+
<img src="clinica_pipelines.png" width="90%" position="center">
9+
</center>
10+
11+
---
12+
13+
### Generate a graph
14+
15+
from the root of this project
16+
17+
```bash
18+
python bids_prov/visualize.py examples/clinica_pipelines/adni-to-bids.jsonld examples/clinica_pipelines/t1linear_mat.jsonld examples/clinica_pipelines/t1linear_nii.jsonld -o clinica_pipelines.png
19+
```
20+
21+
generates the graph illustrating the provenance of files related to two Clinica pipelines (adni-to-bids and t1-linear)
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"@context": "https://raw.githubusercontent.com/omar-rifai/Provenance/main/context.json",
3+
"records":{
4+
"prov:Agent" : [{
5+
"@id": "uuid:5da92f66-bfec-11ec-9d64-0242ac120002",
6+
"RRID": "Clinica",
7+
"@type": "prov:SoftwareAgent",
8+
"Label": "Clinica v0.6.0",
9+
"Version": "v0.6.0"
10+
}],
11+
"prov:Activity": [
12+
{
13+
"@id": "uuid:2c2964f2-f865-41cc-a4e9-5d4f4ecaec13",
14+
"label": "t1-linear",
15+
"command": "run t1-linear /path/to/bids ws/CAPS_t1linear -np 4 -tsv subjects.tsv -ui",
16+
"parameters": {
17+
"uncropped_image": true
18+
},
19+
"wasAssociatedWith": "uuid:5da92f66-bfec-11ec-9d64-0242ac120002",
20+
"used": [
21+
"uuid:6cada670-8bf2-44ef-80ae-71796eb5ecd7"
22+
]
23+
}
24+
],
25+
"prov:Entity": [
26+
{
27+
"@id": "uuid:696a079c-3618-4e0d-87aa-b60965c86127",
28+
"label": "sub-ADN..-MNI152NLin2009cSym_res-1x1x1_affine.mat",
29+
"wasGeneratedBy": "uuid:2c2964f2-f865-41cc-a4e9-5d4f4ecaec13"
30+
}
31+
32+
]
33+
}
34+
}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"@context": "https://raw.githubusercontent.com/omar-rifai/Provenance/main/context.json",
3+
"records":{
4+
"prov:Agent" : [{
5+
6+
"@id": "uuid:5da92f66-bfec-11ec-9d64-0242ac120002",
7+
"RRID": "Clinica",
8+
"@type": "prov:SoftwareAgent",
9+
"Label": "Clinica v0.6.0",
10+
"Version": "v0.6.0"
11+
}],
12+
"prov:Activity": [
13+
{
14+
"@id": "uuid:2c2964f2-f865-41cc-a4e9-5d4f4ecaec13",
15+
"label": "t1-linear",
16+
"command": "clinica run t1-linear /path/to/bids ws/CAPS_t1linear -np 4 -tsv subjects.tsv -ui",
17+
"parameters": {
18+
"uncropped_image": true
19+
},
20+
"wasAssociatedWith": "uuid:5da92f66-bfec-11ec-9d64-0242ac120002",
21+
"used": [
22+
"uuid:6cada670-8bf2-44ef-80ae-71796eb5ecd7"
23+
]
24+
}
25+
],
26+
"prov:Entity": [
27+
{
28+
"@id": "uuid:5ebd15a4-0051-46e1-ada0-d718f39b2e2c",
29+
"label": "sub-ADN..-MNI152NLin2009cSym_res-1x1x1_affine.nii",
30+
"wasGeneratedBy": "uuid:2c2964f2-f865-41cc-a4e9-5d4f4ecaec13"
31+
}
32+
33+
]
34+
}
35+
}

0 commit comments

Comments
 (0)