def extract_frame(orf_psite_array):
    """
	extract frame0 , frame1, frame2 vector
	"""
    if orf_psite_array.size % 3 != 0:
        shiftn = orf_psite_array.size % 3
        orf_psite_array2 = orf_psite_array[:-shiftn]
        f0 = orf_psite_array2[0:orf_psite_array2.size:3]
        f1 = orf_psite_array2[1:orf_psite_array2.size:3]
        f2 = orf_psite_array2[2:orf_psite_array2.size:3]
    else:
        f0 = orf_psite_array[0:orf_psite_array.size:3]
        f1 = orf_psite_array[1:orf_psite_array.size:3]
        f2 = orf_psite_array[2:orf_psite_array.size:3]
    return f0, f1, f2
