bids-standard / BEP028_BIDSprov

Organizing and coordinating BIDS extension proposal 28 : BIDS Provenance
https://bids.neuroimaging.io/bep028
Creative Commons Attribution 4.0 International
4 stars 12 forks source link

Add digest field for SPM, FSL, AFNI #103

Closed thomasbtnfr closed 1 year ago

thomasbtnfr commented 1 year ago

The digest field has been added for all 3 parsers.

In order to be able to calculate sha256, the entity files with a prov:atLocation field are generated by hand. This is a post-processing step where we enumerate each entity in the results with the prov:atLocation.

For FSL and AFNI, some problematic cases may occur (a message is displayed in this case) like this one:

  1. The file /home/tbetton/Documents/F-WIN/forked_BEP028_BIDSprov/bids_prov/file_generation/custom_timing_files/ev1.txt is the child of a parent folder that was created as a file previously. To be fixed. -> this means that custom_timing_files was previously generated as an entity (a file) and that ev1.txt cannot be created as it would be "under" a file (not a folder). One solution could be to delete the old files generated previously...
  2. The file /home/tbetton/Documents/F-WIN/forked_BEP028_BIDSprov/bids_prov/file_generation/storage/essicd/data/NIDM-Ex/BIDS_Data/RESULTS/TEST/nidmresults-examples/fsl_voxelwise_p0001.feat is a directory and also a file. To be fixed. -> this means that fsl_voxelwise_p0001.feat -> this means that fsl_voxelwise_p0001.feat was first generated as a folder and then used as a file.

At a later stage, it may be possible to use the real files in https://github.com/incf-nidash/nidmresults-examples if they match well.