make_gene_network {EGAD} | R Documentation |
The function creates a gene-by-gene matrix with binary entries indicating interaction (1) or no interaction (0) between the genes.
make_gene_network(data, list)
data |
2-column matrix, each row a pair indicating a relationship or interaction |
list |
string array of genes |
net matrix binary characterizing interactions
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)