epitome.functions.get_radius_indices¶
-
epitome.functions.get_radius_indices(radii, r, i, max_index)¶ Gets indices for a given radius r in both directions from index i. Used in generator code to get indices in data for a given radius from genomic loci i.
- Parameters
radii (list) – increasing list of integers indiciating radii
r (int) – Index of which radii
i (int) – center index to access data
max_index (int) – max index which can be accessed
- Returns
exclusive indices for this radius
- Return type
numpy.array