This script updates the names of some of the fmriprep files. Currently I'm ignoring figures. Ideally, I will be covering all anatomical and functional image outputs.
- clone this repository
git clone https://github.com/HBClab/renameOldFMRIPREP.git
- install the requirements
pip install -r requirements.txt
- run the command help
./rename_old_fmriprep/conform_fmriprep.py -h
- run the command on your data
./rename_old_fmriprep/conform_fmriprep.py \
-i /path/to/old/fmriprep \
-o /path/to/new/fmriprep \
-d /path/to/dataset/description/dataset_description.json
The dataset_description.json
is a json file that contains
information about the dataset and the fmriprep version you ran
previously
{
"Name": "test_data",
"BIDSVersion": "1.0.0",
"PipelineDescription": {"Name": "fmriprep", "Version": "1.1.8"}
}
Now your data should be bids derivatives compliant!
Please let me know if something does not work properly in the issues