def load_profile_variants(adapter, variant_file):

    """

        Loads variants used for profiling

        Args:
            adapter (loqusdb.plugins.Adapter): initialized plugin
            variant_file(str): Path to variant file


    """

    vcf_info = check_vcf(variant_file)
    nr_variants = vcf_info['nr_variants']
    variant_type = vcf_info['variant_type']

    if variant_type != 'snv':
        LOG.critical('Variants used for profiling must be SNVs only')
        raise VcfError

    vcf = get_vcf(variant_file)

    profile_variants = [build_profile_variant(variant) for variant in vcf]
    adapter.add_profile_variants(profile_variants)
def load_profile_variants ( adapter , variant_file ) : vcf_info = check_vcf ( variant_file ) nr_variants = vcf_info [ 'nr_variants' ] variant_type = vcf_info [ 'variant_type' ] if variant_type != 'snv' : LOG . critical ( 'Variants used for profiling must be SNVs only' ) raise VcfError vcf = get_vcf ( variant_file ) profile_variants = [ build_profile_variant ( variant ) for variant in vcf ] adapter . add_profile_variants ( profile_variants )
Loads variants used for profiling

        Args:
            adapter (loqusdb.plugins.Adapter): initialized plugin
            variant_file(str): Path to variant file