def parse_compounds(compound_info, case_id, variant_type):
<EOL>compounds = []<EOL>if compound_info:<EOL><INDENT>for family_info in compound_info.split('<STR_LIT:U+002C>'):<EOL><INDENT>splitted_entry = family_info.split('<STR_LIT::>')<EOL>if splitted_entry[<NUM_LIT:0>] == case_id:<EOL><INDENT>for compound in splitted_entry[<NUM_LIT:1>].split('<STR_LIT:|>'):<EOL><INDENT>splitted_compound = compound.split('<STR_LIT:>>')<EOL>compound_obj = {}<EOL>compound_name = splitted_compound[<NUM_LIT:0>]<EOL>compound_obj['<STR_LIT>'] = generate_md5_key(compound_name.split('<STR_LIT:_>') +<EOL>[variant_type, case_id])<EOL>try:<EOL><INDENT>compound_score = float(splitted_compound[<NUM_LIT:1>])<EOL><DEDENT>except (TypeError, IndexError):<EOL><INDENT>compound_score = <NUM_LIT:0.0><EOL><DEDENT>compound_obj['<STR_LIT>'] = compound_score<EOL>compound_obj['<STR_LIT>'] = compound_name<EOL>compounds.append(compound_obj)<EOL><DEDENT><DEDENT><DEDENT><DEDENT>return compounds<EOL>
Get a list with compounds objects for this variant.

        Arguments:
            compound_info(str): A Variant dictionary
            case_id (str): unique family id
            variant_type(str): 'research' or 'clinical'

        Returns:
            compounds(list(dict)): A list of compounds