Contents

1 Introduction

This is a package containing unCOVERApp, a shiny graphical application for clinical assessment of sequence coverage. unCOVERApp allows:

2 Installation and example

Install the latest version of uncoverappLib using BiocManager.

uncoverappLib requires:


install.packages("BiocManager")
BiocManager::install("uncoverappLib")
library(uncoverappLib)

Alternatively, it can be installed from GitHub using:


library(devtools)
install_github("Manuelaio/uncoverappLib")
library(uncoverappLib)

When users load uncoverappLib for the first time, the first thing to do is a download of annotation files. getAnnotationFiles() function allows to download the annotation files from Zenodo and parse it using uncoverappLib package. The function does not return an R object but store the annotation files in a cache (sorted.bed.gz and sorted.bed.gz.tbi) and show
the cache path. The local cache is managed by the BiocFileCache Bioconductor package. It is sufficient run the function getAnnotationFiles(verbose= TRUE) one time after installing uncoverappLib package as shown below. The preprocessing time can take few minutes, therefore during running vignette, users can provide vignette= TRUE as a parameter to download an example annotation files, as below.

library(uncoverappLib)
#> 
#> 
getAnnotationFiles(verbose= TRUE, vignette= TRUE)
#> your file already exists in cache
#> [1] "~/.cache/uncoverappLib/cPOLG.bed.gz"    
#> [2] "~/.cache/uncoverappLib/cPOLG.bed.gz.tbi"

The preprocessing time can take few minutes.

3 Input file

All unCOVERApp functionalities are based on the availability of a BED-style formatted input file containing tab-separated specifications of genomic coordinates (chromosome, start position, end position), the coverage value, and the reference:alternate allele counts for each position. In the first page Preprocessing, users can prepare the input file by specifying the genes to be examined and the BAM file(s) to be inspected. Users should be able to provide:

gene.list<- system.file("extdata", "mygene.txt", package = "uncoverappLib")

bam_example <- system.file("extdata", "example_POLG.bam", package = "uncoverappLib")

print(bam_example)
#> [1] "/tmp/RtmpI6gYAF/Rinst127d0481edc8a/uncoverappLib/extdata/example_POLG.bam"
# "/Library/Frameworks/R.framework/Versions/3.6/Resources/library/uncoverappLib/extdata/example_POLG.bam"

write.table(bam_example, file= "./bam.list", quote= FALSE, row.names = FALSE, 
            col.names = FALSE)

and launch run.uncoverapp() command. After running run.uncoverapp() the shiny app appears in your deafult browser.

In the first page Preprocessing users can load mygene.txt in Load a gene(s) file and bam.list in Load bam file(s) list. Users should also specify the reference genome in Genome box and the chromosome notation of their BAM file(s) in Chromosome Notation box. In the BAM file, the number option refers to 1, 2, …, X,.M chromosome notation, while the chr option refers to chr1, chr2, … chrX, chrM chromosome notation. Users can specify the minimum mapping quality (MAPQ) value in box and minimum base quality (QUAL) value in box. Default values for both mapping and base qualities is 1.

To run the example, choose chr chromosome notation, hg19 genome reference and leave minimum mapping and base qualities to the default settings, as shown in the following screenshot of the Preprocessing page:

Screenshot of Preprocessing page.

Figure 1: Screenshot of Preprocessing page

unCOVERApp input file generation fails if incorrect gene names are specified. An unrecognized gene name(s) table is displayed if such a case occurs. Below is a snippet of a the unCOVERApp input file generated as a result of the preprocessing step performed for the example


chr15   89859516        89859516        68      A:68
chr15   89859517        89859517        70      T:70
chr15   89859518        89859518        73      A:2;G:71
chr15   89859519        89859519        73      A:73
chr15   89859520        89859520        74      C:74
chr15   89859521        89859521        75      C:1;T:74

The preprocessing time depends on the size of the BAM file(s) and on the number of genes to investigate. In general, if many (e.g. > 50) genes are to be analyzed, we would recommend to use buildInput function and run it in R console before launching the app as shown in following example.

library(dplyr)
#> 
#> Attaching package: 'dplyr'
#> The following objects are masked from 'package:stats':
#> 
#>     filter, lag
#> The following objects are masked from 'package:base':
#> 
#>     intersect, setdiff, setequal, union

gene.list<- system.file("extdata", "mygene.txt", package = "uncoverappLib")

bam_example <- system.file("extdata", "example_POLG.bam", package = "uncoverappLib")
cat(bam_example, file = "bam.list", sep = "\n")
temp_dir=tempdir()
buildInput(geneList= gene.list, genome= "hg19", type_bam= "chr", 
           bamList= "bam.list", outDir= temp_dir)
#> Reading gene name started at:
#> 2021-05-19 19:04:03
#> 'select()' returned 1:1 mapping between keys and columns
#> Control HGNC gene name started at:
#> 2021-05-19 19:04:03
#> 'select()' returned 1:many mapping between keys and columns
#> Write output file in directory /tmp/RtmplV9SeT/outputWed_May_19_2021.bed
#> 2021-05-19 19:04:08

Alternatively, other tools do a similar job and can be used to generate the unCOVERApp input file ( for instance: bedtools, samtools, gatk). In this case, users can load the file directly on Coverage Analysis page in Select input file box.

Once pre-processing is done, users can move to the Coverage Analysis page and push the load prepared input file button.

Screenshot of Coverage Analysis page.

Figure 2: Screenshot of Coverage Analysis page

To assess sequence coverage of the example, the following input parameters must be specified in the sidebar of the Coverage Analysis section

Other input sections, as Chromosome, Transcript ID, START genomic position, END genomic position and Region coordinate, are dynamically filled.

4 Output

unCOVERApp generates the following outputs :

Screenshot of output of UCSC gene table.

Figure 3: Screenshot of output of UCSC gene table

Screenshot of output of Exon genomic coordinate positions from UCSC table.

Figure 4: Screenshot of output of Exon genomic coordinate positions from UCSC table

Screenshot of output of gene coverage.

Figure 5: Screenshot of output of gene coverage

zoom of exon 10

Figure 6: zoom of exon 10

 Example of uncovered positions annotate with dbNSFP.

Figure 7: Example of uncovered positions annotate with dbNSFP

By clicking on the download button, users can save the table as spreadsheet format with certain cells colored according to pre-specified thresholds for AF, CADD, MAP-CAP, SIFT, Polyphen2, ClinVar, OMIM ID, HGVSp and HGVSc, …).

In Calculate maximum credible allele frequency page, users can set allele frequency cut-offs based on specific assumptions about the genetic architecture of the disease. If not specified, variants with allele frequency > 5 % will be instead filtered out. More details are available here. Moreover, users may click on the ”download” button and save the resulting table as spreadsheet format.

The Binomial distribution page returns the 95 % binomial probability distribution of the variant supporting reads on the input genomic position (Genomic position). Users should define the expected allele fraction (the expected fraction of variant reads, probability of success) and Variant reads (the minimum number of variant reads required by the user to support variant calling, number of successes). The comment color change according to binomial proportion intervals. If the estimated intervals , with 95% confidence, is included or higer than user-defined Variant reads the color of comment appairs blue, otherwise if it is lower the color appairs red.

5 Session information

#> R version 4.1.0 (2021-05-18)
#> Platform: x86_64-pc-linux-gnu (64-bit)
#> Running under: Ubuntu 20.04.2 LTS
#> 
#> Matrix products: default
#> BLAS:   /home/biocbuild/bbs-3.13-bioc/R/lib/libRblas.so
#> LAPACK: /home/biocbuild/bbs-3.13-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] dplyr_1.0.6         uncoverappLib_1.2.0 BiocStyle_2.20.0   
#> 
#> loaded via a namespace (and not attached):
#>   [1] backports_1.2.1                         
#>   [2] Hmisc_4.5-0                             
#>   [3] BiocFileCache_2.0.0                     
#>   [4] lazyeval_0.2.2                          
#>   [5] splines_4.1.0                           
#>   [6] BiocParallel_1.26.0                     
#>   [7] GenomeInfoDb_1.28.0                     
#>   [8] ggplot2_3.3.3                           
#>   [9] digest_0.6.27                           
#>  [10] ensembldb_2.16.0                        
#>  [11] htmltools_0.5.1.1                       
#>  [12] GO.db_3.13.0                            
#>  [13] fansi_0.4.2                             
#>  [14] magrittr_2.0.1                          
#>  [15] checkmate_2.0.0                         
#>  [16] memoise_2.0.0                           
#>  [17] BSgenome_1.60.0                         
#>  [18] cluster_2.1.2                           
#>  [19] openxlsx_4.2.3                          
#>  [20] Biostrings_2.60.0                       
#>  [21] matrixStats_0.58.0                      
#>  [22] prettyunits_1.1.1                       
#>  [23] jpeg_0.1-8.1                            
#>  [24] colorspace_2.0-1                        
#>  [25] blob_1.2.1                              
#>  [26] rappdirs_0.3.3                          
#>  [27] xfun_0.23                               
#>  [28] crayon_1.4.1                            
#>  [29] RCurl_1.98-1.3                          
#>  [30] condformat_0.9.0                        
#>  [31] jsonlite_1.7.2                          
#>  [32] TxDb.Hsapiens.UCSC.hg19.knownGene_3.2.2 
#>  [33] graph_1.70.0                            
#>  [34] survival_3.2-11                         
#>  [35] VariantAnnotation_1.38.0                
#>  [36] glue_1.4.2                              
#>  [37] gtable_0.3.0                            
#>  [38] zlibbioc_1.38.0                         
#>  [39] XVector_0.32.0                          
#>  [40] DelayedArray_0.18.0                     
#>  [41] TxDb.Hsapiens.UCSC.hg38.knownGene_3.13.0
#>  [42] BiocGenerics_0.38.0                     
#>  [43] scales_1.1.1                            
#>  [44] DBI_1.1.1                               
#>  [45] Rcpp_1.0.6                              
#>  [46] xtable_1.8-4                            
#>  [47] progress_1.2.2                          
#>  [48] htmlTable_2.2.1                         
#>  [49] foreign_0.8-81                          
#>  [50] bit_4.0.4                               
#>  [51] OrganismDbi_1.34.0                      
#>  [52] Formula_1.2-4                           
#>  [53] DT_0.18                                 
#>  [54] stats4_4.1.0                            
#>  [55] htmlwidgets_1.5.3                       
#>  [56] httr_1.4.2                              
#>  [57] RColorBrewer_1.1-2                      
#>  [58] ellipsis_0.3.2                          
#>  [59] pkgconfig_2.0.3                         
#>  [60] XML_3.99-0.6                            
#>  [61] Gviz_1.36.0                             
#>  [62] nnet_7.3-16                             
#>  [63] sass_0.4.0                              
#>  [64] dbplyr_2.1.1                            
#>  [65] utf8_1.2.1                              
#>  [66] tidyselect_1.1.1                        
#>  [67] rlang_0.4.11                            
#>  [68] later_1.2.0                             
#>  [69] AnnotationDbi_1.54.0                    
#>  [70] munsell_0.5.0                           
#>  [71] tools_4.1.0                             
#>  [72] cachem_1.0.5                            
#>  [73] generics_0.1.0                          
#>  [74] RSQLite_2.2.7                           
#>  [75] shinyBS_0.61                            
#>  [76] evaluate_0.14                           
#>  [77] stringr_1.4.0                           
#>  [78] fastmap_1.1.0                           
#>  [79] EnsDb.Hsapiens.v75_2.99.0               
#>  [80] yaml_2.2.1                              
#>  [81] processx_3.5.2                          
#>  [82] org.Hs.eg.db_3.13.0                     
#>  [83] knitr_1.33                              
#>  [84] bit64_4.0.5                             
#>  [85] shinycssloaders_1.0.0                   
#>  [86] zip_2.1.1                               
#>  [87] purrr_0.3.4                             
#>  [88] KEGGREST_1.32.0                         
#>  [89] AnnotationFilter_1.16.0                 
#>  [90] RBGL_1.68.0                             
#>  [91] mime_0.10                               
#>  [92] biomaRt_2.48.0                          
#>  [93] compiler_4.1.0                          
#>  [94] rstudioapi_0.13                         
#>  [95] filelock_1.0.2                          
#>  [96] curl_4.3.1                              
#>  [97] png_0.1-7                               
#>  [98] EnsDb.Hsapiens.v86_2.99.0               
#>  [99] tibble_3.1.2                            
#> [100] bslib_0.2.5.1                           
#> [101] Homo.sapiens_1.3.1                      
#> [102] stringi_1.6.2                           
#> [103] highr_0.9                               
#> [104] ps_1.6.0                                
#> [105] GenomicFeatures_1.44.0                  
#> [106] lattice_0.20-44                         
#> [107] ProtGenerics_1.24.0                     
#> [108] Matrix_1.3-3                            
#> [109] markdown_1.1                            
#> [110] shinyjs_2.0.0                           
#> [111] vctrs_0.3.8                             
#> [112] pillar_1.6.1                            
#> [113] lifecycle_1.0.0                         
#> [114] BiocManager_1.30.15                     
#> [115] jquerylib_0.1.4                         
#> [116] data.table_1.14.0                       
#> [117] bitops_1.0-7                            
#> [118] httpuv_1.6.1                            
#> [119] rtracklayer_1.52.0                      
#> [120] GenomicRanges_1.44.0                    
#> [121] R6_2.5.0                                
#> [122] BiocIO_1.2.0                            
#> [123] latticeExtra_0.6-29                     
#> [124] promises_1.2.0.1                        
#> [125] bookdown_0.22                           
#> [126] gridExtra_2.3                           
#> [127] IRanges_2.26.0                          
#> [128] dichromat_2.0-0                         
#> [129] assertthat_0.2.1                        
#> [130] SummarizedExperiment_1.22.0             
#> [131] rjson_0.2.20                            
#> [132] withr_2.4.2                             
#> [133] shinyWidgets_0.6.0                      
#> [134] GenomicAlignments_1.28.0                
#> [135] Rsamtools_2.8.0                         
#> [136] S4Vectors_0.30.0                        
#> [137] GenomeInfoDbData_1.2.6                  
#> [138] rlist_0.4.6.1                           
#> [139] parallel_4.1.0                          
#> [140] hms_1.1.0                               
#> [141] grid_4.1.0                              
#> [142] rpart_4.1-15                            
#> [143] rmarkdown_2.8                           
#> [144] BSgenome.Hsapiens.UCSC.hg19_1.4.3       
#> [145] MatrixGenerics_1.4.0                    
#> [146] biovizBase_1.40.0                       
#> [147] Biobase_2.52.0                          
#> [148] shiny_1.6.0                             
#> [149] base64enc_0.1-3                         
#> [150] restfulr_0.0.13