scSLAT.model.prematch.utils.rotate_via_numpy

scSLAT.model.prematch.utils.rotate_via_numpy(xy, radians)[source]

Use numpy to build a rotation matrix and take the dot product.

Parameters:
  • xy – coordinate

  • radians – rotation radians

Return type:

numpy.ndarray

Returns:

  • Rotated coordinate

  • Refer

  • ———-

  • https (//gist.github.com/LyleScott/e36e08bfb23b1f87af68c9051f985302)