def get_predictions(genes):
data = {<EOL>'<STR_LIT>': [],<EOL>'<STR_LIT>': [],<EOL>'<STR_LIT>': [],<EOL>'<STR_LIT>': []<EOL>}<EOL>for gene_obj in genes:<EOL><INDENT>for pred_key in data:<EOL><INDENT>gene_key = pred_key[:-<NUM_LIT:1>]<EOL>if len(genes) == <NUM_LIT:1>:<EOL><INDENT>value = gene_obj.get(gene_key, '<STR_LIT:->')<EOL><DEDENT>else:<EOL><INDENT>gene_id = gene_obj.get('<STR_LIT>') or str(gene_obj['<STR_LIT>'])<EOL>value = '<STR_LIT::>'.join([gene_id, gene_obj.get(gene_key, '<STR_LIT:->')])<EOL><DEDENT>data[pred_key].append(value)<EOL><DEDENT><DEDENT>return data<EOL>
Get sift predictions from genes.