def clean_accessions(records):
    """Extract accession keys from SeqRecords.

    The id of the given records is processed to remove domain location info
    added by HMMer. Most other records won't have a '/' character in the FASTA
    header key.
    """
    return (rec.id.rsplit('/', 1)[0] for rec in records)