Last data update: 2014.03.03

R: "SeqExpressionSet" class for collections of short reads
SeqExpressionSet-classR Documentation

"SeqExpressionSet" class for collections of short reads

Description

This class represents a collection of digital expression data (usually counts from RNA-Seq technology) along with sample information.

Objects from the Class

Objects of this class can be created from a call to the newSeqExpressionSet constructor.

Extends

Class eSet, directly. Class VersionedBiobase, by class eSet, distance 2. Class Versioned, by class eSet, distance 3.

Slots

Inherited from eSet:

assayData

Contains matrices with equal dimensions, and with column number equal to nrow(phenoData).assayData must contain a matrix counts with rows represening features (e.g., genes) and columns representing samples. The optional matrices normalizedCounts and offset can be added to represent a normalization in terms of pseudo-counts or offset, respectively, to be used for subsequent analyses. See the vignette for details. Class: AssayData-class.

phenoData

Sample information. For compatibility with DESeq, there should be at least the column conditions. See eSet for details.

featureData

Feature information. It is recomended to include at least length and GC-content information. This slot is used for withinLaneNormalization. See eSet for details.

experimentData

See eSet

annotation

See eSet

protocolData

See link{eSet}

Methods

See eSet for inherited methods. Additional methods:

counts

signature(object="SeqExpressionSet"): returns the counts matrix.

counts<-

signature(object = "SeqExpressionSet"): method to replace the counts matrix.

normCounts

signature(object="SeqExpressionSet"): returns the normalizedCounts matrix.

normCounts<-

signature(object = "SeqExpressionSet"): method to replace the normalizedCounts matrix.

offst

signature(object = "SeqExpressionSet"): returns the offset matrix.

offst<-

signature(object = "SeqExpressionSet"): method to replace the offset slot.

boxplot

signature(x = "SeqExpressionSet"): produces a boxplot of the log counts.

meanVarPlot

signature(x = "SeqExpressionSet"): produces a smoothScatter plot of the mean variance relation. See meanVarPlot for details.

biasPlot

signature(x = "SeqExpressionSet", y = "character"): produces a plot of the lowess regression of the counts on some covariate of interest (usually GC-content or length). See biasPlot for details.

wihtinLaneNormalization

signature(x = "SeqExpressionSet", y = "missing"): within lane normalization for GC-content (or other lane specific) bias. See withinLaneNormalization for details.

betweenLaneNormalization

signature(x = "SeqExpressionSet"): between lane normalization for sequencing depth and possibly other distributional differences between lanes. See betweenLaneNormalization for details.

coerce

signature(from = "SeqExpressionSet", to = "CountDataSet"): coercion to DESeq class CountDataSet for compatibility with downstream analysis.

Author(s)

Davide Risso <risso.davide@gmail.com>

See Also

eSet, newSeqExpressionSet, biasPlot, withinLaneNormalization, betweenLaneNormalization

Examples


showMethods(class="SeqExpressionSet", where=getNamespace("EDASeq"))

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))

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

head(counts(data))
boxplot(data, col=as.numeric(pData(data)[,1])+1)

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(EDASeq)
Loading required package: Biobase
Loading required package: BiocGenerics
Loading required package: parallel

Attaching package: 'BiocGenerics'

The following objects are masked from 'package:parallel':

    clusterApply, clusterApplyLB, clusterCall, clusterEvalQ,
    clusterExport, clusterMap, parApply, parCapply, parLapply,
    parLapplyLB, parRapply, parSapply, parSapplyLB

The following objects are masked from 'package:stats':

    IQR, mad, xtabs

The following objects are masked from 'package:base':

    Filter, Find, Map, Position, Reduce, anyDuplicated, append,
    as.data.frame, cbind, colnames, do.call, duplicated, eval, evalq,
    get, grep, grepl, intersect, is.unsorted, lapply, lengths, mapply,
    match, mget, order, paste, pmax, pmax.int, pmin, pmin.int, rank,
    rbind, rownames, sapply, setdiff, sort, table, tapply, union,
    unique, unsplit

Welcome to Bioconductor

    Vignettes contain introductory material; view with
    'browseVignettes()'. To cite Bioconductor, see
    'citation("Biobase")', and for packages 'citation("pkgname")'.

Loading required package: ShortRead
Loading required package: BiocParallel
Loading required package: Biostrings
Loading required package: S4Vectors
Loading required package: stats4

Attaching package: 'S4Vectors'

The following objects are masked from 'package:base':

    colMeans, colSums, expand.grid, rowMeans, rowSums

Loading required package: IRanges
Loading required package: XVector
Loading required package: Rsamtools
Loading required package: GenomeInfoDb
Loading required package: GenomicRanges
Loading required package: GenomicAlignments
Loading required package: SummarizedExperiment
> png(filename="/home/ddbj/snapshot/RGM3/R_BC/result/EDASeq/SeqExpressionSet-class.Rd_%03d_medium.png", width=480, height=480)
> ### Name: SeqExpressionSet-class
> ### Title: "SeqExpressionSet" class for collections of short reads
> ### Aliases: SeqExpressionSet-class offst offst<- normCounts normCounts<-
> ###   initialize,SeqExpressionSet-method exprs,SeqExpressionSet-method
> ###   exprs<-,SeqExpressionSet,ANY-method offst,SeqExpressionSet-method
> ###   offst<-,SeqExpressionSet,ANY-method offst<-,SeqExpressionSet-method
> ###   coerce,SeqExpressionSet,CountDataSet-method
> ###   counts,SeqExpressionSet-method counts<-,SeqExpressionSet,ANY-method
> ###   normCounts,SeqExpressionSet-method
> ###   normCounts<-,SeqExpressionSet,ANY-method
> ###   normCounts<-,SeqExpressionSet-method
> ### Keywords: classes
> 
> ### ** Examples
> 
> 
> showMethods(class="SeqExpressionSet", where=getNamespace("EDASeq"))
Function: MDPlot (package EDASeq)
x="SeqExpressionSet", y="numeric"

Function: betweenLaneNormalization (package EDASeq)
x="SeqExpressionSet"

Function: biasPlot (package EDASeq)
x="SeqExpressionSet", y="character"

Function: boxplot (package graphics)
x="SeqExpressionSet"

Function: coerce (package methods)
from="SeqExpressionSet", to="CountDataSet"

Function: counts (package BiocGenerics)
object="SeqExpressionSet"

Function: counts<- (package BiocGenerics)
object="SeqExpressionSet", value="ANY"

Function: exprs (package Biobase)
object="SeqExpressionSet"

Function: exprs<- (package Biobase)
object="SeqExpressionSet", value="ANY"

Function: initialize (package methods)
.Object="SeqExpressionSet"

Function: meanVarPlot (package EDASeq)
x="SeqExpressionSet"

Function: normCounts (package EDASeq)
object="SeqExpressionSet"

Function: normCounts<- (package EDASeq)
object="SeqExpressionSet"

Function: offst (package EDASeq)
object="SeqExpressionSet"

Function: offst<- (package EDASeq)
object="SeqExpressionSet"

Function: plotPCA (package BiocGenerics)
object="SeqExpressionSet"

Function: plotRLE (package EDASeq)
x="SeqExpressionSet"

Function: updateObject (package BiocGenerics)
object="SeqExpressionSet"

Function: withinLaneNormalization (package EDASeq)
x="SeqExpressionSet", y="character"

> 
> 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))
> 
> data <- newSeqExpressionSet(counts, phenoData=AnnotatedDataFrame(data.frame(conditions=cond)))
> 
> head(counts(data))
   1  2  3  4
1 51 48 56 49
2 44 54 47 59
3 51 50 52 45
4 67 45 59 63
5 44 40 48 53
6 51 49 44 56
> boxplot(data, col=as.numeric(pData(data)[,1])+1)
> 
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>