aces / Loris-MRI

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

[register_processed_data] Add more validation for options -sourceFileID and -inputFileIDs #999

Closed nicolasbrossard closed 1 year ago

nicolasbrossard commented 1 year ago

This PR adds validation to the -sourceFileID and -inputFileIDs options of script register_processed_data.pl:

  1. Validates that the argument for -sourceFileID is a file ID that exists in table files.
  2. Validates that the argument for -inputFileIDs is a list of file IDs separated by ; and that each file ID exists in table files.
  3. Validates that each file ID contained in the list described above is not equal to the source file ID (see 1).

Fixes #989