Adjust angular data so that the absolute difference of any of the observations from its mean is not greater than 180 degrees.
wrap.tor(data, wrapav=TRUE, avestruc=NULL)
a numeric vector or matrix of torsion angle data as
logical, if TRUE average structure is also ‘wrapped’
a numeric vector corresponding to the average structure
This is a basic utility function for coping with the periodicity of torsion angle data, by ‘wraping’ angular data such that the absolute difference of any of the observations from its column-wise mean is not greater than 180 degrees.
A numeric vector or matrix of wrapped torsion angle data.
Grant, B.J. et al. (2006) Bioinformatics 22, 2695--2696.