@classmethod
def _accept(cls, adapter):
    """Raise a ValueError if the adapter is not acceptable"""
    if adapter.read_wildcards:
        raise ValueError('Wildcards in the read not supported')
    if adapter.adapter_wildcards:
        raise ValueError('Wildcards in the adapter not supported')
    k = int(len(adapter) * adapter.max_error_rate)
    if k > 0 and adapter.indels:
        raise ValueError('Indels not allowed')
    if k > 2:
        raise ValueError('Error rate too high')
