Source code for myvariant

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

__version__ = '1.0.0'

[docs]class MyVariantInfo(get_client('variant', instance=False)): '''This is the client for MyVariant.info web services. Example: >>> mv = MyVariantInfo() ''' pass
[docs]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__
[docs]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__