def _subset_sequences( sequences, selected ):
    """Subset only the sequences that match"""
    for record in sequences:
        name = record.name.split()[0]
        if name in selected:
            yield record