def parse_cand_pfam_ids(pfam_string):
    """
    Get flat list of pfam_ids from candidate csv field 'pfam_ids'
    :param pfam_string: pfam_ids string separated by '|' (between each protein) and ';' (between each pfam_id)
    :return: flat list of pfam_ids
    """
    return [pfam_id for pfam_ids in pfam_string.split('|') for pfam_id in pfam_ids.split(';')]