Usage
dcDAGdomainSim(g, domains = NULL, method.domain = c("BM.average",
"BM.max",
"BM.complete", "average", "max"), method.term = c("Resnik", "Lin",
"Schlicker", "Jiang", "Pesquita"), force = TRUE, fast = TRUE,
parallel = TRUE, multicores = NULL, verbose = TRUE)
Arguments
g
an object of class "igraph" or "graphNEL". It
must contain a vertex attribute called 'annotations' for
storing annotation data (see example for howto)
domains
the domains between which pair-wise
semantic similarity is calculated. If NULL, all domains
annotatable in the input dag will be used for
calcluation, which is very prohibitively expensive!
method.domain
the method used for how to derive
semantic similarity between domains from semantic
similarity between terms. It can be "average" for average
similarity between any two terms (one from domain 1, the
other from domain 2), "max" for the maximum similarity
b
method.term
the method used to measure semantic
similarity between terms. It can be "Resnik" for
information content (IC) of most informative information
ancestor (MICA) (see
http://arxiv.org/pdf/cmp-lg/9511007.pdf), "Lin" for
2*IC at MICA divided by the s
force
logical to indicate whether the only most
specific terms (for each domain) will be used. By
default, it sets to true. It is always advisable to use
this since it is computationally fast but without
compromising accuracy (considering the fact that
true-pat
fast
logical to indicate whether a vectorised fast
computation is used. By default, it sets to true. It is
always advisable to use this vectorised fast computation;
since the conventional computation is just used for
understanding scripts
parallel
logical to indicate whether parallel
computation with multicores is used. By default, it sets
to true, but not necessarily does so. Partly because
parallel backends available will be system-specific (now
only Linux or Mac OS). Also, it will depend on whet
multicores
an integer to specify how many cores
will be registered as the multicore parallel backend to
the 'foreach' package. If NULL, it will use a half of
cores available in a user's computer. This option only
works when parallel computation is enabled
verbose
logical to indicate whether the messages
will be displayed in the screen. By default, it sets to
true for display