make_gene_network {EGAD} | R Documentation

## 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

    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)

[Package EGAD version 1.10.0 Index]