當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。