mnefun.repeat_coreg

mnefun.repeat_coreg(subject, subjects_dir=None, subjects_dir_old=None, overwrite=False, verbose=None)

Repeat a mne coreg warping of an MRI.

This is useful for example when bugs are fixed with mne.scale_mri().

Warning

This function should not be used when the parameters in 'MRI scaling parameters.cfg' have been changed.

Parameters:
subjectstr

The subject name.

subjects_dirstr | None

The subjects directory where the redone subject should go. The template/surrogate MRI must also be in this directory.

subjects_dir_oldstr | None

The subjects directory where the old subject is. Can be None to use subjects_dir.

overwritebool

If True (default False), overwrite an existing subject directory if it exists.

verbosestr | None

The verbose level to use.

Returns:
out_dirstr

The output subject directory.