circhic.utils.convert_xy_to_thetar

circhic.utils.convert_xy_to_thetar(coordinates, lengths, resolution=None)

Convert from (x, y) coordinates to (theta, r)

Parameters
coordinatestuple of ndarray

(x, y) where x and y are in genomics coordinates

lengthsndarray (l, )

the lengths of the chromosome

resolution : integer, optional, default: None

Resolution

Returns
(theta, s) tuple of polar coordinates