qc
quality control for MRS data
motioncheck
-
MRS.qc.motioncheck(ref_file, end_file, out_path=None, thres=5.0)
Checks motion between structural scans of the same modality.
Ideally obtained at the beginning and end of a scanning session.
Parameters: | ref_file: nifti file :
Nifti file of first localizer acquired at the beginning of the session
end_file: nifti :
nifti file of the localizer acquired at the end of the session
thres: float :
threshold in mm of maximum allowed motion. Default 5mm
|
Returns: | rms : float
root mean square of xyz translation
passed: boolean :
indicates if motion passed threshold: 1 if passed, 0 if failed.
|