pybedtools.bedtool.BedTool.random_subset¶
- BedTool.random_subset(*args, **kwargs)[source]¶
Return a BedTool containing a random subset.
NOTE: using
nwill be slower and use more memory than usingf.- Parameters:
- nint
Number of features to return. Only one of
norfcan be provided.- ffloat, 0 <= f <= 1
Fraction of features to return. Cannot be provided with
n.- seedfloat or int
Set random.seed