R/justvsn.R

Defines functions vsnrma justvsn

Documented in justvsn vsnrma

justvsn = function(x,  ...) {
    fit = vsn2(x, ...)
    predict(fit, newdata=x, useDataInFit=TRUE)
  }

vsnrma = function(x, ...) {
  fit = vsn2(x, ...)
  exprs(x) = 2^exprs(fit)
  
  ## call RMA to do the probeset summarization,
  ## (with no background correction / normalization, that is already done)
  rv = rma(x, normalize=FALSE, background=FALSE)
  if(!(is(rv, "ExpressionSet") && validObject(rv)))
    stop("Failed to create a valid 'ExpressionSet' object.")
  return(rv)
}

Try the vsn package in your browser

Any scripts or data that you put into this service are public.

vsn documentation built on Nov. 8, 2020, 8:03 p.m.