def rcBase(base):
    """Return the reverse complement of the base."""
    base = base.upper()
    if base == 'A':
        return 'T'
    if base == 'C':
        return 'G'
    if base == 'G':
        return 'C'
    if base == 'T':
        return 'A'
    return 'N'