Learn R Programming

EGAD (version 1.0.3)

build_weighted_network: Builds a weighted network

Description

The function creates a gene-by-gene matrix with binary entries indicating interaction (1) or no interaction (0) between the genes.

Usage

build_weighted_network(data, list)

Arguments

data
3-column matrix, each row a pair indicating a relationship or interaction, and the last column the weight
list
string array of genes/labels/ids

Value

net matrix characterizing interactions

Examples

Run this code
data <- cbind(edgeA=c('gene1','gene2'),edgeB=c('gene3','gene3'), weight=c(0.5, 0.9))
list <- c('gene1','gene2','gene3')
network <- build_weighted_network(data,list)


Run the code above in your browser using DataLab