Learn R Programming

PIGShift (version 1.0.1)

remove.from.genome: 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

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

Run this code
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)

Run the code above in your browser using DataLab