Skip to content

HBClab/renameOldFMRIPREP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

rename the old fmriprep (< v1.2.0) files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published