Learn R Programming

paxtoolsr (version 1.6.3)

loadSifInIgraph: 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)

Value

  • a directed igraph network with interaction types

concept

paxtoolsr

Details

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

Examples

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

Run the code above in your browser using DataLab