File: samr.norm.data.Rd

package info (click to toggle)
r-cran-samr 3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 4,020 kB
  • sloc: fortran: 102; makefile: 7
file content (47 lines) | stat: -rwxr-xr-x 1,560 bytes parent folder | download | duplicates (2)
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
\name{samr.norm.data}
\alias{samr.norm.data}
\title{output normalized sequencing data}
\description{
Output a normalized sequencing data matrix from the original count matrix.
}
\usage{
samr.norm.data(x, depth=NULL)}
\arguments{
  \item{x}{the original count matrix. p by n matrix of features, one observation per column.}
  \item{depth}{sequencing depth of each experiment. a vector of length n.
  This function will estimate the sequencing depth if it is not specified.}
}

\details{normalize the data matrix so that each number looks roughly like
Gaussian distributed and each experiment has the same sequencing depth.
To do this, we first use Anscombe transformation to stablize the variance
and makes each number look like Gaussian,
and then divide each experiment by the square root of the sequencing depth.}



\value{
\item{x}{the normalized data matrix.}
}

 \references{Tusher, V.,  Tibshirani, R.  and Chu, G. (2001): 
Significance analysis of microarrays applied to the ionizing radiation response  PNAS 2001 98: 5116-5121, (Apr 24). 
http://www-stat.stanford.edu/~tibs/SAM}


\author{Jun Li and Balasubrimanian Narasimhan and Robert Tibshirani}

\examples{
set.seed(100)
mu <- matrix(100, 1000, 20)
mu[1:100, 11:20] <- 200
mu <- scale(mu, center=FALSE, scale=runif(20, 0.5, 1.5))
x <- matrix(rpois(length(mu), mu), 1000, 20)
y <- c(rep(1, 10), rep(2, 10))
data=list(x=x,y=y, geneid=as.character(1:nrow(x)),
genenames=paste("g",as.character(1:nrow(x)),sep=""))
x.norm <- samr.norm.data(data$x)
}

\keyword{univar}% at least one, from doc/KEYWORDS