loadSifInIgraph: Load SIF as igraph Network

View source: R/loadSifInIgraph.R

loadSifInIgraphR Documentation

Load SIF as igraph Network

Description

Load SIF as igraph Network

Usage

loadSifInIgraph(sif, directed = TRUE)

Arguments

sif

a binary SIF as a data.frame with three columns: "PARTICIPANT_A", "INTERACTION_TYPE", "PARTICIPANT_B"

directed

a boolean weather the returned graph should be directed (DEFAULT: TRUE)

Details

Users are likely to run into issues if the input SIF has factor levels

Value

a directed igraph network with interaction types

Examples

results <- readSif(system.file("extdata", "test_sif.txt", package="paxtoolsr"))
g <- loadSifInIgraph(results)


cannin/paxtoolsr documentation built on Feb. 2, 2023, 11:44 a.m.