Contents

1 Basics

1.1 Install GenomicState

R is an open-source statistical environment which can be easily modified to enhance its functionality via packages. GenomicState is a R package available via Bioconductor. R can be installed on any operating system from CRAN after which you can install GenomicState by using the following commands in your R session:

if (!requireNamespace("BiocManager", quietly = TRUE)) {
      install.packages("BiocManager")
  }

BiocManager::install("GenomicState")

## Check that you have a valid Bioconductor installation
BiocManager::valid()

1.2 Required knowledge

GenomicState is based on many other packages and in particular in those that have implemented the infrastructure needed for dealing with annotation data. That is, packages like rtracklayer that allow you to import the data. A GenomicState user is not expected to deal with those packages directly but will need to be familiar with derfinder and derfinderPlot to understand the results GenomicState generates. Furthermore, it’ll be useful for the user to know the syntax of AnnotationHub (Morgan and Shepherd, 2021) in order to query and load the data provided by this package.

If you are asking yourself the question “Where do I start using Bioconductor?” you might be interested in this blog post.

1.3 Asking for help

As package developers, we try to explain clearly how to use our packages and in which order to use the functions. But R and Bioconductor have a steep learning curve so it is critical to learn where to ask for help. The blog post quoted above mentions some but we would like to highlight the Bioconductor support site as the main resource for getting help regarding Bioconductor. Other alternatives are available such as creating GitHub issues and tweeting. However, please note that if you want to receive help you should adhere to the posting guidelines. It is particularly critical that you provide a small reproducible example and your session information so package developers can track down the source of the error.

1.4 Citing GenomicState

We hope that GenomicState will be useful for your research. Please use the following information to cite the package and the overall approach. Thank you!

## Citation info
citation("GenomicState")
#> 
#> Collado-Torres L (2021). _Build and access GenomicState objects for use
#> with derfinder tools from sources like Gencode_. doi:
#> 10.18129/B9.bioc.GenomicState (URL:
#> https://doi.org/10.18129/B9.bioc.GenomicState),
#> https://github.com/LieberInstitute/GenomicState - R package version
#> 0.99.15, <URL: http://www.bioconductor.org/packages/GenomicState>.
#> 
#> A BibTeX entry for LaTeX users is
#> 
#>   @Manual{,
#>     title = {Build and access GenomicState objects for use with derfinder tools from sources like Gencode},
#>     author = {Leonardo Collado-Torres},
#>     year = {2021},
#>     url = {http://www.bioconductor.org/packages/GenomicState},
#>     note = {https://github.com/LieberInstitute/GenomicState - R package version 0.99.15},
#>     doi = {10.18129/B9.bioc.GenomicState},
#>   }

2 Overview

The GenomicState package was developed for speeding up analyses that require these objects and in particular those that rely on Gencode annotation data. The package GenomicState provides functions for building GenomicState objects from diverse annotation sources such as Gencode. It also provides a way to load pre-computed GenomicState objects if you are working at JHPCE. These GenomicState objects are normally created using derfinder::makeGenomicState() and can be used for annotating regions with derfinder::annotateRegions() which are in turn used by derfinderPlot::plotRegionCoverage().

To get started, load the GenomicState package.

library("GenomicState")

3 AnnotationHub

Using the GencodeStateHub() function you can query and download the data from GenomicState using AnnotationHub (Morgan and Shepherd, 2021).

## Query AnnotationHub for the GenomicState object for Gencode v31 on
## hg19 coordinates
hub_query_gs_gencode_v31_hg19 <- GenomicStateHub(
    version = "31",
    genome = "hg19",
    filetype = "GenomicState"
)
#> snapshotDate(): 2021-10-08
hub_query_gs_gencode_v31_hg19
#> AnnotationHub with 1 record
#> # snapshotDate(): 2021-10-08
#> # names(): AH75184
#> # $dataprovider: GENCODE
#> # $species: Homo sapiens
#> # $rdataclass: list
#> # $rdatadateadded: 2019-10-22
#> # $title: GenomicState for Gencode v31 on hg19 coordinates
#> # $description: Gencode v31 GenomicState from derfinder::makeGenomicState() ...
#> # $taxonomyid: 9606
#> # $genome: GRCh37
#> # $sourcetype: GTF
#> # $sourceurl: ftp://ftp.ebi.ac.uk/pub/databases/gencode/Gencode_human/releas...
#> # $sourcesize: NA
#> # $tags: c("Gencode", "GenomicState", "hg19", "v31") 
#> # retrieve record with 'object[["AH75184"]]'


## Check the metadata
mcols(hub_query_gs_gencode_v31_hg19)
#> DataFrame with 1 row and 15 columns
#>                          title dataprovider      species taxonomyid      genome
#>                    <character>  <character>  <character>  <integer> <character>
#> AH75184 GenomicState for Gen..      GENCODE Homo sapiens       9606      GRCh37
#>                    description coordinate_1_based             maintainer
#>                    <character>          <integer>            <character>
#> AH75184 Gencode v31 GenomicS..                  1 Leonardo Collado-Tor..
#>         rdatadateadded preparerclass                          tags  rdataclass
#>            <character>   <character>                        <list> <character>
#> AH75184     2019-10-22  GenomicState Gencode,GenomicState,hg19,...        list
#>                      rdatapath              sourceurl  sourcetype
#>                    <character>            <character> <character>
#> AH75184 GenomicState/gencode.. ftp://ftp.ebi.ac.uk/..         GTF

## Access the file through AnnotationHub
if (length(hub_query_gs_gencode_v31_hg19) == 1) {
    hub_gs_gencode_v31_hg19 <- hub_query_gs_gencode_v31_hg19[[1]]

    hub_gs_gencode_v31_hg19
}
#> loading from cache
#> $fullGenome
#> Loading required package: GenomicRanges
#> Loading required package: stats4
#> Loading required package: S4Vectors
#> 
#> Attaching package: 'S4Vectors'
#> The following objects are masked from 'package:base':
#> 
#>     I, expand.grid, unname
#> Loading required package: IRanges
#> Loading required package: GenomeInfoDb
#> GRanges object with 659263 ranges and 5 metadata columns:
#>          seqnames            ranges strand |   theRegion         tx_id
#>             <Rle>         <IRanges>  <Rle> | <character> <IntegerList>
#>        1     chr1       11869-12227      + |        exon           1,2
#>        2     chr1       12228-12612      + |      intron           1,2
#>        3     chr1       12613-12721      + |        exon           1,2
#>        4     chr1       12722-12974      + |      intron           1,2
#>        5     chr1       12975-13052      + |        exon             2
#>      ...      ...               ...    ... .         ...           ...
#>   659259     chrY 59208555-59214013      * |  intergenic              
#>   659260     chrY 59276440-59311662      * |  intergenic              
#>   659261     chrY 59311997-59318040      * |  intergenic              
#>   659262     chrY 59318921-59330251      * |  intergenic              
#>   659263     chrY 59360549-59373566      * |  intergenic              
#>                                          tx_name          gene          symbol
#>                                  <CharacterList> <IntegerList> <CharacterList>
#>        1 ENST00000450305.2_1,ENST00000456328.2_1         26085         DDX11L1
#>        2 ENST00000450305.2_1,ENST00000456328.2_1         26085         DDX11L1
#>        3 ENST00000450305.2_1,ENST00000456328.2_1         26085         DDX11L1
#>        4 ENST00000450305.2_1,ENST00000456328.2_1         26085         DDX11L1
#>        5                     ENST00000450305.2_1         26085         DDX11L1
#>      ...                                     ...           ...             ...
#>   659259                                                                      
#>   659260                                                                      
#>   659261                                                                      
#>   659262                                                                      
#>   659263                                                                      
#>   -------
#>   seqinfo: 24 sequences from hg19 genome
#> 
#> $codingGenome
#> GRanges object with 878954 ranges and 5 metadata columns:
#>          seqnames            ranges strand |   theRegion         tx_id
#>             <Rle>         <IRanges>  <Rle> | <character> <IntegerList>
#>        1     chr1        9869-11868      + |    promoter           1,2
#>        2     chr1       11869-12227      + |        exon           1,2
#>        3     chr1       12228-12612      + |      intron           1,2
#>        4     chr1       12613-12721      + |        exon           1,2
#>        5     chr1       12722-12974      + |      intron           1,2
#>      ...      ...               ...    ... .         ...           ...
#>   878950     chrY 59208555-59212013      * |  intergenic              
#>   878951     chrY 59276440-59311662      * |  intergenic              
#>   878952     chrY 59313997-59318040      * |  intergenic              
#>   878953     chrY 59320921-59328251      * |  intergenic              
#>   878954     chrY 59362549-59373566      * |  intergenic              
#>                                          tx_name          gene          symbol
#>                                  <CharacterList> <IntegerList> <CharacterList>
#>        1 ENST00000450305.2_1,ENST00000456328.2_1         26085         DDX11L1
#>        2 ENST00000450305.2_1,ENST00000456328.2_1         26085         DDX11L1
#>        3 ENST00000450305.2_1,ENST00000456328.2_1         26085         DDX11L1
#>        4 ENST00000450305.2_1,ENST00000456328.2_1         26085         DDX11L1
#>        5 ENST00000450305.2_1,ENST00000456328.2_1         26085         DDX11L1
#>      ...                                     ...           ...             ...
#>   878950                                                                      
#>   878951                                                                      
#>   878952                                                                      
#>   878953                                                                      
#>   878954                                                                      
#>   -------
#>   seqinfo: 24 sequences from hg19 genome

4 Using the objects

To show how we can use these objects, first we build those for Gencode version 31 on hg19 coordinates.

## Load the example TxDb object
## or start from scratch with:
## txdb_v31_hg19_chr21 <- gencode_txdb(version = '31', genome = 'hg19',
##     chrs = 'chr21')
txdb_v31_hg19_chr21 <- AnnotationDbi::loadDb(
    system.file("extdata", "txdb_v31_hg19_chr21.sqlite",
        package = "GenomicState"
    )
)
#> Loading required package: GenomicFeatures
#> Loading required package: AnnotationDbi
#> Loading required package: Biobase
#> Welcome to Bioconductor
#> 
#>     Vignettes contain introductory material; view with
#>     'browseVignettes()'. To cite Bioconductor, see
#>     'citation("Biobase")', and for packages 'citation("pkgname")'.
#> 
#> Attaching package: 'Biobase'
#> The following object is masked from 'package:AnnotationHub':
#> 
#>     cache

## Build the GenomicState and annotated genes
genes_v31_hg19_chr21 <- gencode_annotated_genes(txdb_v31_hg19_chr21)
#> 2021-10-13 04:04:31 annotating the transcripts
#> No annotationPackage supplied. Trying org.Hs.eg.db.
#> Loading required package: org.Hs.eg.db
#> 
#> Getting TSS and TSE.
#> Getting CSS and CSE.
#> Getting exons.
#> Annotating genes.
#> 'select()' returned 1:many mapping between keys and columns
gs_v31_hg19_chr21 <- gencode_genomic_state(txdb_v31_hg19_chr21)
#> 2021-10-13 04:04:42 making the GenomicState object
#> extendedMapSeqlevels: sequence names mapped from NCBI to UCSC for species homo_sapiens
#> 'select()' returned 1:1 mapping between keys and columns
#> 2021-10-13 04:04:49 finding gene symbols
#> 'select()' returned 1:many mapping between keys and columns
#> 2021-10-13 04:04:49 adding gene symbols to the GenomicState

You can alternatively use the files hosted in AnnotationHub (Morgan and Shepherd, 2021) which will be faster in general.

## Create the AnnotationHub object once and re-use it to speed up things
ah <- AnnotationHub::AnnotationHub()
#> snapshotDate(): 2021-10-08

## Find the TxDb object for hg19 Gencode version 31
hub_query_txdb_gencode_v31_hg19 <- GenomicStateHub(
    version = "31",
    genome = "hg19",
    filetype = "TxDb", ah = ah
)
hub_query_txdb_gencode_v31_hg19
#> AnnotationHub with 1 record
#> # snapshotDate(): 2021-10-08
#> # names(): AH75182
#> # $dataprovider: GENCODE
#> # $species: Homo sapiens
#> # $rdataclass: TxDb
#> # $rdatadateadded: 2019-10-22
#> # $title: TxDb for Gencode v31 on hg19 coordinates
#> # $description: Gencode v31 TxDb object on hg19 coordinates. This is useful ...
#> # $taxonomyid: 9606
#> # $genome: GRCh37
#> # $sourcetype: GTF
#> # $sourceurl: ftp://ftp.ebi.ac.uk/pub/databases/gencode/Gencode_human/releas...
#> # $sourcesize: NA
#> # $tags: c("Gencode", "GenomicState", "hg19", "v31") 
#> # retrieve record with 'object[["AH75182"]]'

## Now the Annotated Genes for hg19 Gencode v31
hub_query_genes_gencode_v31_hg19 <- GenomicStateHub(
    version = "31",
    genome = "hg19",
    filetype = "AnnotatedGenes", ah = ah
)
hub_query_genes_gencode_v31_hg19
#> AnnotationHub with 1 record
#> # snapshotDate(): 2021-10-08
#> # names(): AH75183
#> # $dataprovider: GENCODE
#> # $species: Homo sapiens
#> # $rdataclass: GRanges
#> # $rdatadateadded: 2019-10-22
#> # $title: Annotated genes for Gencode v31 on hg19 coordinates
#> # $description: Gencode v31 annotated genes from bumphunter::annotateTranscr...
#> # $taxonomyid: 9606
#> # $genome: GRCh37
#> # $sourcetype: GTF
#> # $sourceurl: ftp://ftp.ebi.ac.uk/pub/databases/gencode/Gencode_human/releas...
#> # $sourcesize: NA
#> # $tags: c("Gencode", "GenomicState", "hg19", "v31") 
#> # retrieve record with 'object[["AH75183"]]'

## And finally the GenomicState for hg19 Gencode v31
hub_query_gs_gencode_v31_hg19 <- GenomicStateHub(
    version = "31",
    genome = "hg19",
    filetype = "GenomicState", ah = ah
)
hub_query_gs_gencode_v31_hg19
#> AnnotationHub with 1 record
#> # snapshotDate(): 2021-10-08
#> # names(): AH75184
#> # $dataprovider: GENCODE
#> # $species: Homo sapiens
#> # $rdataclass: list
#> # $rdatadateadded: 2019-10-22
#> # $title: GenomicState for Gencode v31 on hg19 coordinates
#> # $description: Gencode v31 GenomicState from derfinder::makeGenomicState() ...
#> # $taxonomyid: 9606
#> # $genome: GRCh37
#> # $sourcetype: GTF
#> # $sourceurl: ftp://ftp.ebi.ac.uk/pub/databases/gencode/Gencode_human/releas...
#> # $sourcesize: NA
#> # $tags: c("Gencode", "GenomicState", "hg19", "v31") 
#> # retrieve record with 'object[["AH75184"]]'

## If you want to access the files use the double bracket AnnotationHub syntax
## to retrieve the R objects from the web.
if (FALSE) {
    hub_txdb_gencode_v31_hg19 <- hub_query_txdb_gencode_v31_hg19[[1]]
    hub_genes_gencode_v31_hg19 <- hub_query_genes_gencode_v31_hg19[[1]]
    hub_gs_gencode_v31_hg19 <- hub_query_gs_gencode_v31_hg19[[1]]
}

Next we load a series of related packages that use the objects we created with GenomicState or downloaded from AnnotationHub (Morgan and Shepherd, 2021).

## Load external packages
library("derfinder")
library("derfinderPlot")
#> Registered S3 method overwritten by 'GGally':
#>   method from   
#>   +.gg   ggplot2
library("bumphunter")
#> Loading required package: foreach
#> Loading required package: iterators
#> Loading required package: parallel
#> Loading required package: locfit
#> locfit 1.5-9.4    2020-03-24
library("GenomicRanges")

Next we can prepare the needed for running derfinderPlot::plotRegionCoverage() where we use the TxDb object, the GenomicState and the annotated genes we prepared for Gencode v31 on hg19.

## Some example regions from derfinder (set the chromosome lengths)
regions <- genomeRegions$regions[1:2]
seqlengths(regions) <- seqlengths(txdb_v31_hg19_chr21)[
    names(seqlengths(regions))
]

## Annotate them
nearestAnnotation <- matchGenes(x = regions, subject = genes_v31_hg19_chr21)
annotatedRegions <- annotateRegions(
    regions = regions,
    genomicState = gs_v31_hg19_chr21$fullGenome, minoverlap = 1
)
#> 2021-10-13 04:05:00 annotateRegions: counting
#> 2021-10-13 04:05:00 annotateRegions: annotating

## Obtain fullCov object
fullCov <- list("chr21" = genomeDataRaw$coverage)
regionCov <- getRegionCoverage(fullCov = fullCov, regions = regions)
#> 2021-10-13 04:05:00 getRegionCoverage: processing chr21
#> 2021-10-13 04:05:00 getRegionCoverage: done processing chr21

And now we can make the example plot as shown below.

## now make the plot
plotRegionCoverage(
    regions = regions, regionCoverage = regionCov,
    groupInfo = genomeInfo$pop, nearestAnnotation = nearestAnnotation,
    annotatedRegions = annotatedRegions, whichRegions = 1:2,
    txdb = txdb_v31_hg19_chr21, verbose = FALSE
)

5 JHPCE

You can also access the data locally using the function local_metadata() which works at JHPCE or anywhere where you have re-created the files from this package. This returns a data.frame() which you can subset. It also inclused the R code for loading the data which you can do using eval(parse(text = local_metadata()$loadCode)) as shown below.

## Get the local metadata
meta <- local_metadata()

## Subset to the data of interest, lets say hg19 TxDb for v31
interest <- subset(meta, RDataClass == "TxDb" & Tags == "Gencode:v31:hg19")

## Next you can load the data
if (file.exists(interest$RDataPath)) {
    ## This only works at JHPCE
    eval(parse(text = interest$loadCode))

    ## Explore the loaded object (would be gencode_v31_hg19_txdb in this case)
    gencode_v31_hg19_txdb
}

6 Build objects

The objects provided by GenomicState through AnnotationHub (Morgan and Shepherd, 2021) were built using code like the one included below which is how the Gencode version 23 for hg19 files were built.

outdir <- "gencode"
dir.create(outdir, showWarnings = FALSE)

## Build and save the TxDb object
gencode_v23_hg19_txdb <- gencode_txdb("23", "hg19")
saveDb(gencode_v23_hg19_txdb,
    file = file.path(outdir, "gencode_v23_hg19_txdb.sqlite")
)

## Build and save the annotateTranscripts output
gencode_v23_hg19_annotated_genes <- gencode_annotated_genes(
    gencode_v23_hg19_txdb
)
save(gencode_v23_hg19_annotated_genes,
    file = file.path(outdir, "gencode_v23_hg19_annotated_genes.rda")
)

## Build and save the GenomicState
gencode_v23_hg19_GenomicState <- gencode_genomic_state(
    gencode_v23_hg19_txdb
)
save(gencode_v23_hg19_GenomicState,
    file = file.path(outdir, "gencode_v23_hg19_GenomicState.rda")
)

For more details check the source files:

## R commands for building the files:
system.file("scripts", "make-data_gencode_human.R",
    package = "GenomicState"
)
#> [1] "/tmp/Rtmpa4fspy/Rinst36d68b16b4112b/GenomicState/scripts/make-data_gencode_human.R"
## The above file was created by this one:
system.file("scripts", "generate_make_data_gencode_human.R",
    package = "GenomicState"
)
#> [1] "/tmp/Rtmpa4fspy/Rinst36d68b16b4112b/GenomicState/scripts/generate_make_data_gencode_human.R"

7 Reproducibility

The GenomicState package (Collado-Torres, 2021) was made possible thanks to:

Code for creating the vignette

## Create the vignette
library("rmarkdown")
system.time(render("GenomicState.Rmd"))

## Extract the R code
library("knitr")
knit("GenomicState.Rmd", tangle = TRUE)

Date the vignette was generated.

#> [1] "2021-10-13 04:05:01 EDT"

Wallclock time spent generating the vignette.

#> Time difference of 50.695 secs

R session information.

#> ─ Session info ───────────────────────────────────────────────────────────────────────────────────────────────────────
#>  setting  value                       
#>  version  R version 4.1.1 (2021-08-10)
#>  os       Ubuntu 20.04.3 LTS          
#>  system   x86_64, linux-gnu           
#>  ui       X11                         
#>  language (EN)                        
#>  collate  C                           
#>  ctype    en_US.UTF-8                 
#>  tz       America/New_York            
#>  date     2021-10-13                  
#> 
#> ─ Packages ───────────────────────────────────────────────────────────────────────────────────────────────────────────
#>  package                * version  date       lib source        
#>  AnnotationDbi          * 1.55.1   2021-10-12 [2] Bioconductor  
#>  AnnotationFilter         1.17.1   2021-10-12 [2] Bioconductor  
#>  AnnotationHub          * 3.1.5    2021-10-12 [2] Bioconductor  
#>  assertthat               0.2.1    2019-03-21 [2] CRAN (R 4.1.1)
#>  backports                1.2.1    2020-12-09 [2] CRAN (R 4.1.1)
#>  base64enc                0.1-3    2015-07-28 [2] CRAN (R 4.1.1)
#>  Biobase                * 2.53.0   2021-10-12 [2] Bioconductor  
#>  BiocFileCache          * 2.1.1    2021-10-12 [2] Bioconductor  
#>  BiocGenerics           * 0.39.2   2021-10-12 [2] Bioconductor  
#>  BiocIO                   1.3.0    2021-10-12 [2] Bioconductor  
#>  BiocManager              1.30.16  2021-06-15 [2] CRAN (R 4.1.1)
#>  BiocParallel             1.27.17  2021-10-12 [2] Bioconductor  
#>  BiocStyle              * 2.21.4   2021-10-12 [2] Bioconductor  
#>  BiocVersion              3.14.0   2021-10-12 [2] Bioconductor  
#>  biomaRt                  2.49.4   2021-10-12 [2] Bioconductor  
#>  Biostrings               2.61.2   2021-10-12 [2] Bioconductor  
#>  biovizBase               1.41.0   2021-10-12 [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.61.0   2021-10-12 [2] Bioconductor  
#>  bslib                    0.3.1    2021-10-06 [2] CRAN (R 4.1.1)
#>  bumphunter             * 1.35.0   2021-10-12 [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.0.1    2021-07-17 [2] CRAN (R 4.1.1)
#>  cluster                  2.1.2    2021-04-17 [2] CRAN (R 4.1.1)
#>  codetools                0.2-18   2020-11-04 [2] CRAN (R 4.1.1)
#>  colorspace               2.0-2    2021-06-24 [2] CRAN (R 4.1.1)
#>  crayon                   1.4.1    2021-02-08 [2] CRAN (R 4.1.1)
#>  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)
#>  DelayedArray             0.19.4   2021-10-12 [2] Bioconductor  
#>  derfinder              * 1.27.3   2021-10-12 [2] Bioconductor  
#>  derfinderHelper          1.27.1   2021-10-12 [2] Bioconductor  
#>  derfinderPlot          * 1.27.1   2021-10-12 [2] Bioconductor  
#>  dichromat                2.0-0    2013-01-24 [2] CRAN (R 4.1.1)
#>  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)
#>  dplyr                    1.0.7    2021-06-18 [2] CRAN (R 4.1.1)
#>  ellipsis                 0.3.2    2021-04-29 [2] CRAN (R 4.1.1)
#>  ensembldb                2.17.4   2021-10-12 [2] Bioconductor  
#>  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)
#>  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.1)
#>  Formula                  1.2-4    2020-10-16 [2] CRAN (R 4.1.1)
#>  generics                 0.1.0    2020-10-31 [2] CRAN (R 4.1.1)
#>  GenomeInfoDb           * 1.29.8   2021-10-12 [2] Bioconductor  
#>  GenomeInfoDbData         1.2.7    2021-09-23 [2] Bioconductor  
#>  GenomicAlignments        1.29.0   2021-10-12 [2] Bioconductor  
#>  GenomicFeatures        * 1.45.2   2021-10-12 [2] Bioconductor  
#>  GenomicFiles             1.29.0   2021-10-12 [2] Bioconductor  
#>  GenomicRanges          * 1.45.0   2021-10-12 [2] Bioconductor  
#>  GenomicState           * 0.99.15  2021-10-13 [1] Bioconductor  
#>  GGally                   2.1.2    2021-06-21 [2] CRAN (R 4.1.1)
#>  ggbio                    1.41.0   2021-10-12 [2] Bioconductor  
#>  ggplot2                  3.3.5    2021-06-25 [2] CRAN (R 4.1.1)
#>  glue                     1.4.2    2020-08-27 [2] CRAN (R 4.1.1)
#>  graph                    1.71.2   2021-10-12 [2] Bioconductor  
#>  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)
#>  httpuv                   1.6.3    2021-09-09 [2] CRAN (R 4.1.1)
#>  httr                     1.4.2    2020-07-20 [2] CRAN (R 4.1.1)
#>  interactiveDisplayBase   1.31.2   2021-10-12 [2] Bioconductor  
#>  IRanges                * 2.27.2   2021-10-12 [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.33.0   2021-10-12 [2] Bioconductor  
#>  knitr                    1.36     2021-09-29 [2] CRAN (R 4.1.1)
#>  later                    1.3.0    2021-08-18 [2] CRAN (R 4.1.1)
#>  lattice                  0.20-45  2021-09-22 [2] CRAN (R 4.1.1)
#>  latticeExtra             0.6-29   2019-12-19 [2] CRAN (R 4.1.1)
#>  lazyeval                 0.2.2    2019-03-15 [2] CRAN (R 4.1.1)
#>  lifecycle                1.0.1    2021-09-24 [2] CRAN (R 4.1.1)
#>  limma                    3.49.4   2021-10-12 [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)
#>  Matrix                   1.3-4    2021-06-01 [2] CRAN (R 4.1.1)
#>  MatrixGenerics           1.5.4    2021-10-12 [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)
#>  mime                     0.12     2021-09-28 [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.1)
#>  org.Hs.eg.db           * 3.14.0   2021-09-23 [2] Bioconductor  
#>  OrganismDbi              1.35.0   2021-10-12 [2] Bioconductor  
#>  pillar                   1.6.3    2021-09-26 [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)
#>  promises                 1.2.0.1  2021-02-11 [2] CRAN (R 4.1.1)
#>  ProtGenerics             1.25.1   2021-10-12 [2] Bioconductor  
#>  purrr                    0.3.4    2020-04-17 [2] CRAN (R 4.1.1)
#>  qvalue                   2.25.0   2021-10-12 [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)
#>  RBGL                     1.69.0   2021-10-12 [2] Bioconductor  
#>  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)
#>  RefManageR             * 1.3.0    2020-11-13 [2] CRAN (R 4.1.1)
#>  reshape                  0.8.8    2018-10-23 [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.11   2021-04-30 [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.1)
#>  Rsamtools                2.9.1    2021-10-12 [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.53.1   2021-10-12 [2] Bioconductor  
#>  S4Vectors              * 0.31.5   2021-10-12 [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.1.1    2018-11-05 [2] CRAN (R 4.1.1)
#>  shiny                    1.7.1    2021-10-02 [2] CRAN (R 4.1.1)
#>  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.23.5   2021-10-12 [2] Bioconductor  
#>  survival                 3.2-13   2021-08-24 [2] CRAN (R 4.1.1)
#>  tibble                   3.1.5    2021-09-30 [2] CRAN (R 4.1.1)
#>  tidyselect               1.1.1    2021-04-30 [2] CRAN (R 4.1.1)
#>  utf8                     1.2.2    2021-07-24 [2] CRAN (R 4.1.1)
#>  VariantAnnotation        1.39.0   2021-10-12 [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.26     2021-09-14 [2] CRAN (R 4.1.1)
#>  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.33.0   2021-10-12 [2] Bioconductor  
#>  yaml                     2.2.1    2020-02-01 [2] CRAN (R 4.1.1)
#>  zlibbioc                 1.39.0   2021-10-12 [2] Bioconductor  
#> 
#> [1] /tmp/Rtmpa4fspy/Rinst36d68b16b4112b
#> [2] /home/biocbuild/bbs-3.14-bioc/R/library

8 Bibliography

This vignette was generated using BiocStyle (Oleś, 2021), knitr (Xie, 2014) and rmarkdown (Allaire, Xie, McPherson, et al., 2021) running behind the scenes.

Citations made with RefManageR (McLean, 2017).

[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] S. Arora, M. Morgan, M. Carlson, et al. GenomeInfoDb: Utilities for manipulating chromosome and other ‘seqname’ identifiers. 2017. DOI: 10.18129/B9.bioc.GenomeInfoDb.

[3] Bioconductor Package Maintainer. AnnotationHubData: Transform public data resources into Bioconductor Data Structures. R package version 1.23.2. 2021.

[4] M. Carlson. org.Hs.eg.db: Genome wide annotation for Human. R package version 3.14.0. 2021.

[5] L. Collado-Torres. Build and access GenomicState objects for use with derfinder tools from sources like Gencode. https://github.com/LieberInstitute/GenomicState - R package version 0.99.15. 2021. DOI: 10.18129/B9.bioc.GenomicState. URL: http://www.bioconductor.org/packages/GenomicState.

[6] L. Collado-Torres, A. Nellore, A. C. Frazee, et al. “Flexible expressed region analysis for RNA-seq with derfinder”. In: Nucl. Acids Res. (2017). DOI: 10.1093/nar/gkw852. URL: http://nar.oxfordjournals.org/content/early/2016/09/29/nar.gkw852.

[7] G. Csárdi, R. core, H. Wickham, et al. sessioninfo: R Session Information. R package version 1.1.1. 2018. URL: https://CRAN.R-project.org/package=sessioninfo.

[8] J. Hester. glue: Interpreted String Literals. R package version 1.4.2. 2020. URL: https://CRAN.R-project.org/package=glue.

[9] A. E. Jaffe, P. Murakami, H. Lee, et al. “Bump hunting to identify differentially methylated regions in epigenetic epidemiology studies”. In: International journal of epidemiology 41.1 (2012), pp. 200–209. DOI: 10.1093/ije/dyr238.

[10] M. Lawrence, R. Gentleman, and V. Carey. “rtracklayer: an R package for interfacing with genome browsers”. In: Bioinformatics 25 (2009), pp. 1841-1842. DOI: 10.1093/bioinformatics/btp328. URL: http://bioinformatics.oxfordjournals.org/content/25/14/1841.abstract.

[11] M. Lawrence, W. Huber, H. Pagès, et al. “Software for Computing and Annotating Genomic Ranges”. In: PLoS Computational Biology 9 (8 2013). DOI: 10.1371/journal.pcbi.1003118. URL: http://www.ploscompbiol.org/article/info%3Adoi%2F10.1371%2Fjournal.pcbi.1003118}.

[12] 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.

[13] M. Morgan and L. Shepherd. AnnotationHub: Client to access AnnotationHub resources. R package version 3.1.5. 2021.

[14] A. Oleś. BiocStyle: Standard styles for vignettes and other Bioconductor documents. R package version 2.21.4. 2021. URL: https://github.com/Bioconductor/BiocStyle.

[15] H. Pagès, M. Carlson, S. Falcon, et al. AnnotationDbi: Manipulation of SQLite-based annotations in Bioconductor. R package version 1.55.1. 2021. URL: https://bioconductor.org/packages/AnnotationDbi.

[16] R Core Team. R: A Language and Environment for Statistical Computing. R Foundation for Statistical Computing. Vienna, Austria, 2021. URL: https://www.R-project.org/.

[17] H. Wickham. “testthat: Get Started with Testing”. In: The R Journal 3 (2011), pp. 5–10. URL: https://journal.r-project.org/archive/2011-1/RJournal_2011-1_Wickham.pdf.

[18] 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.