make_annotations: Creating gene annotations

Description Usage Arguments Value Examples

View source: R/make_annotations.R

Description

The function annotates a list of genes according to a given ontology. It creates a binary matrix associating genes (rows) with labels (columns).

Usage

1
make_annotations(data, listA, listB)

Arguments

data

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

listA

string array of genes

listB

string array of labels/functions

Value

net matrix binary

Examples

1
2
3
4
5
6
7
8
gene.list <- paste('gene', 1:100, sep='')
labels.list <- paste('labels', 1:10, sep='')
data <- matrix(0,nrow=100, ncol=2)
data[,1] <- sample(gene.list, 100, replace=TRUE)
data[,2] <- sample(labels.list, 100, replace=TRUE)
net <- make_annotations(data, gene.list, labels.list)
  
 

sarbal/EGAD documentation built on May 5, 2021, 5:10 p.m.