fmriprep icon indicating copy to clipboard operation
fmriprep copied to clipboard

fmriprep-apply CLI tool

Open effigies opened this issue 3 years ago • 2 comments

Given an input directory and an output directory, generate a new output directory that applies all the relevant transforms found in the output directory to the images in the input directory. Unclear how much we want to validate that inputs match outputs in terms of metadata (e.g., RepetitionTime), but there should be a mode to disable any checks that are not absolutely necessary.

Part of #2207.

effigies avatar Jun 24 '22 09:06 effigies

Note that not all transformations necessary to generate the output data will be pre-calculated and available in the existing BIDS Derivatives fmriprep directory. Eg. slice timing correction will need to be re-processed.

Lestropie avatar Jun 24 '22 09:06 Lestropie

After an initial attempt at this, I decided that implementing and maintaining a stand-alone command for performing this reconstruction would be cumbersome. I am instead focusing on having a command-line option to the main fmriprep executable that regenerates the output fMRI data based on a prior fMRIPrep execution, re-computing only what needs to be re-computed and pulling data from the existing output derivatives directory where relevant.

Lestropie avatar Jul 03 '22 02:07 Lestropie

This should be doable with --derivatives minimal=$prerun

effigies avatar Nov 21 '23 13:11 effigies