fsqc.checkRotation

This module provides a function to determine rotation angles of the Talairach transform

fsqc.checkRotation.checkRotation(subjects_dir, subject)[source]

CheckRotation determines rotation angles of the Talairach transform.

Parameters:
subjects_dirstr

The directory containing subject data.

subjectstr

The name of the subject.

Returns:
rot_tal_xfloat

Rotation angle around the x-axis in radians.

rot_tal_yfloat

Rotation angle around the y-axis in radians.

rot_tal_zfloat

Rotation angle around the z-axis in radians.

Notes

The unit of rotations is radians.

Requires a valid mri/transforms/talairach.lta file and the ‘transforms3d’ python package. If not found, NaNs will be returned.