当前位置: 首页>>代码示例>>Python>>正文


Python Client.runMutalyzer方法代码示例

本文整理汇总了Python中suds.client.Client.runMutalyzer方法的典型用法代码示例。如果您正苦于以下问题:Python Client.runMutalyzer方法的具体用法?Python Client.runMutalyzer怎么用?Python Client.runMutalyzer使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在suds.client.Client的用法示例。


在下文中一共展示了Client.runMutalyzer方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: main

# 需要导入模块: from suds.client import Client [as 别名]
# 或者: from suds.client.Client import runMutalyzer [as 别名]
def main(description, verbosity=None):
    """
    Run the Mutalyzer namechecker and print results to standard output.
    """
    service = Client(WSDL_LOCATION, cache=None).service
    result = service.runMutalyzer(description)

    print 'Reference id: %s' % result.referenceId
    print 'Source id: %s' % result.sourceId
    if 'sourceAccession' in result:
        print 'Source accession number: %s' % result.sourceAccession
    if 'sourceVersion' in result:
        print 'Source version: %s' % result.sourceVersion
    if 'sourceGi' in result:
        print 'Source GI number: %s' % result.sourceGi
    print 'Molecule type: %s\n' % result.molecule

    if result.rawVariants:
        for v in result.rawVariants.RawVariant:
            print 'Raw variant: %s' % v.description
            print '%s\n' % v.visualisation

    if verbosity == 'verbose':
        print 'Original:\n%s\n' % result.original
        print 'Mutated:\n%s\n' % result.mutated
        print 'origMRNA:\n%s\n' % result.origMRNA
        print 'mutatedMRNA:\n%s\n' % result.mutatedMRNA
        print 'origCDS:\n%s\n' % result.origCDS
        print 'newCDS:\n%s\n' % result.newCDS
        print 'origProtein:\n%s\n' % result.origProtein
        print 'newProtein:\n%s\n' % result.newProtein
        print 'altProtein:\n%s\n' % result.altProtein

    print 'Errors: %s' % result.errors
    print 'Warnings: %s' % result.warnings
    print 'Summary: %s\n' % result.summary

    if result.messages:
        for m in result.messages.SoapMessage:
            print 'Error %s: %s\n' % (m.errorcode, m.message)

    if 'chromDescription' in result:
        print 'Chromosomal description: %s' % result.chromDescription
    print 'Genomic description: %s' % result.genomicDescription

    if result.transcriptDescriptions:
        print 'Affected transcripts:'
        print '\n'.join(result.transcriptDescriptions.string)
    if result.proteinDescriptions:
        print 'Affected proteins:'
        print '\n'.join(result.proteinDescriptions.string)

    if 'exons' in result:
        print '\nExon table for selected transcript:'
        print '\t'.join(['Number', 'Start (g.)', 'Stop (g.)', 'Start (c.)', 'Stop (c.)'])
        for i, exon in enumerate(result.exons.ExonInfo, start=1):
            print '\t'.join([str(i), str(exon.gStart), str(exon.gStop), exon.cStart, exon.cStop])
开发者ID:simexin,项目名称:mutalyzer,代码行数:59,代码来源:runMutalyzer.py

示例2: check_soap

# 需要导入模块: from suds.client import Client [as 别名]
# 或者: from suds.client.Client import runMutalyzer [as 别名]
def check_soap(mutalyzer_url):
    """
    Check if the name checker SOAP web service can be called.
    """
    wsdl_url = mutalyzer_url + '/services/?wsdl'
    service = Client(wsdl_url, cache=None).service

    result = service.runMutalyzer('AB026906.1:c.274G>T')
    assert result.genomicDescription == 'AB026906.1:g.7872G>T'
开发者ID:chenyu600,项目名称:mutalyzer,代码行数:11,代码来源:mutalyzer-monitor.py


注:本文中的suds.client.Client.runMutalyzer方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。