def finding_ori(rrnas_in, in_seq_len):
    """
    Finds the positions for Ori based on rRNAs
    Input:
    :param rrnas_in:    List of rRNA genes from RNAmmer
    :param in_seq_len:  Length of the input FASTA sequence
    :param linear:      Specifies if the chromosome is linear
    :return: Positions for Ori based on rRNAs
    """
    """List for storing the interval coordinates"""
    shift = list()
    for i in range(len(rrnas_in)):
        if i == len(rrnas_in) - 1:
            if rrnas_in[i][2] != rrnas_in[0][2]:
                shift.append(i)
        elif rrnas_in[i][2] != rrnas_in[i + 1][2]:
            shift.append(i)
    if len(shift) != 2:
        return [0, 0]
    elif len(shift) == 2:
        if rrnas_in[shift[0]][2] == -1:
            ori_start = rrnas_in[shift[0]][1]
            ori_end = rrnas_in[shift[0] + 1][0]
            return [ori_start, ori_end]
        elif rrnas_in[shift[1]][2] == -1:
            if shift[1] == len(rrnas_in) - 1:
                ori_start = rrnas_in[shift[1]][1]
                ori_end = rrnas_in[0][0]
                return [ori_start, ori_end]
            else:
                ori_start = rrnas_in[shift[1]][1]
                ori_end = rrnas_in[shift[1] + 1][0]
                return [ori_start, ori_end]
