` uberon_py`是一个用于从python查询uberon本体的包。
uberon-p的Python项目详细描述
uberon-py
:uberon本体的python包
:construction::construction:此包正在开发(特别是文档):construction::construction:
摘要
我创建这个包是为了能够在python中轻松地查询uberon术语之间的关系。
用法
示例用法:
# read an ontology in obo format
obo = uberon-py.Obo('path_to_file/uberon_ext.obo')
# find relationships between terms of interest:
# (in this case, are any of the source_terms, is_a or part_of the brain?)
source_terms = ['UBERON:0003290','UBERON:0003369','UBERON:0003703']
target_terms = ['UBERON:0000955'] # brain term
relations_of_interest = 'is_a','part_of']
relations = uberon-py.Relations(source_terms,target_terms,relations_of_interest[,obo.ont).relations