Abstract
Intron Retention (IR) is a form of alternative splicing whereby the intron is retained (i.e. not spliced) in final messenger RNA. Although many bioinformatics tools are available to quantitate other forms of alternative splicing, dedicated tools to quantify Intron Retention are limited. Quantifying IR requires not only measurement of spliced transcripts (often using mapped splice junction reads), but also measurement of the coverage of the putative retained intron. The latter requires adjustment for the fact that many introns contain repetitive regions as well as other RNA expressing elements. IRFinder corrects for many of these complexities; however its dependencies on Linux and STAR limits its wider usage. Also, IRFinder does not calculate other forms of splicings besides IR. Finally, IRFinder produces text-based output, requiring an established understanding of the data produced in order to interpret its results. NxtIRF overcomes the above limitations. Firstly, NxtIRF incorporates the IRFinder C++ routines, allowing users to run the IRFinder algorithm in the R/Bioconductor environment on multiple platforms. NxtIRF is a full pipeline that quantifies IR (and other alternative splicing) events, organises the data and produces relevant visualisation. Additionally, NxtIRF offers an interactive graphical interface that allows users to explore the data. NxtIRFdata is a data package containing ready-made BED files of Mappability exclusion genomic regions. It also contains a fully-functioning example data set with a “mock” genome and genome annotation to demonstrate the functionalities of NxtIRFTo install this package, start R (version “4.1”) and enter:
if (!requireNamespace("BiocManager", quietly = TRUE))
install.packages("BiocManager")
BiocManager::install("NxtIRFdata")
Start using NxtIRFdata:
Examples in NxtIRF are demonstrated using an artificial genome and gene annotation. A synthetic reference, with genome sequence (FASTA) and gene annotation (GTF) files are provided, based on the genes SRSF1, SRSF2, SRSF3, TRA2A, TRA2B, TP53 and NSUN5. These genes, each with an additional 100 flanking nucleotides, were used to construct an artificial “chromosome Z” (chrZ). Gene annotations, based on release-94 of Ensembl GRCh38 (hg38), were modified with genome coordinates corresponding to this artificial chromosome.
These files can be accessed as follows:
The set of 6 BAM files used in the NxtIRF vignette / example code can be downloaded to a path of the user’s choice using the following function:
Note that this downloads BAM files and not their respective BAI (BAM file indices). This is because NxtIRF reads BAM files natively and does not require RSamtools. BAI files are provided with BAM files in their respective ExperimentHub entries for users wishing to view these files using RSamtools.
NxtIRFdata retrieves the relevant records from AnnotationHub and makes a local copy of the BED file. This BED file is used to produce a genome reference for NxtIRF.
Note that this function is intended to be called internally by NxtIRF. Users interested in the format or nature of the Mappability BED file can call this function to examine the contents of the BED file
# To get the MappabilityExclusion for hg38 as a GRanges object
gr = get_mappability_exclusion(genome_type = "hg38", as_type = "GRanges")
# To get the MappabilityExclusion for hg38 as a locally-copied gzipped BED file
bed_path = get_mappability_exclusion(genome_type = "hg38", as_type = "bed.gz",
path = tempdir())
# Other `genome_type` values include "hg19", "mm10", and "mm9"
The data deposited in ExperimentHub can be accessed as follows:
For more information about the example BAM files, refer to the NxtIRFdata package documentation:
## R version 4.1.1 (2021-08-10)
## Platform: x86_64-pc-linux-gnu (64-bit)
## Running under: Ubuntu 20.04.3 LTS
##
## Matrix products: default
## BLAS: /home/biocbuild/bbs-3.14-bioc/R/lib/libRblas.so
## LAPACK: /home/biocbuild/bbs-3.14-bioc/R/lib/libRlapack.so
##
## locale:
## [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
## [3] LC_TIME=en_GB LC_COLLATE=C
## [5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
## [7] LC_PAPER=en_US.UTF-8 LC_NAME=C
## [9] LC_ADDRESS=C LC_TELEPHONE=C
## [11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
##
## attached base packages:
## [1] stats graphics grDevices utils datasets methods base
##
## other attached packages:
## [1] ExperimentHub_2.2.0 AnnotationHub_3.2.0 BiocFileCache_2.2.0
## [4] dbplyr_2.1.1 BiocGenerics_0.40.0 NxtIRFdata_1.0.0
##
## loaded via a namespace (and not attached):
## [1] MatrixGenerics_1.6.0 Biobase_2.54.0
## [3] httr_1.4.2 sass_0.4.0
## [5] bit64_4.0.5 jsonlite_1.7.2
## [7] R.utils_2.11.0 bslib_0.3.1
## [9] shiny_1.7.1 assertthat_0.2.1
## [11] interactiveDisplayBase_1.32.0 BiocManager_1.30.16
## [13] stats4_4.1.1 blob_1.2.2
## [15] GenomeInfoDbData_1.2.7 Rsamtools_2.10.0
## [17] yaml_2.2.1 BiocVersion_3.14.0
## [19] pillar_1.6.4 RSQLite_2.2.8
## [21] lattice_0.20-45 glue_1.4.2
## [23] digest_0.6.28 promises_1.2.0.1
## [25] GenomicRanges_1.46.0 XVector_0.34.0
## [27] httpuv_1.6.3 htmltools_0.5.2
## [29] Matrix_1.3-4 R.oo_1.24.0
## [31] XML_3.99-0.8 pkgconfig_2.0.3
## [33] zlibbioc_1.40.0 xtable_1.8-4
## [35] purrr_0.3.4 later_1.3.0
## [37] BiocParallel_1.28.0 tibble_3.1.5
## [39] KEGGREST_1.34.0 generics_0.1.1
## [41] IRanges_2.28.0 ellipsis_0.3.2
## [43] cachem_1.0.6 withr_2.4.2
## [45] SummarizedExperiment_1.24.0 mime_0.12
## [47] magrittr_2.0.1 crayon_1.4.1
## [49] memoise_2.0.0 evaluate_0.14
## [51] R.methodsS3_1.8.1 fansi_0.5.0
## [53] tools_4.1.1 BiocIO_1.4.0
## [55] lifecycle_1.0.1 matrixStats_0.61.0
## [57] stringr_1.4.0 S4Vectors_0.32.0
## [59] DelayedArray_0.20.0 AnnotationDbi_1.56.1
## [61] Biostrings_2.62.0 compiler_4.1.1
## [63] jquerylib_0.1.4 GenomeInfoDb_1.30.0
## [65] rlang_0.4.12 grid_4.1.1
## [67] RCurl_1.98-1.5 rjson_0.2.20
## [69] rappdirs_0.3.3 bitops_1.0-7
## [71] rmarkdown_2.11 restfulr_0.0.13
## [73] DBI_1.1.1 curl_4.3.2
## [75] R6_2.5.1 GenomicAlignments_1.30.0
## [77] knitr_1.36 dplyr_1.0.7
## [79] rtracklayer_1.54.0 fastmap_1.1.0
## [81] bit_4.0.4 utf8_1.2.2
## [83] filelock_1.0.2 stringi_1.7.5
## [85] parallel_4.1.1 Rcpp_1.0.7
## [87] png_0.1-7 vctrs_0.3.8
## [89] tidyselect_1.1.1 xfun_0.27