Learn R Programming

NanoStringDiff (version 1.2.0)

negativeControl: Acessor functions for the 'negativeControl' slot in a NanoStringSet object.

Description

Negative control genes are provided by nCounter Analyzer which can be used to estimate background noise for each sample.

Usage

"negativeControl"(object) "negativeControl"(object) <- value

Arguments

object
A NanoStringSet object.
value
A matrix with negative control genes.

Value

Details

Each code set in the nCounter Analyzer includes several negatives control genes for which no tranCounterript is expected to be present. We use these spike-in negative control genes to estimate background noise for each sample.

See Also

negativeFactor

Examples

Run this code
data(NanoStringData)
## obtain negative control genes
negativeControl(NanoStringData)

## assign a matrix
n=ncol(exprs(NanoStringData))
r=nrow(negativeControl(NanoStringData))
negative=matrix(rpois(r*n,10),ncol=n)
negativeControl(NanoStringData)=negative

Run the code above in your browser using DataLab