Browse code

bugfix for a problem with limma

git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/tRanslatome@99854 bc3139a8-67e5-0310-9ffc-ced21a209358

Erik Dassi authored on 26/02/2015 14:22:36
Showing 3 changed files

... ...
@@ -1,33 +1,17 @@
1
-Package: tRanslatome
2
-Type: Package
3
-Title: Comparison between multiple levels of gene expression.
4
-Version: 1.5.0
5
-Date: 2013-11-28
6
-Author: Toma Tebaldi, Erik Dassi, Galena Kostoska
7
-Maintainer: Toma Tebaldi <tebaldi@science.unitn.it>, Erik Dassi
8
-        <erik.dassi@unitn.it>
9
-Depends: R (>= 2.15.0), methods, limma, sigPathway, samr, anota, DESeq,
10
-        edgeR, RankProd, topGO, org.Hs.eg.db, GOSemSim, Heatplus,
11
-        gplots, plotrix
12
-Description: Detection of differentially expressed genes (DEGs) from
13
-        the comparison of two biological conditions (treated vs.
14
-        untreated, diseased vs. normal, mutant vs. wild-type) among
15
-        different levels of gene expression (transcriptome
16
-        ,translatome, proteome), using several statistical methods:
17
-        Rank Product, Translational Efficiency, t-test, SAM, Limma,
18
-        ANOTA, DESeq, edgeR. Possibility to plot the results with
19
-        scatterplots, histograms, MA plots, standard deviation (SD)
20
-        plots, coefficient of variation (CV) plots. Detection of
21
-        significantly enriched post-transcriptional regulatory factors
22
-        (RBPs, miRNAs, etc) and Gene Ontology terms in the lists of
23
-        DEGs previously identified for the two expression levels.
24
-        Comparison of GO terms enriched only in one of the levels or in
25
-        both. Calculation of the semantic similarity score between the
26
-        lists of enriched GO terms coming from the two expression
27
-        levels. Visual examination and comparison of the enriched terms
28
-        with heatmaps, radar plots and barplots.
29
-License: LGPL
30
-LazyLoad: yes
31
-biocViews: CellBiology, GeneRegulation, GeneExpression,
32
-        DifferentialExpression, Microarray, Sequencing, QualityControl,
33
-        GO, MultipleComparison
1
+Package: tRanslatome
2
+Type: Package
3
+Title: Comparison between multiple levels of gene expression.
4
+Version: 1.1.2
5
+Date: 2015-01-28
6
+Author: Toma Tebaldi, Erik Dassi, Galena Kostoska
7
+Maintainer: Toma Tebaldi <tebaldi@science.unitn.it>, Erik Dassi <erik.dassi@unitn.it>
8
+Depends: R (>= 2.15.0), methods, limma, sigPathway, samr, anota, DESeq,
9
+        edgeR, RankProd, topGO, org.Hs.eg.db, GOSemSim, Heatplus,
10
+        gplots, plotrix
11
+Description: Detection of differentially expressed genes (DEGs) from the comparison of two biological conditions (treated vs. untreated, diseased vs. normal, mutant vs. wild-type) among different levels of gene expression (transcriptome ,translatome, proteome), using several statistical methods:  Rank Product, Translational Efficiency, t-test, SAM, Limma, ANOTA, DESeq, edgeR. Possibility to plot the results with scatterplots, histograms, MA plots, standard deviation (SD) plots, coefficient of variation (CV) plots. Detection of significantly enriched post-transcriptional regulatory factors (RBPs, miRNAs, etc) and Gene Ontology terms in the lists of DEGs previously identified for the two expression levels. Comparison of GO terms enriched only in one of the levels or in both. Calculation of the semantic similarity score between the lists of enriched GO terms coming from the two expression levels. Visual examination and comparison of the enriched terms with heatmaps, radar plots and barplots. 
12
+License: MIT
13
+LazyLoad: yes
14
+biocViews: CellBiology, GeneRegulation, Regulation, GeneExpression,
15
+        DifferentialExpression, Microarray, HighThroughputSequencing,
16
+        QualityControl, GO, MultipleComparisons, Bioinformatics
17
+Packaged: 2015-01-29 13:48:55 UTC; toma
... ...
@@ -156,7 +156,7 @@ setMethod("computeDEGs", "TranslatomeDataset",
156 156
 						function(x) mean(x[which(cond.2.vector == 1)],na.rm=TRUE) - 
157 157
 												mean(x[which(cond.2.vector == 0)],na.rm=TRUE))
158 158
 		if (object@data.type  ==  "ngs") 
159
-      FC2 <- apply(cond.2, 1,
159
+      FC <- apply(cond.2, 1,
160 160
 						function(x) log(mean(x[which(cond.2.vector == 1)],na.rm=TRUE) / 
161 161
 														mean(x[which(cond.2.vector == 0)],na.rm=TRUE),base=2))
162 162
     avg.trt2 <- apply(cond.2, 1,
... ...
@@ -384,7 +384,7 @@ methodLimma <- function(cond, cond.2, cond.vector, cond.2.vector) {
384 384
 	cont.secondlevel <- makeContrasts("cond.d - cond.c", levels = design)
385 385
 	fitsecondlevel <- contrasts.fit(fit, cont.secondlevel)
386 386
 	fitsecondlevel <- eBayes(fitsecondlevel)
387
-	BH.secondlevel <- p.adjust(fitfirstlevel$F.p.value, method = "BH") 
387
+	BH.secondlevel <- p.adjust(fitsecondlevel$F.p.value, method = "BH") 
388 388
 		
389 389
 	# build the significance p-values matrix and return it	
390 390
 	return(cbind(fitfirstlevel$F.p.value, BH.firstlevel, 
... ...
@@ -41,7 +41,7 @@
41 41
 
42 42
 
43 43
 \section{Introduction}
44
-One way to achieve a comprehensive estimation of the influence of different layers of  control on gene expression is to analyze the changes in abundances of molecular intermediates at different levels. For example, comparing changes between abundances of mRNAs in active translation with respect to the corresponding changes in abundances of total mRNAs (by mean of parallel high-throughput profiling) we can estimate the influence of translational controls on each transcript. The tRanslatome package represents a complete platform for comparing data coming from two parallel high-throughput assays, profiling two different levels of gene expression. The package focusses on the comparison between the translatome and the transcriptome, but it can be used to compare any variation monitored at two "-omics" levels (e.g. the transcriptome and the proteome). The package provides a broad variety of statistical methods covering each step of the standard data analysis workflow: detection and comparison of differentially expressed genes (DEGs), detection and comparison of enriched biological themes through Gene Ontology (GO) annotation. The package provides tools to visually compare/contrast the results. An additional feature lies in the possibility to detect enrichment of targets of translational regulators using the experimental annotation contained in the AURA database \url{<http://aura.science.unitn.it/>}.
44
+One way to achieve a comprehensive estimation of the influence of different layers of  control on gene expression is to analyze the changes in abundances of molecular intermediates at different levels. For example, comparing changes between abundances of mRNAs in active translation with respect to the corresponding changes in abundances of total mRNAs (by mean of parallel high-throughput profiling) we can estimate the influence of translational controls on each transcript. The tRanslatome package represents a complete platform for comparing data coming from two parallel high-throughput assays, profiling two different levels of gene expression. The package focusses on the comparison between the translatome and the transcriptome, but it can be used to compare any variation monitored at two “-omics” levels (e.g. the transcriptome and the proteome). The package provides a broad variety of statistical methods covering each step of the standard data analysis workflow: detection and comparison of differentially expressed genes (DEGs), detection and comparison of enriched biological themes through Gene Ontology (GO) annotation. The package provides tools to visually compare/contrast the results. An additional feature lies in the possibility to detect enrichment of targets of translational regulators using the experimental annotation contained in the AURA database \url{<http://aura.science.unitn.it/>}.
45 45
 
46 46
 \section{tRanslatome in practice}
47 47
 The following code illustrates an analysis pipeline with tRanslatome.
... ...
@@ -77,7 +77,7 @@ All the steps contained in the code will be explained in more detail in the foll
77 77
 
78 78
 \section{DEGs detection}
79 79
 The initial core of the package consists of the class holding input data and results, called \code{TranslatomeDataset}.
80
-Objects of this class can be created through the \code{newTranslatomeDataset} function. This function takes as input a normalized data matrix coming from the high throughput experiment with entities (genes, transcripts, exons) in rows and samples (normalized signals coming from microarray, next generation sequencing, mass spectrometry) in columns. Since tRanslatome doesn't provide any normalization, signals contained in the data matrix should be normalized before, unless the DEGs selection method doesn't provide also a normalization step, as in the case of edgeR and DEseq. 
80
+Objects of this class can be created through the \code{newTranslatomeDataset} function. This function takes as input a normalized data matrix coming from the high throughput experiment with entities (genes, transcripts, exons) in rows and samples (normalized signals coming from microarray, next generation sequencing, mass spectrometry) in columns. Since tRanslatome doesn't provide any normalization, signals contained in the data matrix should be normalized before, unless the DEGs selection method doesn’t provide also a normalization step, as in the case of edgeR and DEseq. 
81 81
 In our worked example microarray data were previously quantile normalized.
82 82
 
83 83
 The function has the following input parameters: