Remove genes from a specified group from the data

Description

This function will remove data corresponding to genes that are members of groups.to.remove.

Usage

1
remove.from.genome(dat, groups, groups.to.remove)

Arguments

dat

gene expression data, rows are species, columns are gene, including colnames.

groups

a list of gene groups, in the same format as the output of read.groups

groups.to.remove

a vector of group names, the members of which will be removed from dat

Value

A new matrix of data with the genes that belonged to groups.to.remove gone.

Examples

1
2
3
4
5
6
data(yeast)
GO.groups.pruned = good.groups(colnames(yeast.hybrid),GO.groups,10)
dim(yeast.hybrid)
to_remove = setdiff(names(GO.groups),GO.groups.pruned)
yeast.hybrid.pruned = remove.from.genome(yeast.hybrid,GO.groups,to_remove)
dim(yeast.hybrid.pruned)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.