Description Usage Arguments Value Examples
Function diffuse
takes a network in
igraph format and an initial state
to score all the nodes in the network.
1 | diffuse_raw(graph, scores, z = FALSE, K = NULL, ...)
|
graph |
igraph object for the diffusion |
scores |
list of score matrices. For a single input with a single background, supply a list with a vector column |
z |
logical, should z-scores be computed instead of raw scores? |
K |
optional matrix, precomputed diffusion kernel |
... |
currently ignored arguments |
A list of scores, with the same length and
dimensions as scores
1 2 3 4 5 6 7 8 9 10 | # Using a list as input (needed)
data(graph_toy)
list_input <- list(myInput1 = graph_toy$input_mat)
diff_raw <- diffuse_raw(
graph = graph_toy,
scores = list_input)
diff_z <- diffuse_raw(
graph = graph_toy,
scores = list_input,
z = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.