本文整理匯總了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'