@classmethod
def from_pybedtools(cls, interval):
    """Create the ranges object from `pybedtools.Interval`

        # Arguments
            interval: `pybedtools.Interval` instance
        """
    return cls(chrom=interval.chrom, start=interval.start, end=interval.
        stop, name=interval.name, score=interval.score, strand=interval.
        strand, attrs=dict(interval.attrs or dict()))
