Skip to content

Commit 7bb6464

Browse files
committed
ggplot2_density
1 parent 0f9b5c9 commit 7bb6464

10 files changed

Lines changed: 17 additions & 13 deletions

DESCRIPTION

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Package: SARTools
22
Type: Package
33
Title: Statistical Analysis of RNA-Seq Tools
4-
Version: 1.8.1
5-
Date: 2022-03-23
4+
Version: 1.8.2
5+
Date: 2023-06-13
66
Author: Marie-Agnes Dillies and Hugo Varet
77
Maintainer: Hugo Varet <hugo.varet@pasteur.fr>
88
Depends: R (>= 3.3.0),
@@ -34,4 +34,4 @@ VignetteBuilder: knitr, rmarkdown
3434
Encoding: latin1
3535
Description: Provide R tools and an environment for the statistical analysis of RNA-Seq projects: load and clean data, produce figures, perform statistical analysis/testing with DESeq2 or edgeR, export results and create final report.
3636
License: GPL-2
37-
RoxygenNote: 7.1.2
37+
RoxygenNote: 7.2.3

NEWS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
CHANGES IN VERSION 1.8.2
2+
------------------------
3+
o use of after_stat(density) instead of ..density..
4+
15
CHANGES IN VERSION 1.8.1
26
------------------------
37
o log2FoldChanges from DESeq2 are now computed using lfcShrink() with type="ashr" as "apeglm"

R/countsBoxplots.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#' @author Marie-Agnes Dillies and Hugo Varet
1212

1313
countsBoxplots <- function(object, group, col = c("lightblue","orange","MediumVioletRed","SpringGreen"), outfile=TRUE, ggplot_theme=theme_gray()){
14-
if (class(object)=="DESeqDataSet"){
14+
if (inherits(object, "DESeqDataSet")){
1515
counts <- counts(object)
1616
counts <- removeNull(counts)
1717
norm.counts <- counts(object, normalized=TRUE)

R/dispersionsPlot.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ dispersionsPlot <- function(dds, outfile=TRUE, ggplot_theme=theme_gray()){
4343
disp <- disp[disp>1e-8]
4444
d <- data.frame(disp)
4545
p2 <- ggplot(data=d, aes(x=.data$disp)) +
46-
geom_histogram(bins=80, aes(y=.data$..density..)) +
46+
geom_histogram(bins=80, aes(y=after_stat(density))) +
4747
scale_x_continuous(trans = log10_trans(),
4848
breaks = trans_breaks("log10", function(x) 10^x),
4949
labels = trans_format("log10", math_format())) +

R/exploreCounts.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@
1414
exploreCounts <- function(object, group, typeTrans="VST", gene.selection="pairwise",
1515
col=c("lightblue","orange","MediumVioletRed","SpringGreen"),
1616
ggplot_theme=theme_light()){
17-
if (class(object)=="DESeqDataSet"){
17+
if (inherits(object, "DESeqDataSet")){
1818
if (typeTrans == "VST") counts.trans <- assay(varianceStabilizingTransformation(object))
1919
else counts.trans <- assay(rlogTransformation(object))
2020
PCAPlot(counts.trans=counts.trans, group=group, col=col, ggplot_theme=ggplot_theme)
2121
clusterPlot(counts.trans=counts.trans, group=group, ggplot_theme=ggplot_theme)
22-
} else if (class(object)=="DGEList"){
22+
} else if (inherits(object, "DGEList")){
2323
MDSPlot(dge=object, group=group, col=col, gene.selection=gene.selection, ggplot_theme=ggplot_theme)
2424
clusterPlot(counts.trans=cpm(object, prior.count=2, log=TRUE), group=group, ggplot_theme=ggplot_theme)
2525
} else{

man/loadCountData.Rd

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

template_script_DESeq2.r

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
### R script to compare several conditions with the SARTools and DESeq2 packages
33
### Hugo Varet
44
### March 23rd, 2022
5-
### designed to be executed with SARTools 1.8.1
5+
### designed to be executed with SARTools 1.8.2
66
################################################################################
77

88
################################################################################

template_script_DESeq2_CL.r

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
### R script to compare several conditions with the SARTools and DESeq2 packages
33
### Hugo Varet
44
### March 23rd, 2022
5-
### designed to be executed with SARTools 1.8.1
5+
### designed to be executed with SARTools 1.8.2
66
### run "Rscript template_script_DESeq2_CL.r --help" to get some help
77
################################################################################
88

template_script_edgeR.r

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
### R script to compare several conditions with the SARTools and edgeR packages
33
### Hugo Varet
44
### March 23rd, 2022
5-
### designed to be executed with SARTools 1.8.1
5+
### designed to be executed with SARTools 1.8.2
66
################################################################################
77

88
################################################################################

template_script_edgeR_CL.r

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
### R script to compare several conditions with the SARTools and edgeR packages
33
### Hugo Varet
44
### March 23rd, 2022
5-
### designed to be executed with SARTools 1.8.1
5+
### designed to be executed with SARTools 1.8.2
66
### run "Rscript template_script_edgeR_CL.r --help" to get some help
77
################################################################################
88

0 commit comments

Comments
 (0)