def variant_export_lines(store, case_obj, variants_query):
export_variants = []<EOL>for variant in variants_query:<EOL><INDENT>variant_line = []<EOL>position = variant['<STR_LIT>']<EOL>change = variant['<STR_LIT>']+'<STR_LIT:>>'+variant['<STR_LIT>']<EOL>variant_line.append(variant['<STR_LIT>'])<EOL>variant_line.append(variant['<STR_LIT>'])<EOL>variant_line.append(position)<EOL>variant_line.append(change)<EOL>variant_line.append('<STR_LIT:_>'.join([str(position), change]))<EOL>gene_list = variant.get('<STR_LIT>') <EOL>gene_ids = []<EOL>gene_names = []<EOL>hgvs_c = []<EOL>if len(gene_list) > <NUM_LIT:0>:<EOL><INDENT>for gene_obj in gene_list:<EOL><INDENT>hgnc_id = gene_obj['<STR_LIT>']<EOL>gene_name = gene(store, hgnc_id)['<STR_LIT>']<EOL>gene_ids.append(hgnc_id)<EOL>gene_names.append(gene_name)<EOL>hgvs_nucleotide = '<STR_LIT:->'<EOL>transcripts_list = gene_obj.get('<STR_LIT>')<EOL>for transcript_obj in transcripts_list:<EOL><INDENT>if transcript_obj.get('<STR_LIT>') and transcript_obj.get('<STR_LIT>') is True:<EOL><INDENT>hgvs_nucleotide = str(transcript_obj.get('<STR_LIT>'))<EOL><DEDENT><DEDENT>hgvs_c.append(hgvs_nucleotide)<EOL><DEDENT>variant_line.append('<STR_LIT:;>'.join( str(x) for x in  gene_ids))<EOL>variant_line.append('<STR_LIT:;>'.join( str(x) for x in  gene_names))<EOL>variant_line.append('<STR_LIT:;>'.join( str(x) for x in  hgvs_c))<EOL><DEDENT>else:<EOL><INDENT>while i < <NUM_LIT:4>:<EOL><INDENT>variant_line.append('<STR_LIT:->') <EOL>i = i+<NUM_LIT:1><EOL><DEDENT><DEDENT>variant_gts = variant['<STR_LIT>'] <EOL>for individual in case_obj['<STR_LIT>']:<EOL><INDENT>for variant_gt in variant_gts:<EOL><INDENT>if individual['<STR_LIT>'] == variant_gt['<STR_LIT>']:<EOL><INDENT>variant_line.append(variant_gt['<STR_LIT>'][<NUM_LIT:0>]) <EOL>variant_line.append(variant_gt['<STR_LIT>'][<NUM_LIT:1>]) <EOL>variant_line.append(variant_gt['<STR_LIT>'])<EOL><DEDENT><DEDENT><DEDENT>variant_line = [str(i) for i in variant_line]<EOL>export_variants.append("<STR_LIT:U+002C>".join(variant_line))<EOL><DEDENT>return export_variants<EOL>
Get variants info to be exported to file, one list (line) per variant.

        Args:
            store(scout.adapter.MongoAdapter)
            case_obj(scout.models.Case)
            variants_query: a list of variant objects, each one is a dictionary

        Returns:
            export_variants: a list of strings. Each string  of the list corresponding to the fields
                             of a variant to be exported to file, separated by comma