def __init__(self, start, stop, *, chromosome=None, strand='+', data=None):
        """
        Create a genomic interval. Either provide two GenomicPositions or two integers and specify a chromosome.

        :param start: the start position of the interval (inclusive, 0-indexed)
        :type start: int | GenomicPosition
        :param stop: the stop position of the interval (not inclusive)
        :type stop: int | GenomicPosition
        :param str chromosome: chromosome identifier for interval
        :param str strand: either '+' or '-'
        :param data: extra data to be associated with the interval
        """
        if chromosome is not None:
            start = GenomicPosition(chromosome, start, strand=strand)
            stop = GenomicPosition(chromosome, stop, strand=strand)
        super().__init__(start, stop, data=data)
def __init__ ( self , start , stop , * , chromosome = None , strand = '+' , data = None ) : if chromosome is not None : start = GenomicPosition ( chromosome , start , strand = strand ) stop = GenomicPosition ( chromosome , stop , strand = strand ) super ( ) . __init__ ( start , stop , data = data )
Create a genomic interval. Either provide two GenomicPositions or two integers and specify a chromosome.

        :param start: the start position of the interval (inclusive, 0-indexed)
        :type start: int | GenomicPosition
        :param stop: the stop position of the interval (not inclusive)
        :type stop: int | GenomicPosition
        :param str chromosome: chromosome identifier for interval
        :param str strand: either '+' or '-'
        :param data: extra data to be associated with the interval