Learn R Programming

EGAD (version 1.0.3)

make_gene_network: Creating gene-by-gene network

Description

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

Usage

make_gene_network(data, list)

Arguments

data
2-column matrix, each row a pair indicating a relationship or interaction
list
string array of genes

Value

net matrix binary characterizing interactions

Examples

Run this code
gene.list <- paste('gene', 1:100, sep='')
data <- matrix(0,nrow=100, ncol=2)
data[,1] <- sample(gene.list, 100)
data[,2] <- sample(gene.list, 100)
net <- make_gene_network(data, gene.list)


Run the code above in your browser using DataLab