Learn R Programming

molnet (version 0.1.0)

differential_score: The absolute difference of interaction score of two groups

Description

Computes the absolute difference of interaction score between two groups. Returns a single graph with the differential score as only edge attribute. The interaction score is computed by interaction_score.

Usage

differential_score(interaction_score_graphs, score_name = "weight")

Arguments

interaction_score_graphs

Named list with elements `group1` and `group2` containing iGraph objects with score as edge attribute. Output of interaction_score.

score_name

Character string specifying the name of the edge attribute (default: `weight`).

Value

iGraph object with `differential_score` as only edge attribute

Examples

Run this code
# NOT RUN {
data(interaction_score_graphs_example)
interaction_score_graphs <- interaction_score_graphs_example
differential_score_graph <- differential_score(interaction_score_graphs, score_name = "weight")

# }

Run the code above in your browser using DataLab