Title: | Exploratory Data Analysis and Normalization for RNA-Seq |
---|---|
Description: | Numerical and graphical summaries of RNA-Seq read data. Within-lane normalization procedures to adjust for GC-content effect (or other gene-level effects) on read counts: loess robust local regression, global-scaling, and full-quantile normalization (Risso et al., 2011). Between-lane normalization procedures to adjust for distributional differences between lanes (e.g., sequencing depth): global-scaling and full-quantile normalization (Bullard et al., 2010). |
Authors: | Davide Risso [aut, cre, cph], Sandrine Dudoit [aut], Ludwig Geistlinger [ctb] |
Maintainer: | Davide Risso <[email protected]> |
License: | Artistic-2.0 |
Version: | 2.41.0 |
Built: | 2024-11-29 07:13:32 UTC |
Source: | https://github.com/bioc/EDASeq |
Numerical summaries and graphical representations of some key features of the data along with implementations of both within-lane normalization methods for GC content bias and between-lane normalization methods to adjust for sequencing depth and possibly other differences in distribution.
The SeqExpressionSet
class is used to store gene-level counts along with sample information. It extends the virtual class eSet
. See the help page of the class for details.
"Read-level" information is managed via the FastqFileList
and BamFileList
classes of Rsamtools
.
Most used graphic tools for the FastqFileList
and BamFileList
objects are: 'barplot', 'plotQuality', 'plotNtFrequency'. For SeqExpressionSet
objects are: 'biasPlot', 'meanVarPlot', 'MDPlot'.
To perform gene-level normalization use the functions 'withinLaneNormalization' and 'betweenLaneNormalization'.
See the package vignette for a typical Exploratory Data Analysis example.
Davide Risso and Sandrine Dudoit. Maintainer: Davide Risso <[email protected]>
J. H. Bullard, E. A. Purdom, K. D. Hansen and S. Dudoit (2010). Evaluation of statistical methods for normalization and differential expression in mRNA-Seq experiments. BMC Bioinformatics Vol. 11, Article 94.
D. Risso, K. Schwartz, G. Sherlock and S. Dudoit (2011). GC-Content Normalization for RNA-Seq Data. Technical Report No. 291, Division of Biostatistics, University of California, Berkeley, Berkeley, CA.
barplot
in Package EDASeq High-level functions to produce barplots of some complex objects.
signature(height = "BamFile")
Usage: barplot(height,strata=c("rname","strand")) It produces a barplot of the total number of reads in each chromosome (if "rname") or strand.
signature(height = "BamFileList")
It produces a barplot of the total number of reads in each object in height
. If unique=TRUE
is specified, it stratified the total by uniquely/non-uniquely mapped reads.
signature(height = "FastqFileList")
It produces a barplot of the total number of reads in each object in height
.
betweenLaneNormalization
in Package EDASeq Between-lane normalization for sequencing depth and possibly other distributional differences between lanes.
betweenLaneNormalization(x, which=c("median","upper","full"), offset=FALSE, round=TRUE)
betweenLaneNormalization(x, which=c("median","upper","full"), offset=FALSE, round=TRUE)
x |
A numeric matrix representing the counts or a |
which |
Method used to normalized. See the details section and the reference below for details. |
offset |
Should the normalized value be returned as an offset leaving the original counts unchanged? |
round |
If TRUE the normalization returns rounded values (pseudo-counts). Ignored if offset=TRUE. |
This method implements three normalizations described in Bullard et al. (2010). The methods are:
median
:a scaling normalization that forces the median of each lane to be the same.
upper
:the same but with the upper quartile.
full
:a non linear full quantile normalization, in the spirit of the one used in microarrays.
signature(x = "matrix")
It returns a matrix with the normalized counts if offset=FALSE
or with the offset if offset=TRUE
.
signature(x = "SeqExpressionSet")
It returns a linkS4class{SeqExpressionSet}
with the normalized counts in the normalizedCounts
slot and with the offset in the offset
slot (if offset=TRUE
).
Davide Risso.
J. H. Bullard, E. A. Purdom, K. D. Hansen and S. Dudoit (2010). Evaluation of statistical methods for normalization and differential expression in mRNA-Seq experiments. BMC Bioinformatics Vol. 11, Article 94.
D. Risso, K. Schwartz, G. Sherlock and S. Dudoit (2011). GC-Content Normalization for RNA-Seq Data. Manuscript in Preparation.
library(yeastRNASeq) data(geneLevelData) data(yeastGC) sub <- intersect(rownames(geneLevelData), names(yeastGC)) mat <- as.matrix(geneLevelData[sub, ]) data <- newSeqExpressionSet(mat, phenoData=AnnotatedDataFrame( data.frame(conditions=factor(c("mut", "mut", "wt", "wt")), row.names=colnames(geneLevelData))), featureData=AnnotatedDataFrame(data.frame(gc=yeastGC[sub]))) norm <- betweenLaneNormalization(data, which="full", offset=FALSE)
library(yeastRNASeq) data(geneLevelData) data(yeastGC) sub <- intersect(rownames(geneLevelData), names(yeastGC)) mat <- as.matrix(geneLevelData[sub, ]) data <- newSeqExpressionSet(mat, phenoData=AnnotatedDataFrame( data.frame(conditions=factor(c("mut", "mut", "wt", "wt")), row.names=colnames(geneLevelData))), featureData=AnnotatedDataFrame(data.frame(gc=yeastGC[sub]))) norm <- betweenLaneNormalization(data, which="full", offset=FALSE)
biasBoxplot
in Package EDASeq biasBoxplot
produces a boxplot representing the distribution of a quantity of interest (e.g. gene counts, log-fold-changes, ...) stratified by a covariate (e.g. gene length, GC-contet, ...).
biasBoxplot(x,y,num.bins,...)
biasBoxplot(x,y,num.bins,...)
x |
A numeric vector with the quantity of interest (e.g. gene counts, log-fold-changes, ...) |
y |
A numeric vector with the covariate of interest (e.g. gene length, GC-contet, ...) |
num.bins |
A numeric value specifying the number of bins in wich to stratify |
... |
See |
signature(x = "numeric", y = "numeric", num.bins = "numeric")
It plots a line representing the regression of every column of the matrix x
on the numeric covariate y
. One can pass the usual graphical parameters as additional arguments (see par
).
library(yeastRNASeq) data(geneLevelData) data(yeastGC) sub <- intersect(rownames(geneLevelData), names(yeastGC)) mat <- as.matrix(geneLevelData[sub,]) data <- newSeqExpressionSet(mat, phenoData=AnnotatedDataFrame( data.frame(conditions=factor(c("mut", "mut", "wt", "wt")), row.names=colnames(geneLevelData))), featureData=AnnotatedDataFrame(data.frame(gc=yeastGC[sub]))) lfc <- log(geneLevelData[sub, 3] + 1) - log(geneLevelData[sub, 1] + 1) biasBoxplot(lfc, yeastGC[sub], las=2, cex.axis=.7)
library(yeastRNASeq) data(geneLevelData) data(yeastGC) sub <- intersect(rownames(geneLevelData), names(yeastGC)) mat <- as.matrix(geneLevelData[sub,]) data <- newSeqExpressionSet(mat, phenoData=AnnotatedDataFrame( data.frame(conditions=factor(c("mut", "mut", "wt", "wt")), row.names=colnames(geneLevelData))), featureData=AnnotatedDataFrame(data.frame(gc=yeastGC[sub]))) lfc <- log(geneLevelData[sub, 3] + 1) - log(geneLevelData[sub, 1] + 1) biasBoxplot(lfc, yeastGC[sub], las=2, cex.axis=.7)
biasPlot
in Package EDASeq biasPlot
produces a plot of the lowess
regression of the counts on a covariate of interest, tipically the GC-content or the length of the genes.
signature(x = "matrix", y = "numeric")
It plots a line representing the regression of every column of the matrix x
on the numeric covariate y
. One can pass the usual graphical parameters as additional arguments (see par
).
signature(x = "SeqExpressionSet", y = "character")
It plots a line representing the regression of every lane in x
on the covariate specified by y
. y
must be one of the column of the featureData
slot of the x
object. One can pass the usual graphical parameters as additional arguments (see par
). The parameter color_code
(optional) must be a number specifying the column of phenoData
to be used for color-coding. By default it is color-coded according to the first column of phenoData
. If legend=TRUE
and col
is not specified a legend with the information stored in phenoData
is added.
library(yeastRNASeq) data(geneLevelData) data(yeastGC) sub <- intersect(rownames(geneLevelData), names(yeastGC)) mat <- as.matrix(geneLevelData[sub,]) data <- newSeqExpressionSet(mat, phenoData=AnnotatedDataFrame( data.frame(conditions=factor(c("mut", "mut", "wt", "wt")), row.names=colnames(geneLevelData))), featureData=AnnotatedDataFrame(data.frame(gc=yeastGC[sub]))) biasPlot(data,"gc",ylim=c(0,5),log=TRUE)
library(yeastRNASeq) data(geneLevelData) data(yeastGC) sub <- intersect(rownames(geneLevelData), names(yeastGC)) mat <- as.matrix(geneLevelData[sub,]) data <- newSeqExpressionSet(mat, phenoData=AnnotatedDataFrame( data.frame(conditions=factor(c("mut", "mut", "wt", "wt")), row.names=colnames(geneLevelData))), featureData=AnnotatedDataFrame(data.frame(gc=yeastGC[sub]))) biasPlot(data,"gc",ylim=c(0,5),log=TRUE)
boxplot
in Package EDASeq High-level functions to produce boxplots of some complex objects.
signature(x = "FastqQuality")
It plots the distribution of the quality per read position.
signature(x = "SeqExpressionSet")
It plots the distribution of the log counts in each lane of x
.
Automatically retrieves gene length and GC-content information from Biomart or org.db packages.
getGeneLengthAndGCContent(id, org, mode=c("biomart", "org.db"))
getGeneLengthAndGCContent(id, org, mode=c("biomart", "org.db"))
id |
Character vector of one or more ENSEMBL or ENTREZ gene IDs. |
org |
Organism three letter code, e.g. 'hsa' for 'Homo sapiens'. See also: http://www.genome.jp/kegg/catalog/org_list.html; In org.db mode, this can be also a specific genome assembly, e.g. 'hg38' or 'sacCer3'. |
mode |
Mode to retrieve the information. Defaults to 'biomart'. See Details. |
The 'biomart' mode is based on functionality from the biomaRt packgage and retrieves the required information from the BioMart database. This is available for all ENSEMBL organisms and is typically most current, but can be time-consuming when querying several thousand genes at a time.
The 'org.db' mode uses organism-based annotation packages from Bioconductor. This is much faster than the 'biomart' mode, but is only available for selected model organism currently supported by BioC annotation functionality.
Results for the same gene ID(s) can differ between both modes as they are based on different sources for the underlying genome assembly. While the 'biomart' mode uses the latest ENSEMBL version, the 'org.db' mode uses BioC annotation packages typically built from UCSC.
A numeric matrix with two columns: gene length and GC-content.
Ludwig Geistlinger <[email protected]>
getSequence
to retrieve a genomic sequence from BioMart,
genes
to extract genomic coordinates from a TxDb object,
getSeq
to extract genomic sequences from a BSgenome object,
alphabetFrequency
to calculate nucleotide frequencies.
getGeneLengthAndGCContent("ENSG00000012048", "hsa")
getGeneLengthAndGCContent("ENSG00000012048", "hsa")
MDPlot
in Package EDASeq MDPlot
produces a mean-difference smooth scatterplot of two lanes in an experiment.
MDPlot(x,y,...)
MDPlot(x,y,...)
x |
Either a numeric matrix or a |
y |
A numeric vecor specifying the lanes to be compared. |
... |
See |
The mean-difference (MD) plot is a useful plot to visualize difference in two lanes of an experiment. From a MDPlot one can see if normalization is needed and if a linear scaling is sufficient or nonlinear normalization is more effective.
The MDPlot also plots a lowess fit (in red) underlying a possible trend in the bias related to the mean expression.
signature(x = "matrix", y = "numeric")
signature(x = "SeqExpressionSet", y = "numeric")
library(yeastRNASeq) data(geneLevelData) data(yeastGC) sub <- intersect(rownames(geneLevelData), names(yeastGC)) mat <- as.matrix(geneLevelData[sub,]) data <- newSeqExpressionSet(mat, phenoData=AnnotatedDataFrame( data.frame(conditions=factor(c("mut", "mut", "wt", "wt")), row.names=colnames(geneLevelData))), featureData=AnnotatedDataFrame(data.frame(gc=yeastGC[sub]))) MDPlot(data,c(1,3))
library(yeastRNASeq) data(geneLevelData) data(yeastGC) sub <- intersect(rownames(geneLevelData), names(yeastGC)) mat <- as.matrix(geneLevelData[sub,]) data <- newSeqExpressionSet(mat, phenoData=AnnotatedDataFrame( data.frame(conditions=factor(c("mut", "mut", "wt", "wt")), row.names=colnames(geneLevelData))), featureData=AnnotatedDataFrame(data.frame(gc=yeastGC[sub]))) MDPlot(data,c(1,3))
meanVarPlot
in Package EDASeq
meanVarPlot
produces a smoothScatter
plot of the mean variance relation.
signature(x = "SeqExpressionSet")
It takes as additional argument log
, which if true consider the logarithm of the counts before computing mean and variance. To avoid missing values, we consider the maximum between 0 and the log of the counts. Along with the scatter plot the function plots a line representing the lowess
fit.
SeqExpressionSet
object.
User-level function to create new objects of the class SeqExpressionSet
.
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), ...)
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), ...)
counts |
A matrix containing the counts for an RNA-Seq experiment. One column for each lane and one row for each gene. |
normalizedCounts |
A matrix with the same dimensions of |
offset |
A matrix with the same dimensions of |
phenoData |
A data.frame or |
featureData |
A data.frame or |
... |
Other arguments will be passed to the constructor inherited from |
An object of class SeqExpressionSet
.
Davide Risso
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))
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))
plot
in Package EDASeq High-level function to produce plots given one BamFileList
object and one FastqFileList
object.
signature(x = "BamFileList", y = "FastqFileList")
It produce a barplot of the percentage of mapped reads. If strata=TRUE
it stratifies the bars according to the unique/non-unique mapped reads.
To be meaningful, x
should be a set of aligned reads and y
a set of raw reads on the same samples.
plotNtFrequency
in Package EDASeq Plots the nucleotide frequencies per position.
signature(x = "ShortRead")
signature(x = "BamFile")
It plots the nucleotide frequencies per position, averaging all the reads in x
.
plotPCA
in Package EDASeq plotPCA
produces a Principal Component Analysis (PCA) plot of the counts in object
## S4 method for signature 'matrix' plotPCA(object, k=2, labels=TRUE, isLog=FALSE, ...) ## S4 method for signature 'SeqExpressionSet' plotPCA(object, k=2, labels=TRUE, ...)
## S4 method for signature 'matrix' plotPCA(object, k=2, labels=TRUE, isLog=FALSE, ...) ## S4 method for signature 'SeqExpressionSet' plotPCA(object, k=2, labels=TRUE, ...)
object |
Either a numeric matrix or a |
k |
The number of principal components to be plotted. |
labels |
Logical. If |
isLog |
Logical. Set to |
... |
See |
The Principal Component Analysis (PCA) plot is a useful diagnostic plot to highlight differences in the distribution of replicate samples, by projecting the samples into a lower dimensional space.
If there is strong differential expression between two classes, one expects the samples to cluster by class in the first few Principal Components (PCs) (usually 2 or 3 components are enough). This plot also highlights possible batch effects and/or outlying samples.
signature(x = "matrix")
signature(x = "SeqExpressionSet")
library(yeastRNASeq) data(geneLevelData) mat <- as.matrix(geneLevelData) data <- newSeqExpressionSet(mat, phenoData=AnnotatedDataFrame( data.frame(conditions=factor(c("mut", "mut", "wt", "wt")), row.names=colnames(geneLevelData)))) plotPCA(data, col=rep(1:2, each=2))
library(yeastRNASeq) data(geneLevelData) mat <- as.matrix(geneLevelData) data <- newSeqExpressionSet(mat, phenoData=AnnotatedDataFrame( data.frame(conditions=factor(c("mut", "mut", "wt", "wt")), row.names=colnames(geneLevelData)))) plotPCA(data, col=rep(1:2, each=2))
plotQuality
in Package EDASeq plotQuality
produces a plot of the quality of the reads.
signature(x = "BamFileList")
It produces a plot that summarizes the per-base mean quality of the reads of each BAM file in x
.
signature(x = "BamFile")
It produces a boxplot of the per-base distribution of the quality scores of the reads in x
.
signature(x = "FastqFileList")
It produces a plot that summarizes the per-base mean quality of the reads of each FASTQ file in x
.
Since FASTQ files can be very long, it can be very expensive to process a whole file. One way to avoid this, is to consider a subset of the file and then plot the quality of the subset. As long as one assumes that the subset is random, this is a good approximation. The function FastqSampler
of ShortRead
can be used for this. See its help page for an example.
plotRLE
in Package EDASeq plotRLE
produces a Relative Log Expression (RLE) plot of the counts in x
plotRLE(x, ...)
plotRLE(x, ...)
x |
Either a numeric matrix or a |
... |
See |
The Relative Log Expression (RLE) plot is a useful diagnostic plot to visualize the differences between the distributions of read counts across samples.
It shows the boxplots of the log-ratios of the gene-level read counts of each sample to those of a reference sample (defined as the median across the samples). Ideally, the distributions should be centered around the zero line and as tight as possible. Clear deviations indicate the need for normalization and/or the presence of outlying samples.
signature(x = "matrix")
signature(x = "SeqExpressionSet")
library(yeastRNASeq) data(geneLevelData) mat <- as.matrix(geneLevelData) data <- newSeqExpressionSet(mat, phenoData=AnnotatedDataFrame( data.frame(conditions=factor(c("mut", "mut", "wt", "wt")), row.names=colnames(geneLevelData)))) plotRLE(data, col=rep(2:3, each=2))
library(yeastRNASeq) data(geneLevelData) mat <- as.matrix(geneLevelData) data <- newSeqExpressionSet(mat, phenoData=AnnotatedDataFrame( data.frame(conditions=factor(c("mut", "mut", "wt", "wt")), row.names=colnames(geneLevelData)))) plotRLE(data, col=rep(2:3, each=2))
This class represents a collection of digital expression data (usually counts from RNA-Seq technology) along with sample information.
Objects of this class can be created from a call to the
newSeqExpressionSet
constructor.
Class eSet
, directly.
Class VersionedBiobase
, by class eSet
, distance 2.
Class Versioned
, by class eSet
, distance 3.
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}
See eSet
for inherited methods. Additional methods:
signature(object="SeqExpressionSet")
: returns the counts
matrix.
signature(object = "SeqExpressionSet")
: method to replace the counts
matrix.
signature(object="SeqExpressionSet")
: returns the normalizedCounts
matrix.
signature(object = "SeqExpressionSet")
: method to replace the normalizedCounts
matrix.
signature(object = "SeqExpressionSet")
: returns the offset
matrix.
signature(object = "SeqExpressionSet")
: method to replace the offset
slot.
signature(x = "SeqExpressionSet")
: produces a boxplot of the log counts.
signature(x = "SeqExpressionSet")
: produces a smoothScatter
plot of the mean variance relation. See meanVarPlot
for details.
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.
signature(x = "SeqExpressionSet", y = "missing")
: within lane normalization for GC-content (or other lane specific) bias. See withinLaneNormalization
for details.
signature(x = "SeqExpressionSet")
: between lane normalization for sequencing depth and possibly other distributional differences between lanes. See betweenLaneNormalization
for details.
Davide Risso <[email protected]>
eSet
, newSeqExpressionSet
, biasPlot
, withinLaneNormalization
, betweenLaneNormalization
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)
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)
withinLaneNormalization
in Package EDASeq Within-lane normalization for GC-content (or other lane-specific) bias.
withinLaneNormalization(x, y, which=c("loess","median","upper","full"), offset=FALSE, num.bins=10, round=TRUE)
withinLaneNormalization(x, y, which=c("loess","median","upper","full"), offset=FALSE, num.bins=10, round=TRUE)
x |
A numeric matrix representing the counts or a |
y |
A numeric vector representing the covariate to normalize for (if |
which |
Method used to normalized. See the details section and the reference below for details. |
offset |
Should the normalized value be returned as an offset leaving the original counts unchanged? |
num.bins |
The number of bins used to stratify the covariate for |
round |
If TRUE the normalization returns rounded values (pseudo-counts). Ignored if offset=TRUE. |
This method implements four normalizations described in Risso et al. (2011).
The loess
normalization transforms the data by regressing the counts on y
and subtracting the loess fit from the counts to remove the dependence.
The median
, upper
and full
normalizations are based on the stratification of the genes based on y
. Once the genes are stratified in num.bins
strata, the methods work as follows.
median
:scales the data to have the same median in each bin.
upper
:the same but with the upper quartile.
full
:forces the distribution of each stratum to be the same using a non linear full quantile normalization, in the spirit of the one used in microarrays.
signature(x = "matrix", y = "numeric")
It returns a matrix with the normalized counts if offset=FALSE
or with the offset if offset=TRUE
.
signature(x = "SeqExpressionSet", y = "character")
It returns a SeqExpressionSet
with the normalized counts in the normalizedCounts
slot and with the offset in the offset
slot (if offset=TRUE
).
Davide Risso.
D. Risso, K. Schwartz, G. Sherlock and S. Dudoit (2011). GC-Content Normalization for RNA-Seq Data. Manuscript in Preparation.
library(yeastRNASeq) data(geneLevelData) data(yeastGC) sub <- intersect(rownames(geneLevelData), names(yeastGC)) mat <- as.matrix(geneLevelData[sub, ]) data <- newSeqExpressionSet(mat, phenoData=AnnotatedDataFrame( data.frame(conditions=factor(c("mut", "mut", "wt", "wt")), row.names=colnames(geneLevelData))), featureData=AnnotatedDataFrame(data.frame(gc=yeastGC[sub]))) norm <- withinLaneNormalization(data, "gc", which="full", offset=FALSE)
library(yeastRNASeq) data(geneLevelData) data(yeastGC) sub <- intersect(rownames(geneLevelData), names(yeastGC)) mat <- as.matrix(geneLevelData[sub, ]) data <- newSeqExpressionSet(mat, phenoData=AnnotatedDataFrame( data.frame(conditions=factor(c("mut", "mut", "wt", "wt")), row.names=colnames(geneLevelData))), featureData=AnnotatedDataFrame(data.frame(gc=yeastGC[sub]))) norm <- withinLaneNormalization(data, "gc", which="full", offset=FALSE)
This data set gives the GC-content (proportion of G and C) of the genes of S. Cerevisiae, from SGD release 64 annotation.
A vector containing 6717 observations.
SGD release 64: http://www.yeastgenome.org
This data set gives the length (in base pairs) of the genes of S. Cerevisiae, from SGD release 64 annotation.
A vector containing 6717 observations.
SGD release 64: http://www.yeastgenome.org