differential_score: The absolute difference of interaction score of two groups

Description Usage Arguments Value Examples

View source: R/pipeline_functions.R

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

1
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

1
2
3
data(interaction_score_graphs_example)
interaction_score_graphs <- interaction_score_graphs_example
differential_score_graph <- differential_score(interaction_score_graphs, score_name = "weight")

molnet-org/molnet documentation built on Dec. 21, 2021, 8:59 p.m.