getEdgeAttribute(RCytoscape)
getEdgeAttribute()所属R语言包:RCytoscape
getEdgeAttribute
getEdgeAttribute
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Node and edge attributes are usually added to a Cytoscape network by defined them on the graph used to construct a CytoscapeWindow. The small family of methods described here, however, provide another avenue for adding an edge attribute, for learning which are currently defined, and for deleting and edge attribute.
通常添加一个定义用来建造一个CytoscapeWindow图Cytoscape的网络节点和边的属性。然而,这里所描述的方法小家庭增加一个边缘属性,学习是目前的定义,并删除和边缘属性提供另一种途径。
Note that edge (and node) attibutes are defined, not just for a specific, single CytoscapeWindow, but for an entire Cytoscape application session. Thus if you have two nodes (or edges) with the same ID (the same name) in two different windows, adding a node attribute results in both nodes having that attribute.
请注意,边(和节点)attibutes的的定义,不仅仅是一个具体的,单一的CytoscapeWindow,但对于整个Cytoscape的应用程序会话。因此,如果你有两个节点(或边)具有相同的ID(名称相同)在两个不同的窗口,加入该属性在两个节点的节点属性的结果。
用法----------Usage----------
getEdgeAttribute(obj, edge.name, attribute.name)
参数----------Arguments----------
参数:obj
a CytoscapeConnectionClass object or CytoscapeWindow object.
CytoscapeConnectionClass对象或CytoscapeWindow的对象。
参数:edge.name
a character string specifying the Cytoscape-style name of an edge.
character string指定Cytoscape的边缘样式的名称。
参数:attribute.name
a character string, the name of the attribute you wish to retrieve.
character string,要检索的属性的名称。
值----------Value----------
The attribute in question, which may be of any scalar type.
问题中的属性,这可能是任何标量类型。
作者(S)----------Author(s)----------
Paul Shannon
参见----------See Also----------
getEdgeAttributeNames deleteEdgeAttribute
getEdgeAttributeNames deleteEdgeAttribute
举例----------Examples----------
window.name = 'demo.getEdgeAttribute'
cw = new.CytoscapeWindow (window.name, graph=makeSimpleGraph ())
setDefaultEdgeLineWidth (cw, 5);
displayGraph (cw)
redraw (cw)
layout (cw)
score.bc = getEdgeAttribute (cw, "B (synthetic lethal) C", 'score')
print (paste ("should be -12: ", score.bc))
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|