pybedtools.bedtool.BedTool.relative_distance¶
- BedTool.relative_distance(other: BedTool, genome: dict | str | None = None, g: str | None = None) Iterator[float][source]¶
Returns an iterator of relative distances between features in self and other.
First computes the midpoints of self and other, then returns distances of each feature in
otherrelative to the distance betweenselffeatures.Requires either
genome(dictionary of chromsizes or assembly name) org(filename of chromsizes file).