import_network: Import network data for CandidateBacon package

Description Usage Arguments Details Value Examples

Description

An R data frame containing the network data is created from a file with at least two columns, i.e. all the pair wise interactions of the nodes in the network. The user specifies the two relevant columns and the information is extracted from the file.

Usage

1
import_network(infile, columns = c(1, 2))

Arguments

infile

file containing network data

columns

columns in the file with pairwise interactions

Details

A tab-delimited text file with the interactions is used as input. The data is extracted from the indicated columns where each line indicates a pairwise interaction between two nodes (Note: all other information in the file will be excluded and only the columns indicated will be used to construct the network). The data is formatted, and a matrix with the all interactions for each node is produced. Summary of the network features is provided.

Value

A matrix representing the network.

Examples

1
2
3
4
## Not run: 
network <- import_network("example_network_Cyt.txt")

## End(Not run)

CandidateBacon documentation built on May 2, 2019, 6:11 p.m.