File: effectiveLibSizes.Rd

package info (click to toggle)
r-bioc-edger 4.4.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 3,204 kB
  • sloc: ansic: 3,148; makefile: 5
file content (54 lines) | stat: -rw-r--r-- 1,488 bytes parent folder | download
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
\name{getNormLibSizes}
\alias{getNormLibSizes}
\alias{getNormLibSizes.default}
\alias{getNormLibSizes.DGEList}
\alias{getNormLibSizes.DGEGLM}
\alias{getNormLibSizes.DGELRT}

\title{Effective Library Sizes}

\description{Extract effective (normalized) library sizes.}

\usage{
\method{getNormLibSizes}{default}(y, log = FALSE, \dots)
}

\arguments{ 
\item{y}{
  a object of class \code{DGEList}, \code{DGEGLM} or \code{DGELRT}.
  Alternatively a numeric matrix or an object that can be coerced to a numeric matrix.
}
\item{log}{
  logical, if \code{TRUE} then the library sizes are return on the natural log scale.
}
\item{\dots}{
  other arguments are not currently used.
}
}

\value{
A numeric matrix of effective (normalized) library sizes.
If \code{log=TRUE}, then natural log values are returned, equal to library size offsets for a NB log-linear model.
}

\details{
This function extracts normalized library sizes, equal to the original library sizes multiplied by the corresponding normalization factors, from an edgeR data object or fitted model object.

If the object contains a row-specific offsets (i.e., a non-sparse matrix of offsets), then the offsets for the first row are returned.
}

\author{Gordon Smyth}

\seealso{
\code{\link{normLibSizes}}
}

\examples{
ngenes <- 100
nsamples <- 4
y <- DGEList(counts=matrix(rnbinom(ngenes*nsamples,size=1,mu=10),ngenes,nsamples))
y <- normLibSizes(y)
data.frame(y$samples, eff.lib.size=getNormLibSizes(y))
}

\concept{Normalization}