def get_variant_info(genes):
data = {'<STR_LIT>': []}<EOL>for gene_obj in genes:<EOL><INDENT>if not gene_obj.get('<STR_LIT>'):<EOL><INDENT>tx = gene_obj['<STR_LIT>'][<NUM_LIT:0>]<EOL>tx_id = tx['<STR_LIT>']<EOL>exon = tx.get('<STR_LIT>', '<STR_LIT:->')<EOL>c_seq = tx.get('<STR_LIT>', '<STR_LIT:->')<EOL><DEDENT>else:<EOL><INDENT>tx_id = gene_obj['<STR_LIT>']<EOL>exon = gene_obj.get('<STR_LIT>', '<STR_LIT:->')<EOL>c_seq = gene_obj.get('<STR_LIT>', '<STR_LIT:->')<EOL><DEDENT>if len(c_seq) > <NUM_LIT:20>:<EOL><INDENT>c_seq = c_seq[:<NUM_LIT:20>] + '<STR_LIT>'<EOL><DEDENT>if len(genes) == <NUM_LIT:1>:<EOL><INDENT>value = '<STR_LIT::>'.join([tx_id,exon,c_seq])<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, tx_id,exon,c_seq])<EOL><DEDENT>data['<STR_LIT>'].append(value)<EOL><DEDENT>return data<EOL>
Get variant information