diffuse_raw: Diffuse scores on a network

Description Usage Arguments Value Examples

View source: R/diffuse_raw.R

Description

Function diffuse takes a network in igraph format and an initial state to score all the nodes in the network.

Usage

1
diffuse_raw(graph, scores, z = FALSE, K = NULL, ...)

Arguments

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

Value

A list of scores, with the same length and dimensions as scores

Examples

 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)

b2slab/diffusion documentation built on March 6, 2021, 2:38 a.m.