Learn R Programming

paxtoolsr (version 1.6.3)

readSifnx: Read in a Extended SIF file

Description

Read in a Extended SIF file

Usage

readSifnx(inputFile, asDT = TRUE)

Arguments

inputFile
an inputFile
asDT
TODO

Value

  • a list with nodes and edges entries

concept

paxtoolsr

Details

SIFNX files from Pathway Commons commonly come a single file that includes a tab-delimited sections for nodes and another for edges. The sections are separated by an empty lines. These sections must be split before they are read.

Examples

Run this code
results <- readSifnx(system.file("extdata", "test_sifnx.txt", package="paxtoolsr"))
chebiIds <- lapply(results$nodesUniXref, function(x) { x[which(grepl("CHEBI", x))] })

Run the code above in your browser using DataLab