# 1 Basic DESeq2 results exploration

Project: SRP009615.

# 2 Introduction

This report is meant to help explore DESeq2 (Love, Huber, and Anders, 2014) results and was generated using the `regionReport` (Collado-Torres, Jaffe, and Leek, 2016) package. While the report is rich, it is meant to just start the exploration of the results and exemplify some of the code used to do so. If you need a more in-depth analysis for your specific data set you might want to use the `customCode` argument. This report is based on the vignette of the `DESeq2` (Love, Huber, and Anders, 2014) package which you can find here.

## 2.1 Code setup

This section contains the code for setting up the rest of the report.

    ## knitrBoostrap and device chunk options
    library('knitr')
    opts_chunk$set(bootstrap.show.code = FALSE, dev = device, crop = NULL)
    if(!outputIsHTML) opts_chunk$set(bootstrap.show.code = FALSE, dev = device, echo = FALSE)

    #### Libraries needed

    ## Bioconductor
    library('DESeq2')
    if(isEdgeR) library('edgeR')

    ## CRAN
    library('ggplot2')
    if(!is.null(theme)) theme_set(theme)
    library('knitr')
    if(is.null(colors)) {
        library('RColorBrewer')
    }
    library('pheatmap')
    library('DT')
    library('sessioninfo')

    #### Code setup

    ## For ggplot
    res.df <- as.data.frame(res)

    ## Sort results by adjusted p-values
    ord <- order(res.df$padj, decreasing = FALSE)
    res.df <- res.df[ord, ]
    features <- rownames(res.df)
    res.df <- cbind(data.frame(Feature = features), res.df)
    rownames(res.df) <- NULL

# 3 PCA

    ## Transform count data
    rld <- tryCatch(rlog(dds), error = function(e) { rlog(dds, fitType = 'mean') })

    ## Perform PCA analysis and make plot
    plotPCA(rld, intgroup = intgroup)

    ## Get percent of variance explained
    data_pca <- plotPCA(rld, intgroup = intgroup, returnData = TRUE)
    percentVar <- round(100 * attr(data_pca, "percentVar"))

The above plot shows the first two principal components that explain the variability in the data using the regularized log count data. If you are unfamiliar with principal component analysis, you might want to check the Wikipedia entry or this interactive explanation. In this case, the first and second principal component explain 65 and 15 percent of the variance respectively.

# 4 Sample-to-sample distances

    ## Obtain the sample euclidean distances
    sampleDists <- dist(t(assay(rld)))
    sampleDistMatrix <- as.matrix(sampleDists)
    ## Add names based on intgroup
    rownames(sampleDistMatrix) <- apply(as.data.frame(colData(rld)[, intgroup]), 1,
        paste, collapse = ' : ')
    colnames(sampleDistMatrix) <- NULL

    ## Define colors to use for the heatmap if none were supplied
    if(is.null(colors)) {
        colors <- colorRampPalette( rev(brewer.pal(9, "Blues")) )(255)
    }

    ## Make the heatmap
    pheatmap(sampleDistMatrix, clustering_distance_rows = sampleDists,
        clustering_distance_cols = sampleDists, color = colors)

This plot shows how samples are clustered based on their euclidean distance using the regularized log transformed count data. This figure gives an overview of how the samples are hierarchically clustered. It is a complementary figure to the PCA plot.

# 5 MA plots

This section contains three MA plots (see Wikipedia) that compare the mean of the normalized counts against the log fold change. They show one point per feature. The points are shown in red if the feature has an adjusted p-value less than `alpha`, that is, the statistically significant features are shown in red.

    ## MA plot with alpha used in DESeq2::results()
    plotMA(res, alpha = metadata(res)$alpha, main = paste('MA plot with alpha =',
        metadata(res)$alpha))

    ## Warning in plot.window(...): "alpha" is not a graphical parameter

    ## Warning in plot.xy(xy, type, ...): "alpha" is not a graphical parameter

    ## Warning in axis(side = side, at = at, labels = labels, ...): "alpha" is not a
    ## graphical parameter

    ## Warning in axis(side = side, at = at, labels = labels, ...): "alpha" is not a
    ## graphical parameter

    ## Warning in box(...): "alpha" is not a graphical parameter

    ## Warning in title(...): "alpha" is not a graphical parameter

This first plot shows uses `alpha` = 0.1, which is the `alpha` value used to determine which resulting features were significant when running the function `DESeq2::results()`.

    ## MA plot with alpha = 1/2 of the alpha used in DESeq2::results()
    plotMA(res, alpha = metadata(res)$alpha / 2,
        main = paste('MA plot with alpha =', metadata(res)$alpha / 2))

    ## Warning in plot.window(...): "alpha" is not a graphical parameter

    ## Warning in plot.xy(xy, type, ...): "alpha" is not a graphical parameter

    ## Warning in axis(side = side, at = at, labels = labels, ...): "alpha" is not a
    ## graphical parameter

    ## Warning in axis(side = side, at = at, labels = labels, ...): "alpha" is not a
    ## graphical parameter

    ## Warning in box(...): "alpha" is not a graphical parameter

    ## Warning in title(...): "alpha" is not a graphical parameter

This second MA plot uses `alpha` = 0.05 and can be used agains the first MA plot to identify which features have adjusted p-values between 0.05 and 0.1.

    ## MA plot with alpha corresponding to the one that gives the nBest features
    nBest.actual <- min(nBest, nrow(head(res.df, n = nBest)))
    nBest.alpha <- head(res.df, n = nBest)$padj[nBest.actual]
    plotMA(res, alpha = nBest.alpha * 1.00000000000001,
        main = paste('MA plot for top', nBest.actual, 'features'))

    ## Warning in plot.window(...): "alpha" is not a graphical parameter

    ## Warning in plot.xy(xy, type, ...): "alpha" is not a graphical parameter

    ## Warning in axis(side = side, at = at, labels = labels, ...): "alpha" is not a
    ## graphical parameter

    ## Warning in axis(side = side, at = at, labels = labels, ...): "alpha" is not a
    ## graphical parameter

    ## Warning in box(...): "alpha" is not a graphical parameter

    ## Warning in title(...): "alpha" is not a graphical parameter

The third and final MA plot uses an alpha such that the top 10 features are shown in the plot. These are the features that whose details are included in the top features interactive table.

# 6 P-values distribution

    ## P-value histogram plot
    ggplot(res.df[!is.na(res.df$pvalue), ], aes(x = pvalue)) +
        geom_histogram(alpha=.5, position='identity', bins = 50) +
        labs(title='Histogram of unadjusted p-values') +
        xlab('Unadjusted p-values') +
        xlim(c(0, 1.0005))

    ## Warning: Removed 2 rows containing missing values (geom_bar).

This plot shows a histogram of the unadjusted p-values. It might be skewed right or left, or flat as shown in the Wikipedia examples. The shape depends on the percent of features that are differentially expressed. For further information on how to interpret a histogram of p-values check David Robinson’s post on this topic.

    ## P-value distribution summary
    summary(res.df$pvalue)

    ##    Min. 1st Qu.  Median    Mean 3rd Qu.    Max.    NA's
    ##   0.000   0.207   0.540   0.504   0.798   1.000    7979

This is the numerical summary of the distribution of the p-values.

    ## Split features by different p-value cutoffs
    pval_table <- lapply(c(1e-04, 0.001, 0.01, 0.025, 0.05, 0.1, 0.2, 0.3, 0.4, 0.5,
        0.6, 0.7, 0.8, 0.9, 1), function(x) {
        data.frame('Cut' = x, 'Count' = sum(res.df$pvalue <= x, na.rm = TRUE))
    })
    pval_table <- do.call(rbind, pval_table)
    if(outputIsHTML) {
        kable(pval_table, format = 'markdown', align = c('c', 'c'))
    } else {
        kable(pval_table)
    }

Cut | Count
--- | ---
0.0001 | 243
0.0010 | 776
0.0100 | 2371
0.0250 | 3816
0.0500 | 5468
0.1000 | 8059
0.2000 | 12278
0.3000 | 16026
0.4000 | 19662
0.5000 | 23425
0.6000 | 27385
0.7000 | 32525
0.8000 | 38160
0.9000 | 44652
1.0000 | 50058

This table shows the number of features with p-values less or equal than some commonly used cutoff values.

# 7 Adjusted p-values distribution

    ## Adjusted p-values histogram plot
    ggplot(res.df[!is.na(res.df$padj), ], aes(x = padj)) +
        geom_histogram(alpha=.5, position='identity', bins = 50) +
        labs(title=paste('Histogram of', elementMetadata(res)$description[grep('adjusted', elementMetadata(res)$description)])) +
        xlab('Adjusted p-values') +
        xlim(c(0, 1.0005))

    ## Warning: Removed 2 rows containing missing values (geom_bar).

This plot shows a histogram of the BH adjusted p-values. It might be skewed right or left, or flat as shown in the Wikipedia examples.

    ## Adjusted p-values distribution summary
    summary(res.df$padj)

    ##    Min. 1st Qu.  Median    Mean 3rd Qu.    Max.    NA's
    ##    0.00    0.31    0.60    0.57    0.84    1.00   33963

This is the numerical summary of the distribution of the BH adjusted p-values.

    ## Split features by different adjusted p-value cutoffs
    padj_table <- lapply(c(1e-04, 0.001, 0.01, 0.025, 0.05, 0.1, 0.2, 0.3, 0.4, 0.5,
        0.6, 0.7, 0.8, 0.9, 1), function(x) {
        data.frame('Cut' = x, 'Count' = sum(res.df$padj <= x, na.rm = TRUE))
    })
    padj_table <- do.call(rbind, padj_table)
    if(outputIsHTML) {
        kable(padj_table, format = 'markdown', align = c('c', 'c'))
    } else {
        kable(padj_table)
    }

Cut | Count
--- | ---
0.0001 | 9
0.0010 | 36
0.0100 | 234
0.0250 | 608
0.0500 | 1114
0.1000 | 2140
0.2000 | 3960
0.3000 | 5893
0.4000 | 7937
0.5000 | 9897
0.6000 | 11992
0.7000 | 14323
0.8000 | 16814
0.9000 | 19853
1.0000 | 24074

This table shows the number of features with BH adjusted p-values less or equal than some commonly used cutoff values.

# 8 Top features

This interactive table shows the top 10 features ordered by their BH adjusted p-values. Use the search function to find your feature of interest or sort by one of the columns.

    ## Add search url if appropriate
    if(!is.null(searchURL) & outputIsHTML) {
        res.df$Feature <- paste0('<a href="', searchURL, res.df$Feature, '">',
            res.df$Feature, '</a>')
    }

    for(i in which(colnames(res.df) %in% c('pvalue', 'padj'))) res.df[, i] <- format(res.df[, i], scientific = TRUE)

    if(outputIsHTML) {
        datatable(head(res.df, n = nBest), options = list(pagingType='full_numbers', pageLength=10, scrollX='100%'), escape = FALSE, rownames = FALSE) %>% formatRound(which(!colnames(res.df) %in% c('pvalue', 'padj', 'Feature')), digits)
    } else {
        res.df_top <- head(res.df, n = 20)
        for(i in which(!colnames(res.df) %in% c('pvalue', 'padj', 'Feature'))) res.df_top[, i] <- round(res.df_top[, i], digits)
        kable(res.df_top)
    }

# 9 Count plots top features

This section contains plots showing the normalized counts per sample for each group of interest. Only the best 2 features are shown, ranked by their BH adjusted p-values. The Y axis is on the log10 scale and the feature name is shown in the title of each plot.

    plotCounts_gg <- function(i, dds, intgroup) {
        group <- if (length(intgroup) == 1) {
            colData(dds)[[intgroup]]
        } else if (length(intgroup) == 2) {
            lvls <- as.vector(t(outer(levels(colData(dds)[[intgroup[1]]]),
                levels(colData(dds)[[intgroup[2]]]), function(x,
                    y) paste(x, y, sep = " : "))))
            droplevels(factor(apply(as.data.frame(colData(dds)[,
                intgroup, drop = FALSE]), 1, paste, collapse = " : "),
                levels = lvls))
        } else {
            factor(apply(as.data.frame(colData(dds)[, intgroup, drop = FALSE]),
                1, paste, collapse = " : "))
        }
        data <- plotCounts(dds, gene=i, intgroup=intgroup, returnData = TRUE)
        ## Change in version 1.15.3
        ## It might not be necessary to have any of this if else, but I'm not
        ## sure that plotCounts(returnData) will always return the 'group' variable.
        if('group' %in% colnames(data)) {
            data$group <- group
        } else {
            data <- cbind(data, data.frame('group' = group))
        }

        ggplot(data, aes(x = group, y = count)) + geom_point() + ylab('Normalized count') + ggtitle(i) + coord_trans(y = "log10") + theme(axis.text.x = element_text(angle = 90, hjust = 1))
    }
    for(i in head(features, nBestFeatures)) {
        print(plotCounts_gg(i, dds = dds, intgroup = intgroup))
    }

# 10 Reproducibility

The input for this report was generated with DESeq2 (Love, Huber, and Anders, 2014) using version 1.34.0 and the resulting features were called significantly differentially expressed if their BH adjusted p-values were less than `alpha` = 0.1. This report was generated in path C:/Users/biocbuild/bbs-3.14-bioc/tmpdir/RtmpugMKVE/Rbuild2e30fa42e97/recount/vignettes using the following call to DESeq2Report():

    ## DESeq2Report(dds = dds, project = "SRP009615", intgroup = c("group",
    ##     "gene_target"), res = res, nBest = 10, nBestFeatures = 2,
    ##     outdir = ".", output = "SRP009615-results", device = "png",
    ##     template = "SRP009615-results-template.Rmd")

Date the report was generated.

    ## [1] "2021-11-23 15:49:51 EST"

Wallclock time spent generating the report.

    ## Time difference of 2.345 mins

`R` session information.

    ## - Session info  ------------------------------------------------------------------------------------------------------
    ##  hash: man mechanic: medium-light skin tone, round pushpin, customs
    ##
    ##  setting  value
    ##  version  R version 4.1.2 (2021-11-01)
    ##  os       Windows Server 2012 R2 x64 (build 9600)
    ##  system   x86_64, mingw32
    ##  ui       RTerm
    ##  language (EN)
    ##  collate  C
    ##  ctype    English_United States.1252
    ##  tz       America/New_York
    ##  date     2021-11-23
    ##  pandoc   2.7.3 @ C:/PROGRA~1/Pandoc/ (via rmarkdown)
    ##
    ## - Packages -----------------------------------------------------------------------------------------------------------
    ##  package              * version  date (UTC) lib source
    ##  annotate               1.72.0   2021-11-23 [2] Bioconductor
    ##  AnnotationDbi          1.56.2   2021-11-23 [2] Bioconductor
    ##  assertthat             0.2.1    2019-03-21 [2] CRAN (R 4.1.1)
    ##  backports              1.3.0    2021-10-27 [2] CRAN (R 4.1.1)
    ##  base64enc              0.1-3    2015-07-28 [2] CRAN (R 4.1.1)
    ##  Biobase              * 2.54.0   2021-11-23 [2] Bioconductor
    ##  BiocFileCache          2.2.0    2021-11-23 [2] Bioconductor
    ##  BiocGenerics         * 0.40.0   2021-11-23 [2] Bioconductor
    ##  BiocIO                 1.4.0    2021-11-23 [2] Bioconductor
    ##  BiocManager            1.30.16  2021-06-15 [2] CRAN (R 4.1.1)
    ##  BiocParallel           1.28.1   2021-11-23 [2] Bioconductor
    ##  BiocStyle            * 2.22.0   2021-11-23 [2] Bioconductor
    ##  biomaRt                2.50.1   2021-11-23 [2] Bioconductor
    ##  Biostrings             2.62.0   2021-11-23 [2] Bioconductor
    ##  bit                    4.0.4    2020-08-04 [2] CRAN (R 4.1.1)
    ##  bit64                  4.0.5    2020-08-30 [2] CRAN (R 4.1.1)
    ##  bitops                 1.0-7    2021-04-24 [2] CRAN (R 4.1.1)
    ##  blob                   1.2.2    2021-07-23 [2] CRAN (R 4.1.1)
    ##  bookdown               0.24     2021-09-02 [2] CRAN (R 4.1.1)
    ##  BSgenome               1.62.0   2021-11-23 [2] Bioconductor
    ##  bslib                  0.3.1    2021-10-06 [2] CRAN (R 4.1.1)
    ##  bumphunter             1.36.0   2021-11-23 [2] Bioconductor
    ##  cachem                 1.0.6    2021-08-19 [2] CRAN (R 4.1.1)
    ##  checkmate              2.0.0    2020-02-06 [2] CRAN (R 4.1.1)
    ##  cli                    3.1.0    2021-10-27 [2] CRAN (R 4.1.1)
    ##  cluster                2.1.2    2021-04-17 [2] CRAN (R 4.1.2)
    ##  codetools              0.2-18   2020-11-04 [2] CRAN (R 4.1.2)
    ##  colorspace             2.0-2    2021-06-24 [2] CRAN (R 4.1.1)
    ##  crayon                 1.4.2    2021-10-29 [2] CRAN (R 4.1.1)
    ##  crosstalk              1.2.0    2021-11-04 [2] CRAN (R 4.1.2)
    ##  curl                   4.3.2    2021-06-23 [2] CRAN (R 4.1.1)
    ##  data.table             1.14.2   2021-09-27 [2] CRAN (R 4.1.1)
    ##  DBI                    1.1.1    2021-01-15 [2] CRAN (R 4.1.1)
    ##  dbplyr                 2.1.1    2021-04-06 [2] CRAN (R 4.1.1)
    ##  DEFormats              1.22.0   2021-11-23 [2] Bioconductor
    ##  DelayedArray           0.20.0   2021-11-23 [2] Bioconductor
    ##  derfinder              1.28.0   2021-11-23 [2] Bioconductor
    ##  derfinderHelper        1.28.0   2021-11-23 [2] Bioconductor
    ##  DESeq2               * 1.34.0   2021-11-23 [2] Bioconductor
    ##  digest                 0.6.28   2021-09-23 [2] CRAN (R 4.1.1)
    ##  doRNG                  1.8.2    2020-01-27 [2] CRAN (R 4.1.1)
    ##  downloader             0.4      2015-07-09 [2] CRAN (R 4.1.1)
    ##  dplyr                  1.0.7    2021-06-18 [2] CRAN (R 4.1.1)
    ##  DT                   * 0.20     2021-11-15 [2] CRAN (R 4.1.2)
    ##  edgeR                * 3.36.0   2021-11-23 [2] Bioconductor
    ##  ellipsis               0.3.2    2021-04-29 [2] CRAN (R 4.1.1)
    ##  evaluate               0.14     2019-05-28 [2] CRAN (R 4.1.1)
    ##  fansi                  0.5.0    2021-05-25 [2] CRAN (R 4.1.1)
    ##  farver                 2.1.0    2021-02-28 [2] CRAN (R 4.1.1)
    ##  fastmap                1.1.0    2021-01-25 [2] CRAN (R 4.1.1)
    ##  filelock               1.0.2    2018-10-05 [2] CRAN (R 4.1.1)
    ##  foreach                1.5.1    2020-10-15 [2] CRAN (R 4.1.1)
    ##  foreign                0.8-81   2020-12-22 [2] CRAN (R 4.1.2)
    ##  Formula                1.2-4    2020-10-16 [2] CRAN (R 4.1.1)
    ##  genefilter             1.76.0   2021-11-23 [2] Bioconductor
    ##  geneplotter            1.72.0   2021-11-23 [2] Bioconductor
    ##  generics               0.1.1    2021-10-25 [2] CRAN (R 4.1.1)
    ##  GenomeInfoDb         * 1.30.0   2021-11-23 [2] Bioconductor
    ##  GenomeInfoDbData       1.2.7    2021-11-09 [2] Bioconductor
    ##  GenomicAlignments      1.30.0   2021-11-23 [2] Bioconductor
    ##  GenomicFeatures        1.46.1   2021-11-23 [2] Bioconductor
    ##  GenomicFiles           1.30.0   2021-11-23 [2] Bioconductor
    ##  GenomicRanges        * 1.46.1   2021-11-23 [2] Bioconductor
    ##  GEOquery               2.62.1   2021-11-23 [2] Bioconductor
    ##  ggplot2              * 3.3.5    2021-06-25 [2] CRAN (R 4.1.1)
    ##  glue                   1.5.0    2021-11-07 [2] CRAN (R 4.1.2)
    ##  gridExtra              2.3      2017-09-09 [2] CRAN (R 4.1.1)
    ##  gtable                 0.3.0    2019-03-25 [2] CRAN (R 4.1.1)
    ##  highr                  0.9      2021-04-16 [2] CRAN (R 4.1.1)
    ##  Hmisc                  4.6-0    2021-10-07 [2] CRAN (R 4.1.1)
    ##  hms                    1.1.1    2021-09-26 [2] CRAN (R 4.1.1)
    ##  htmlTable              2.3.0    2021-10-12 [2] CRAN (R 4.1.1)
    ##  htmltools              0.5.2    2021-08-25 [2] CRAN (R 4.1.1)
    ##  htmlwidgets            1.5.4    2021-09-08 [2] CRAN (R 4.1.1)
    ##  httr                   1.4.2    2020-07-20 [2] CRAN (R 4.1.1)
    ##  IRanges              * 2.28.0   2021-11-23 [2] Bioconductor
    ##  iterators              1.0.13   2020-10-15 [2] CRAN (R 4.1.1)
    ##  jpeg                   0.1-9    2021-07-24 [2] CRAN (R 4.1.1)
    ##  jquerylib              0.1.4    2021-04-26 [2] CRAN (R 4.1.1)
    ##  jsonlite               1.7.2    2020-12-09 [2] CRAN (R 4.1.1)
    ##  KEGGREST               1.34.0   2021-11-23 [2] Bioconductor
    ##  knitr                * 1.36     2021-09-29 [2] CRAN (R 4.1.1)
    ##  knitrBootstrap         1.0.2    2018-05-24 [2] CRAN (R 4.1.1)
    ##  labeling               0.4.2    2020-10-20 [2] CRAN (R 4.1.1)
    ##  lattice                0.20-45  2021-09-22 [2] CRAN (R 4.1.2)
    ##  latticeExtra           0.6-29   2019-12-19 [2] CRAN (R 4.1.1)
    ##  lifecycle              1.0.1    2021-09-24 [2] CRAN (R 4.1.1)
    ##  limma                * 3.50.0   2021-11-23 [2] Bioconductor
    ##  locfit                 1.5-9.4  2020-03-25 [2] CRAN (R 4.1.1)
    ##  lubridate              1.8.0    2021-10-07 [2] CRAN (R 4.1.1)
    ##  magick                 2.7.3    2021-08-18 [2] CRAN (R 4.1.1)
    ##  magrittr               2.0.1    2020-11-17 [2] CRAN (R 4.1.1)
    ##  markdown               1.1      2019-08-07 [2] CRAN (R 4.1.1)
    ##  Matrix                 1.3-4    2021-06-01 [2] CRAN (R 4.1.2)
    ##  MatrixGenerics       * 1.6.0    2021-11-23 [2] Bioconductor
    ##  matrixStats          * 0.61.0   2021-09-17 [2] CRAN (R 4.1.1)
    ##  memoise                2.0.0    2021-01-26 [2] CRAN (R 4.1.1)
    ##  munsell                0.5.0    2018-06-12 [2] CRAN (R 4.1.1)
    ##  nnet                   7.3-16   2021-05-03 [2] CRAN (R 4.1.2)
    ##  pheatmap             * 1.0.12   2019-01-04 [2] CRAN (R 4.1.1)
    ##  pillar                 1.6.4    2021-10-18 [2] CRAN (R 4.1.1)
    ##  pkgconfig              2.0.3    2019-09-22 [2] CRAN (R 4.1.1)
    ##  plyr                   1.8.6    2020-03-03 [2] CRAN (R 4.1.1)
    ##  png                    0.1-7    2013-12-03 [2] CRAN (R 4.1.1)
    ##  prettyunits            1.1.1    2020-01-24 [2] CRAN (R 4.1.1)
    ##  progress               1.2.2    2019-05-16 [2] CRAN (R 4.1.1)
    ##  purrr                  0.3.4    2020-04-17 [2] CRAN (R 4.1.1)
    ##  qvalue                 2.26.0   2021-11-23 [2] Bioconductor
    ##  R6                     2.5.1    2021-08-19 [2] CRAN (R 4.1.1)
    ##  rappdirs               0.3.3    2021-01-31 [2] CRAN (R 4.1.1)
    ##  RColorBrewer         * 1.1-2    2014-12-07 [2] CRAN (R 4.1.1)
    ##  Rcpp                   1.0.7    2021-07-07 [2] CRAN (R 4.1.1)
    ##  RCurl                  1.98-1.5 2021-09-17 [2] CRAN (R 4.1.1)
    ##  readr                  2.1.0    2021-11-11 [2] CRAN (R 4.1.2)
    ##  recount              * 1.20.0   2021-11-23 [1] Bioconductor
    ##  RefManageR           * 1.3.0    2020-11-13 [2] CRAN (R 4.1.1)
    ##  regionReport         * 1.28.1   2021-11-23 [2] Bioconductor
    ##  rentrez                1.2.3    2020-11-10 [2] CRAN (R 4.1.1)
    ##  reshape2               1.4.4    2020-04-09 [2] CRAN (R 4.1.1)
    ##  restfulr               0.0.13   2017-08-06 [2] CRAN (R 4.1.1)
    ##  rjson                  0.2.20   2018-06-08 [2] CRAN (R 4.1.1)
    ##  rlang                  0.4.12   2021-10-18 [2] CRAN (R 4.1.1)
    ##  rmarkdown              2.11     2021-09-14 [2] CRAN (R 4.1.1)
    ##  rngtools               1.5.2    2021-09-20 [2] CRAN (R 4.1.1)
    ##  rpart                  4.1-15   2019-04-12 [2] CRAN (R 4.1.2)
    ##  Rsamtools              2.10.0   2021-11-23 [2] Bioconductor
    ##  RSQLite                2.2.8    2021-08-21 [2] CRAN (R 4.1.1)
    ##  rstudioapi             0.13     2020-11-12 [2] CRAN (R 4.1.1)
    ##  rtracklayer            1.54.0   2021-11-23 [2] Bioconductor
    ##  S4Vectors            * 0.32.3   2021-11-23 [2] Bioconductor
    ##  sass                   0.4.0    2021-05-12 [2] CRAN (R 4.1.1)
    ##  scales                 1.1.1    2020-05-11 [2] CRAN (R 4.1.1)
    ##  sessioninfo          * 1.2.1    2021-11-02 [2] CRAN (R 4.1.2)
    ##  stringi                1.7.5    2021-10-04 [2] CRAN (R 4.1.1)
    ##  stringr                1.4.0    2019-02-10 [2] CRAN (R 4.1.1)
    ##  SummarizedExperiment * 1.24.0   2021-11-23 [2] Bioconductor
    ##  survival               3.2-13   2021-08-24 [2] CRAN (R 4.1.2)
    ##  tibble                 3.1.6    2021-11-07 [2] CRAN (R 4.1.2)
    ##  tidyr                  1.1.4    2021-09-27 [2] CRAN (R 4.1.1)
    ##  tidyselect             1.1.1    2021-04-30 [2] CRAN (R 4.1.1)
    ##  tzdb                   0.2.0    2021-10-27 [2] CRAN (R 4.1.1)
    ##  utf8                   1.2.2    2021-07-24 [2] CRAN (R 4.1.1)
    ##  VariantAnnotation      1.40.0   2021-11-23 [2] Bioconductor
    ##  vctrs                  0.3.8    2021-04-29 [2] CRAN (R 4.1.1)
    ##  withr                  2.4.2    2021-04-18 [2] CRAN (R 4.1.1)
    ##  xfun                   0.28     2021-11-04 [2] CRAN (R 4.1.2)
    ##  XML                    3.99-0.8 2021-09-17 [2] CRAN (R 4.1.1)
    ##  xml2                   1.3.2    2020-04-23 [2] CRAN (R 4.1.1)
    ##  xtable                 1.8-4    2019-04-21 [2] CRAN (R 4.1.1)
    ##  XVector                0.34.0   2021-11-23 [2] Bioconductor
    ##  yaml                   2.2.1    2020-02-01 [2] CRAN (R 4.1.1)
    ##  zlibbioc               1.40.0   2021-11-23 [2] Bioconductor
    ##
    ##  [1] C:/Users/biocbuild/bbs-3.14-bioc/tmpdir/RtmpugMKVE/Rinst2e30382a2dfc
    ##  [2] C:/Users/biocbuild/bbs-3.14-bioc/R/library
    ##
    ## ----------------------------------------------------------------------------------------------------------------------

Pandoc version used: 2.7.3.

# 11 Bibliography

This report was created with `regionReport` (Collado-Torres, Jaffe, and Leek, 2016) using `rmarkdown` (Allaire, Xie, McPherson, Luraschi, Ushey, Atkins, Wickham, Cheng, Chang, and Iannone, 2021) while `knitr` (Xie, 2014) and `DT` (Xie, Cheng, and Tan, 2021) were running behind the scenes. `pheatmap` (Kolde, 2019) was used to create the sample distances heatmap. Several plots were made with `ggplot2` (Wickham, 2016).

Citations made with RefManageR (McLean, 2017). The BibTeX file can be found here.

[1] J. Allaire, Y. Xie, J. McPherson, et al. rmarkdown: Dynamic Documents for R. R package version 2.11. 2021. URL: https://github.com/rstudio/rmarkdown.

[2] L. Collado-Torres, A. E. Jaffe, and J. T. Leek. “regionReport: Interactive reports for region-level and feature-level genomic analyses [version2; referees: 2 approved, 1 approved with reservations]”. In: F1000Research 4 (2016), p. 105. DOI: 10.12688/f1000research.6379.2. URL: http://f1000research.com/articles/4-105/v2.

[3] R. Kolde. pheatmap: Pretty Heatmaps. R package version 1.0.12. 2019. URL: https://CRAN.R-project.org/package=pheatmap.

[4] M. I. Love, W. Huber, and S. Anders. “Moderated estimation of fold change and dispersion for RNA-seq data with DESeq2”. In: Genome Biology 15 (12 2014), p. 550. DOI: 10.1186/s13059-014-0550-8.

[5] M. W. McLean. “RefManageR: Import and Manage BibTeX and BibLaTeX References in R”. In: The Journal of Open Source Software (2017). DOI: 10.21105/joss.00338.

[6] H. Wickham. ggplot2: Elegant Graphics for Data Analysis. Springer-Verlag New York, 2016. ISBN: 978-3-319-24277-4. URL: https://ggplot2.tidyverse.org.

[7] Y. Xie. “knitr: A Comprehensive Tool for Reproducible Research in R”. In: Implementing Reproducible Computational Research. Ed. by V. Stodden, F. Leisch and R. D. Peng. ISBN 978-1466561595. Chapman and Hall/CRC, 2014. URL: http://www.crcpress.com/product/isbn/9781466561595.

[8] Y. Xie, J. Cheng, and X. Tan. DT: A Wrapper of the JavaScript Library ‘DataTables’. R package version 0.20. 2021. URL: https://CRAN.R-project.org/package=DT.