[BioC] bugfix in graph::ftM2graphNEL

Wolfgang Huber huber at ebi.ac.uk
Thu Feb 8 13:38:17 CET 2007

Dear List,

Thanks to Dan Bebber for pointing out a bug in the function ftM2graphNEL
in the "graph" package and to Seth for help with fixing it. Those who
use this function should update to version 1.12.1 in the release branch
or version 1.13.6 in the development branch.

The bug is a lesson on "beware of partial matching when accessing list
elements by name":

x = list(foobar="lemon")
#   NULL
#   [1] "lemon"


x = list(foobar="lemon", f="plum")
#   [1] "plum"

and as a result, edges in the graph were invented if there were nodes
with no out-edges whose name partially matched the name of other
nodes with out-edges.

  Best wishes

Wolfgang Huber  EBI/EMBL  Cambridge UK  http://www.ebi.ac.uk/huber

More information about the Bioconductor mailing list