iCLIP.utils.randomiseSites¶
-
iCLIP.utils.randomiseSites(profile, start, end, keep_dist=True)¶ Randomise clipped sites within an interval.
If keep_dist is true, then reads on the same base are kept togehter, preverving the distribution of per-base read counts.
Parameters: - profile (pandas.Series) – Cross-link profile to be randomised. Index is base, the value is the number of cross-links at that base.
- start (int) – Lowest bases at which allow randomised bases to fall.
- end (int) – Highest base at which to allow randomised bases to fall.
- keep_dist (bool, optional) – Maintain the count-per-base distribution by moving cross-links on the same base together.
Returns: Randomised profile, in sparse format.
Return type: pandas.Series