make_gene_network: Creating gene-by-gene network

Description Usage Arguments Value Examples

View source: R/make_gene_network.R

Description

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

Usage

1

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

1
2
3
4
5
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)

EGAD documentation built on Nov. 8, 2020, 8:31 p.m.