def sv_variants(store, institute_obj, case_obj, variants_query, page=<NUM_LIT:1>, per_page=<NUM_LIT:50>):
skip_count = (per_page * max(page - <NUM_LIT:1>, <NUM_LIT:0>))<EOL>more_variants = True if variants_query.count() > (skip_count + per_page) else False<EOL>genome_build = case_obj.get('<STR_LIT>', '<STR_LIT>')<EOL>if genome_build not in ['<STR_LIT>','<STR_LIT>']:<EOL><INDENT>genome_build = '<STR_LIT>'<EOL><DEDENT>return {<EOL>'<STR_LIT>': (parse_variant(store, institute_obj, case_obj, variant, genome_build=genome_build) for variant in<EOL>variants_query.skip(skip_count).limit(per_page)),<EOL>'<STR_LIT>': more_variants,<EOL>}<EOL>
Pre-process list of SV variants.