Learn R Programming

EMA (version 1.4.7)

expFilter: Filter expression data

Description

This function takes an expression matrix and filtered out non detected genes.

Usage

expFilter(data, threshold = 3.5, p=0.01, graph = TRUE)

Arguments

data

expression matrix, genes on rows and samples on columns.

threshold

minimal value of expression to be reached

p

keep probes with at least p*ncol(data) samples higher than threshold

graph

boolean indicating if an histogram of the data should be plotted.

Value

An expression matrix.

Details

The non variant genes are defined gy the threshold value. A gene is kept if at least p*ncol(data) of its values is higher than threshold.

The graph represents the distribution of all the genes in Data. A line shows the threshold value used.

Examples

Run this code
# NOT RUN {
data(marty)
expFilter(marty, threshold = 3.5, graph = TRUE)

# }

Run the code above in your browser using DataLab