BIDSprov for a copy

9 views
Skip to first unread message

Dr Cyril, Pernet

unread,
Sep 17, 2022, 11:29:12 AM9/17/22
to bids-di...@googlegroups.com, Satrajit Ghosh, Camille Maumet
Hi BIDSprov gurus

I have a simple case in which I use the anat from study 1 into study 2,
but for the sake of having full info I want to prov the anat.

Looking at the spec I wasn't 100% sure this works, can someone confirm
that use case?

{
"@context": "https://purl.org/nidash/bidsprov/context.json",
"BIDSProvVersion": "0.0.1",
"Records": {
    "Activity": [{
    "@id": "copy",
    "label": "cp",
    "command": "cp
/bidsdata/study1/sub-56203/ses-01/anat/sub-56203_ses-01_acq-mprage_rec-norm_T1w.nii.gz
/bidsdata/study2/sub-56203/ses-01/anat/"
    }],
  "Entity": [{
    "@id": "bash",
    "label": "terminal",
    "AtLocation": "/bidsdata/study1/sub-56203/ses-01/anat/",
    "digest": "md5sum"
    }]
}
}

thx

cyril


Satrajit Ghosh

unread,
Sep 17, 2022, 11:50:11 AM9/17/22
to bids-di...@googlegroups.com, Camille Maumet
hi cyril,

to complete the provenance you would need a few more links. changes marked in bold. just not that the atlocation could change to the bids reference convention in the future.

cheers,

satra

{

"@context": "https://purl.org/nidash/bidsprov/context.json",
"BIDSProvVersion": "0.0.1",
"Records": {
     "Activity": [{
     "@id": <uuid1>,
     "label": "Copy",

     "command": "cp
/bidsdata/study1/sub-56203/ses-01/anat/sub-56203_ses-01_acq-mprage_rec-norm_T1w.nii.gz
/bidsdata/study2/sub-56203/ses-01/anat/",
     "Used": <uuid2>,
     "Generated": <uuid3>
     }],
   "Entity": [
    {
     "@id": <uuid2>,
     "label": "T1",
     "AtLocation": "/bidsdata/study1/sub-56203/ses-01/anat/sub-56203_ses-01_acq-mprage_rec-norm_T1w.nii.gz",
     "digest": "1213ba123ed..."
     },
    {
     "@id": <uuid3>,
     "label": "T1 copy",
     "AtLocation": "/bidsdata/study2/sub-56203/ses-01/anat/sub-56203_ses-01_acq-mprage_rec-norm_T1w.nii.gz",
     "digest": "1213ba123ed...",
     "GeneratedBy": <uuid1>
     },
     ]
}
}



--
We are all colleagues working together to shape brain imaging for tomorrow, please be respectful, gracious, and patient with your fellow group members.
---
You received this message because you are subscribed to the Google Groups "bids-discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bids-discussi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bids-discussion/10b9b73f-baf4-9371-0da1-3762c2c864f0%40gmail.com.

‪‪Dr Cyril Pernet‬‬

unread,
Sep 17, 2022, 1:13:17 PM9/17/22
to Satrajit Ghosh, bids-di...@googlegroups.com, Camille Maumet
Ah thx, ok got the generated by and uuid ref now, cool 




Sent from my phone

Satrajit Ghosh

unread,
Sep 17, 2022, 2:18:27 PM9/17/22
to bids-di...@googlegroups.com, Camille Maumet
hi cyril,

also, both used and generated can be lists of entities, since many tools use multiple inputs and produce multiple outputs.

cheers,

satra

Reply all
Reply to author
Forward
0 new messages