depthStruct(ontoTools)
depthStruct()所属R语言包:ontoTools
tools for manipulating depth concepts for rooted DAGs
植根于DAG的深度概念的操纵工具
译者:生物统计家园网 机器人LoveR
描述----------Description----------
return a list of environments giving mapping from node name to rooted DAG depth and from depth to vector of names of nodes
返回一个节点名称映射到根深蒂固的DAG深度的环境和深度的向量节点的名称列表
用法----------Usage----------
depthStruct(rg)
ontoDepth(rg)
DMdepth(g, maxd)
参数----------Arguments----------
参数:rg
rg: instance of class rootedDAG
RG:实例类rootedDAG
参数:g
rg: instance of class depth
RG:实例类的深度
参数:maxd
maxd: bound on depth to be measured
maxd:约束的深度来衡量
值----------Value----------
depthStruct: a list of two environments (see examples).
depthStruct:两个环境的名单(见例子)。
注意----------Note----------
ontoDepth is the workhorse for depthStruct. DMdepth is a function that works on a plain graph, creating
ontoDepth是主力depthStruct。 DMdepth是一个普通的图上的功能,创造
作者(S)----------Author(s)----------
Vince Carey <stvjc@channing.harvard.edu>
举例----------Examples----------
data(litOnto)
print(litOnto)
g1 <- new("rootedDAG", DAG=litOnto, root="A")
o1 <- new("ontology", name="demo", version="0.1",
rDAG=g1)
print(ds <- depthStruct(g1))
ds$tag2depth("A")
ds$tag2depth("H")
ds$depth2tag(2)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|