ontology-class(ontoTools)
ontology-class()所属R语言包:ontoTools
Class "ontology" wraps a rooted DAG with some
类“本体论”包装与一些根深蒂固的DAG
译者:生物统计家园网 机器人LoveR
描述----------Description----------
instances of class ontology are used to
本体类的实例用于
类的对象----------Objects from the Class----------
Objects can be created by calls of the form new("ontology", ...). This simply possesses information on name and version of ontology.
创建对象可以通过检测的形式new("ontology", ...)。这只是具有本体论上的名称和版本信息。
插槽----------Slots----------
name: Object of class "character" name of ontology
类本体名称name "character":对象
version: Object of class "character" version tag
version类"character"版本标签:对象
rDAG: Object of class "rootedDAG" the rooted
rDAG:Object类的"rootedDAG"根深蒂固
方法----------Methods----------
accessMat signature(object = "ontology"): returns square matrix with 1 in element r,c if term corresponding
1元r accessMatsignature(object = "ontology"):返回与C如果术语相应的方阵,
name signature(x = "ontology"): access name
名称signature(x = "ontology"):访问名称
OVersion signature(x = "ontology"): access version
OVersionsignature(x = "ontology"):访问版本
rDAG signature(x = "ontology"): access the rooted DAG
rDAGsignature(x = "ontology"):访问根深蒂固的DAG
show signature(object = "ontology"): concise report
显示signature(object = "ontology"):简要报告
注意----------Note----------
This class was written to deal with ontologies that are representable as rooted DAGs. It is not clear that this is a good use of the term 'ontology', which has broader implications. However this does work for Gene Ontology.
这个类被写入处理的本体,是根深蒂固的DAG表示。目前尚不清楚,这是一个良好的使用术语“本体论”,它具有更广泛的影响。然而,这确实为基因本体论的工作。
举例----------Examples----------
data(litOnto)
print(litOnto)
g1 <- new("rootedDAG", DAG=litOnto, root="A")
o1 <- new("ontology", name="demo", version="0.1",
rDAG=g1)
# can also use[也可以使用]
o1b <- makeOntology( name="demo", version="0.1",
graph=litOnto, root="A")
show(o1)
print(accessMat(o1))
print(OVersion(o1))
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|