filter_orthologs: Filter on orthologs

Description Usage Arguments Value Examples

View source: R/filter_orthologs.R

Description

The function filters away the labels for the genes that are not in the orthologs list

Usage

1
filter_orthologs(annotations, genelist, orthologs)

Arguments

annotations

binary matrix

genelist

array of gene ids

orthologs

array to filter on

Value

annotations_filtered binary matrix

Examples

1
2
3
4
5
6
genes.labels <- matrix( sample( c(0,1), 1000, replace=TRUE), nrow=100)
rownames(genes.labels) = paste('gene', 1:100, sep='')
colnames(genes.labels) = paste('function', 1:10, sep='')
gene.list <- paste('gene', 1:100, sep='')
orthologs <- paste('gene', (1:50)*2, sep='')
genes.labels.filt <- filter_orthologs(genes.labels, gene.list, orthologs) 

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