detectionPnegEcdf {sesame} | R Documentation

## Detection P-value based on ECDF of negative control

### Description

The function takes a `SigDF` as input, computes detection p-value using negative control probes' empirical distribution and returns a new `SigDF` with an updated mask slot.

### Usage

    detectionPnegEcdf(sdf, return.pval = FALSE, pval.threshold = 0.05)

### Arguments

`sdf` | a `SigDF`
`return.pval` | whether to return p-values, instead of a masked `SigDF`
`pval.threshold` | minimum p-value to mask

### Value

a `SigDF`, or a p-value vector if return.pval is TRUE

### Examples

    sdf <- sesameDataGet("EPIC.1.SigDF")
    sum(sdf$mask)
    sum(detectionPnegEcdf(sdf)$mask)

[Package sesame version 1.12.9 Index]