Skip to content

Latest commit

 

History

History
50 lines (36 loc) · 1.12 KB

README.md

File metadata and controls

50 lines (36 loc) · 1.12 KB

Rename Old FMRIPREP (< v1.2.0) files

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.

Quickstart

  1. clone this repository
git clone https://github.com/HBClab/renameOldFMRIPREP.git
  1. install the requirements
pip install -r requirements.txt
  1. run the command help
./rename_old_fmriprep/conform_fmriprep.py -h
  1. 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