As per version 1.2.x BIDS specification states that a BIDS-compliant dataset MUST include the compulsory file dataset_description.json. See Section 03 (Modality agnostic files) of the BIDS specification.
This small PR ensures that the xnat2bids.py script copies the dataset_description.json JSON file stored in the BIDS resource into the output directory (if present).
The hereby proposed fix shall permit container-service using the xnat2bids setup-command to run up-to-date BIDS apps. Otherwise, BIDS apps might fail running due to invalid BIDS datasets, e.g. see error below running poldracklab/mriqc:0.15.1 container with current setting:
ValueError: 'dataset_description.json' is missing from project root. Every valid BIDS dataset must have this file.
For easy deployment, changes should be propagated in the creation of a new version of the xnat2bids-setup docker image at Docker Hub.
As per version 1.2.x BIDS specification states that a BIDS-compliant dataset MUST include the compulsory file
dataset_description.json
. See Section 03 (Modality agnostic files) of the BIDS specification.This small PR ensures that the
xnat2bids.py
script copies thedataset_description.json
JSON file stored in the BIDS resource into the output directory (if present).The hereby proposed fix shall permit container-service using the
xnat2bids
setup-command to run up-to-date BIDS apps. Otherwise, BIDS apps might fail running due to invalid BIDS datasets, e.g. see error below runningpoldracklab/mriqc:0.15.1
container with current setting:For easy deployment, changes should be propagated in the creation of a new version of the
xnat2bids-setup
docker image at Docker Hub.