Skip to content
Prev 4073 / 21312 Next

[Bioc-devel] small request on graph::graphBAM()

This change is now implemented in devel 1.37.6.

 > nms <- paste0("Y", 8:11)
 > df <- data.frame(from=nms, to=nms, weight=rep(1, 4))

Node names are not sorted when full vector of names is provided:
 > nodes(graphBAM(df, nodes=c(nms, "foo")))
[1] "Y8"  "Y9"  "Y10" "Y11" "foo"

Names are sorted when only a zero-degree node is provided:
 > nodes(graphBAM(df, nodes="foo"))
[1] "foo" "Y10" "Y11" "Y8"  "Y9"


A side effect of this change is that addNode(), which calls graphBAM(), 
was returning unsorted node names. To remain consistent with previous 
behavior I've sorted these results. Currently addNode() has no way to 
specify a full list of node names. Do you have an opinion on addNode() 
behavior? OK as is?



Valerie
On 02/07/2013 08:52 AM, Robert Castelo wrote: