Closed thomasbtnfr closed 1 year ago
This is awesome! Thank you @thomasbtnfr. I tried to updated the mapping file to include more labels for SPM but the tests are now failing. Could you help me understand what I did wrong? Thank you!
It must come from the internal functioning, you filled in the file correctly. I fix that in the day
The problem came from the activity labels. Indeed, I replaced completely the existing label by the mapping but in the global process the "_{activity number}" is actually very important especially for the "used" and "wasGeneratedBy" keys. That's why I added the activity number after the mapping which solves the current problem. At the end of the script I added a post processing to remove this activity number which I think is not interesting for the users.
Now, example of graph:
Great! Thank you!
A label mapping from a json file has been added. The file is called
spm_labels.json
and is located in the following directorybids_prov/mapping_labels
.Here is its format:
For example, we can have the following dictionary:
If we have the following label
spm.spatial.coreg.estimate.ref(1)
, it will be transformed intoCoregistration
because the key in our dict in contained in `spm.spatial.coreg.estimate.ref(1).spm.spatial.coreg.estimate.ref(1)
->Coregistration
Application example with the 1st result example: