'''
Python Client for MyVariant.Info services
'''
from biothings_client import get_client, alwayslist

__version__ = '1.0.0'

class MyVariantInfo(get_client('variant', instance=False)):
    '''This is the client for MyVariant.info web services.
    Example:

        >>> mv = MyVariantInfo()

    '''
    def __init__(self):
        super(MyVariantInfo, self).__init__()
        self.default_user_agent += ' myvariant.py/' + __version__

def format_hgvs(chrom, pos, ref, alt):
    """:py:func:`format_hgvs` helper function is now moved into :py:class:`MyVariantInfo` class
       as a method: :py:meth:`format_hgvs`.
    """
    mv = MyVariantInfo()
    return mv.format_hgvs(chrom=chrom, pos=pos, ref=ref, alt=alt)
# format_hgvs.__doc__ = MyVariantInfo.format_hgvs.__doc__

def get_hgvs_from_vcf(input_vcf):
    """:py:func:`get_hgvs_from_vcf` helper function is now moved into :py:class:`MyVariantInfo` class
       as a method: :py:meth:`get_hgvs_from_vcf`.
    """
    mv = MyVariantInfo()
    return mv.get_hgvs_from_vcf(input_vcf=input_vcf)
# get_hgvs_from_vcf.__doc__ = MyVariantInfo.get_hgvs_from_vcf.__doc__
