Learn R Programming

IdMappingAnalysis (version 1.16.0)

DataFilter$logTen: Compute log10 of a numerical vector combined with thresholding on minimum value

Description

Compute log10 of a numerical vector combined with thresholding on minimum value.

Usage

## Static method (use this): ## DataFilter$logTen(x, filtParams, ...)
## Don't use the below: "logTen"(static, x, filtParams, ...)

Arguments

x
filtParams
vector of constraint parameters. If a particular output element is less or equal than filtParams[1] it is assigned the filtParams[2] value.
...
Not used

Value

clipped log10 of an input numeric vector.

See Also

For more information see DataFilter.

Examples

Run this code
 #compute log10 transform of mrna experiment data replacing (clipping)
 #the output values with log10(0.5)for input values < 0.5
 fltExperimentSet<-DataFilter$do.apply(examples$mrnaExperimentSet,
         byRows=TRUE,filterFun=DataFilter$logTen,filtParams=c(0.5,log10(0.5)),verbose=TRUE);

 #print the number of elements clipped
 sum(fltExperimentSet[,-1]==log10(0.5))-sum(examples$mrnaExperimentSet[,-1]<=0.5);
 

Run the code above in your browser using DataLab