Browse code

setting up git-svn bridge

Bioconductor Git-SVN Bridge authored on 31/08/2014 21:28:19
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,54 @@
1
+##################################################################
2
+##
3
+## file: rma.background.correct.R
4
+##
5
+## implements the normal boackground + exponential signal background
6
+## correction traditionally used in RMA computations
7
+##
8
+## for more details see
9
+##  Bolstad, BM (2004) Low Level Analysis of High-density Oligonucleotide Array Data: Background, Normalization and Summarization. Dissertation. University of California, Berkeley.
10
+## pages 17-21
11
+##
12
+##
13
+## History 
14
+## Mar 22, 2008 - Initial version (in preprocessCore)
15
+##
16
+##
17
+
18
+rma.background.correct <- function(x,copy=TRUE){
19
+
20
+  rows <- dim(x)[1]
21
+  cols <- dim(x)[2]
22
+
23
+  if (!is.matrix(x)){
24
+    stop("Matrix expected in normalize.quantiles")
25
+  }
26
+
27
+  if (is.integer(x)){
28
+    x <- matrix(as.double(x),rows,cols)
29
+    copy <- FALSE
30
+  }
31
+
32
+  .Call("R_rma_bg_correct", x, copy, PACKAGE="preprocessCore");
33
+}
34
+
35
+
36
+
37
+
38
+
39
+
40
+
41
+
42
+
43
+
44
+
45
+
46
+
47
+
48
+
49
+
50
+
51
+
52
+
53
+
54
+