code: def variants(case_id):
      
      filters = parse_filters()
      values = [value for key, value in iteritems(filters)
                if not isinstance(value, dict) and key != 'skip']
      is_active = any(values)
      variants, nr_of_variants = app.db.variants(
          case_id,
          skip=filters['skip'],
          filters={
              'gene_ids': filters['gene_symbols'],
              'frequency': filters.get('frequency'),
              'cadd': filters.get('cadd'),
              'sv_len': filters.get('sv_len'),
              'consequence': filters['selected_consequences'],
              'genetic_models': filters['selected_models'],
              'sv_types': filters['selected_sv_types'],
              'gene_lists': filters['gene_lists'],
              'impact_severities': filters['impact_severities'],
              'gemini_query': filters['gemini_query'],
              'range': filters['range'],
          }
      )
      gene_lists = ([gene_list.list_id for gene_list in app.db.gene_lists()]
                    if app.config['STORE_ENABLED'] else [])
      queries = ([(query.name or query.query, query.query) for query
                  in app.db.gemini_queries()]
                 if app.config['STORE_ENABLED'] else [])
      kwargs = dict(variants=variants, case_id=case_id, db=app.db,
                    filters=filters, consequences=SO_TERMS,
                    inheritance_models=INHERITANCE_MODELS_SHORT,
                    gene_lists=gene_lists, impact_severities=IMPACT_LEVELS,
                    is_active=is_active, nr_of_variants=nr_of_variants,
                    queries=queries)
  
      if app.db.variant_type == 'sv':
          return render_template('sv_variants.html', sv_types=SV_TYPES, **kwargs)
      else:
          return render_template('variants.html', **kwargs)
docs: Show all variants for a case.