File: rma.background.correct.R

package info (click to toggle)
r-bioc-preprocesscore 1.68.0%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 988 kB
  • sloc: ansic: 9,605; sh: 3; makefile: 2
file content (54 lines) | stat: -rw-r--r-- 872 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
##################################################################
##
## file: rma.background.correct.R
##
## implements the normal boackground + exponential signal background
## correction traditionally used in RMA computations
##
## for more details see
##  Bolstad, BM (2004) Low Level Analysis of High-density Oligonucleotide Array Data: Background, Normalization and Summarization. Dissertation. University of California, Berkeley.
## pages 17-21
##
##
## History 
## Mar 22, 2008 - Initial version (in preprocessCore)
##
##

rma.background.correct <- function(x,copy=TRUE){

  rows <- dim(x)[1]
  cols <- dim(x)[2]

  if (!is.matrix(x)){
    stop("Matrix expected in normalize.quantiles")
  }

  if (is.integer(x)){
    x <- matrix(as.double(x),rows,cols)
    copy <- FALSE
  }

  .Call("R_rma_bg_correct", x, copy, PACKAGE="preprocessCore");
}