Figure_4/analysis_utils/get_RNA_PET_starts_and_ends.py
def make_intervals(entry):
    """ Extract start and end position of entry and return each as bed interval 
    """
    strand = entry[5]
    rna_pet_start = int(entry[1])
    rna_pet_end = int(entry[2])

    # Set start and end based on strand
    if strand == "+":
        start_interval_1, start_interval_2 = cI.create_interval(rna_pet_start,
                                                                "left", 0)
        end_interval_1, end_interval_2 = cI.create_interval(rna_pet_end,
                                                            "right", 0)
    elif strand == "-":
        start_interval_1, start_interval_2 = cI.create_interval(rna_pet_end,
                                                                "right", 0) 
        end_interval_1, end_interval_2 = cI.create_interval(rna_pet_start,
                                                            "left", 0)
    start_tuple = (start_interval_1, start_interval_2)
    end_tuple = (end_interval_1, end_interval_2)
    return start_tuple, end_tuple
 Extract start and end position of entry and return each as bed interval 
    
Extract start and end position of entry and return each as bed interval
Extract start and end position of entry and return each as bed interval
def make_intervals(entry):
    strand = entry[5]
    rna_pet_start = int(entry[1])
    rna_pet_end = int(entry[2])
    if strand == "+":
        start_interval_1, start_interval_2 = cI.create_interval(rna_pet_start,
                                                                "left", 0)
        end_interval_1, end_interval_2 = cI.create_interval(rna_pet_end,
                                                            "right", 0)
    elif strand == "-":
        start_interval_1, start_interval_2 = cI.create_interval(rna_pet_end,
                                                                "right", 0) 
        end_interval_1, end_interval_2 = cI.create_interval(rna_pet_start,
                                                            "left", 0)
    start_tuple = (start_interval_1, start_interval_2)
    end_tuple = (end_interval_1, end_interval_2)
    return start_tuple, end_tuple
def make_intervals ( entry ) : strand = entry [ 5 ] rna_pet_start = int ( entry [ 1 ] ) rna_pet_end = int ( entry [ 2 ] ) if strand == "+" : start_interval_1 , start_interval_2 = cI . create_interval ( rna_pet_start , "left" , 0 ) end_interval_1 , end_interval_2 = cI . create_interval ( rna_pet_end , "right" , 0 ) elif strand == "-" : start_interval_1 , start_interval_2 = cI . create_interval ( rna_pet_end , "right" , 0 ) end_interval_1 , end_interval_2 = cI . create_interval ( rna_pet_start , "left" , 0 ) start_tuple = ( start_interval_1 , start_interval_2 ) end_tuple = ( end_interval_1 , end_interval_2 ) return start_tuple , end_tuple
Extract start and end position of entry and return each as bed interval
Extract start and end position of entry and return each as bed interval
""" Extract start and end position of entry and return each as bed interval 
    """ # Set start and end based on strand
entry