def hits_seq_end(seq, 
                 hit_start,
                 primer_len):
    """ Test if primer abuts sequence end, returns True/False
    
    seq: Current fasta sequence being tested
    hit_start: Index of primer hit, will be 5' position for forward primer,
     3' position for reverse primer
    primer_len: length of primer """
    
    seq_len = len(seq)
    if hit_start == 0 or (hit_start+primer_len>=seq_len):
        hits_sequence_end = True
    else:
        hits_sequence_end = False
        
    return hits_sequence_end