本文整理汇总了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])
示例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'