本文整理汇总了Python中doekbase.data_api.annotation.genome_annotation.api.GenomeAnnotationAPI.get_summary方法的典型用法代码示例。如果您正苦于以下问题:Python GenomeAnnotationAPI.get_summary方法的具体用法?Python GenomeAnnotationAPI.get_summary怎么用?Python GenomeAnnotationAPI.get_summary使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类doekbase.data_api.annotation.genome_annotation.api.GenomeAnnotationAPI
的用法示例。
在下文中一共展示了GenomeAnnotationAPI.get_summary方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: get_summary
# 需要导入模块: from doekbase.data_api.annotation.genome_annotation.api import GenomeAnnotationAPI [as 别名]
# 或者: from doekbase.data_api.annotation.genome_annotation.api.GenomeAnnotationAPI import get_summary [as 别名]
def get_summary(self, ctx, ref):
"""
Retrieve a summary representation of this GenomeAnnotation.
@return summary data
:param ref: instance of type "ObjectReference"
:returns: instance of type "Summary_data" -> structure: parameter
"scientific_name" of String, parameter "taxonomy_id" of Long,
parameter "kingdom" of String, parameter "scientific_lineage" of
list of String, parameter "genetic_code" of Long, parameter
"organism_aliases" of list of String, parameter "assembly_source"
of String, parameter "assembly_source_id" of String, parameter
"assembly_source_date" of String, parameter "gc_content" of
Double, parameter "dna_size" of Long, parameter "num_contigs" of
Long, parameter "contig_ids" of list of String, parameter
"external_source" of String, parameter "external_source_date" of
String, parameter "release" of String, parameter
"original_source_filename" of String, parameter
"feature_type_counts" of mapping from String to Long
"""
# ctx is the context object
# return variables are: returnVal
#BEGIN get_summary
ga = GenomeAnnotationAPI_local(self.services, ctx['token'], ref)
returnVal = ga.get_summary()
#END get_summary
# At some point might do deeper type checking...
if not isinstance(returnVal, dict):
raise ValueError('Method get_summary return value ' +
'returnVal is not type dict as required.')
# return the results
return [returnVal]