DataFilter$logTen {IdMappingAnalysis} | R Documentation

## 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:
    ## S3 method for class 'DataFilter'
    logTen(static, x, filtParams, ...)

### Arguments

`x` | `numeric` input `vector`.
`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`.

### Author(s)

Alex Lisovich, Roger Day

### See Also

For more information see `DataFilter`.

### Examples

     #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);

[Package IdMappingAnalysis version 1.24.0 Index]