Learn R Programming

EGAD (version 1.0.3)

make_genelist: Creating list of all genes in the data set.

Description

The function extracts the list of all genes in the data set

Usage

make_genelist(gene_data_interacting)

Arguments

gene_data_interacting
2-column matrix, each row a pair indicating a relationship or interaction

Value

list array of data labels

Examples

Run this code
gene.list <- paste('gene', 1:100, sep='')
data <- matrix(0,nrow=100, ncol=2)
data[,1] <- sample(gene.list, 50, replace=TRUE)
data[,2] <- sample(gene.list, 50, replace=TRUE)
genes <- make_genelist(data)

Run the code above in your browser using DataLab