diffuse_raw {diffuStats} | R Documentation

## Diffuse scores on a network

### Description

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

### Usage

    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

    # 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)

[Package diffuStats version 1.7.0 Index]