def align_loc(primers, num, cat, aln):
    """
    Determine the alignment location for the oligo
    """
    if primers[num][cat]['LOCATION'] is None:
        return None,None
    loc = list(primers[num][cat]['LOCATION'])
    aln_len = aln.get_alignment_length()
    if cat == 'PRIMER_RIGHT':
        start = loc[0] - loc[1] + 1
        end = loc[0] + 1
    else:
        start = loc[0]
        end = loc[0] + loc[1]
    return start,end