filterEM: Filter expression matrix based on annotation

Description Usage Arguments Value Examples

View source: R/filterEM.R

Description

filterEM will annotate the probes in expression matrix and remove the duplicated gene symbols. because there will be many probes mapped to same genes, we will only keep the max value one.

Usage

1
filterEM(probes_expr, probe2gene)

Arguments

probes_expr

is an expression matrix which rownames are probes of probe2gene and each column is a sample

probe2gene

the first column is probes and the second column is corresponding gene symbols

Value

a expression matrix which has been filtered duplicated gene symbols

Examples

1
2
3
4
5
attach(GSE95166)
head(probes_expr)
head(probe2gene)
genes_expr <- filterEM(probes_expr,probe2gene)
head(genes_expr)

jmzeng1314/AnnoProbe documentation built on Dec. 24, 2019, 11:23 p.m.