File: newSeqExpressionSet.Rd

package info (click to toggle)
r-bioc-edaseq 2.32.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 404 kB
  • sloc: makefile: 2
file content (60 lines) | stat: -rw-r--r-- 1,922 bytes parent folder | download | duplicates (3)
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
55
56
57
58
59
60
\name{newSeqExpressionSet}
\alias{newSeqExpressionSet}

\title{
Function to create a new \code{\linkS4class{SeqExpressionSet}} object.
}
\description{
User-level function to create new objects of the class \code{\linkS4class{SeqExpressionSet}}.
}
\usage{
newSeqExpressionSet(counts,
                    normalizedCounts = matrix(data=NA, nrow=nrow(counts), ncol=ncol(counts), dimnames=dimnames(counts)),
                    offset = matrix(data=0, nrow=nrow(counts), ncol=ncol(counts), dimnames=dimnames(counts)),
                    phenoData = annotatedDataFrameFrom(counts, FALSE),
                    featureData = annotatedDataFrameFrom(counts, TRUE),
                    ...)
}
\arguments{
  \item{counts}{
  A matrix containing the counts for an RNA-Seq experiment. One column for each lane and one row for each gene.
}
  \item{normalizedCounts}{
   A matrix with the same dimensions of \code{counts} with the normalized counts.
}
  \item{offset}{
 A matrix with the same dimensions of \code{counts} defining the offset (usually useful for normalization purposes). See the package vignette for a discussion on the offset.
}
  \item{phenoData}{
A data.frame or \code{\link{AnnotatedDataFrame}} with sample information, such as biological condition, library preparation protocol, flow-cell,...
}
  \item{featureData}{
A data.frame or \code{\link{AnnotatedDataFrame}} with feature information, such as gene length, GC-content, ...
}
  \item{\dots}{
 Other arguments will be passed to the constructor inherited from \code{\linkS4class{eSet}}.
}
}

\value{
An object of class \code{\linkS4class{SeqExpressionSet}}.
}

\author{
Davide Risso
}

\seealso{
\code{\linkS4class{SeqExpressionSet}}
}
\examples{

counts <- matrix(data=0, nrow=100, ncol=4)
for(i in 1:4) {
counts[, i] <- rpois(100, lambda=50)
}
cond <- c(rep("A", 2), rep("B", 2))

counts <- newSeqExpressionSet(counts, phenoData=data.frame(conditions=cond))

}