aces / Loris-MRI

The set of scripts that preprocess and insert MRI data into the database.
10 stars 50 forks source link

Add a script to correct incorrectly saved list in parameter file #1034

Closed cmadjar closed 7 months ago

cmadjar commented 7 months ago

Description

This adds a tool script to correct the list values incorrectly saved in parameter_file table due to a bug in the python insert query that has been resolved by https://github.com/aces/Loris-MRI/pull/1025.

Close https://github.com/aces/Loris-MRI/issues/1033

Notes for existing projects

If you have been any of the python pipeline to insert MRI data (bids_import.py or the dcm2bids pipeline) then, it is very likely that some of the list were improperly saved in parameter_file. The following command can be run from the root directory of the LORIS-MRI code:

python tools/correct_lists_incorrectly_saved_in_parameter_file.py -p database_config.py

Note: this is not necessary if you have been only using the perl dcm2mnc insertion pipeline.