Contents

1 Overview

scvi-tools is an element of the scverse toolchest for single-cell omics data analysis.

The scviR package is a very elementary approach to interfacing between R, Bioconductor and scvi-tools. The long-term plan is to illustrate several aspects of variational inference (VI) applied to single cell genomics in a way that is convenient for Bioconductor users.

The package makes use of SingleCellExperiment and anndata representations of single-cell genomic assays.

Several points should be kept in mind when using this package:

2 Installation and use

As of Feb 2023, use BiocManager to install scviR in R 4.2.2 or above:

BiocManager::install("vjcitn/scviR")

Be sure the remotes package has been installed. If you are working at a slow internet connection, it may be useful to set options(timeout=3600) when running functions

3 Session information

sessionInfo()
## R version 4.3.1 (2023-06-16)
## Platform: x86_64-pc-linux-gnu (64-bit)
## Running under: Ubuntu 22.04.3 LTS
## 
## Matrix products: default
## BLAS:   /home/biocbuild/bbs-3.18-bioc/R/lib/libRblas.so 
## LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.10.0
## 
## 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       
## 
## time zone: America/New_York
## tzcode source: system (glibc)
## 
## attached base packages:
## [1] stats4    stats     graphics  grDevices utils     datasets  methods  
## [8] base     
## 
## other attached packages:
##  [1] Matrix_1.6-1.1              scater_1.30.0              
##  [3] scuttle_1.12.0              reshape2_1.4.4             
##  [5] ggplot2_3.4.4               scviR_1.2.0                
##  [7] SingleCellExperiment_1.24.0 SummarizedExperiment_1.32.0
##  [9] Biobase_2.62.0              GenomicRanges_1.54.0       
## [11] GenomeInfoDb_1.38.0         IRanges_2.36.0             
## [13] S4Vectors_0.40.0            BiocGenerics_0.48.0        
## [15] MatrixGenerics_1.14.0       matrixStats_1.0.0          
## [17] shiny_1.7.5.1               basilisk_1.14.0            
## [19] BiocStyle_2.30.0           
## 
## loaded via a namespace (and not attached):
##   [1] DBI_1.1.3                 bitops_1.0-7             
##   [3] gridExtra_2.3             rlang_1.1.1              
##   [5] magrittr_2.0.3            compiler_4.3.1           
##   [7] RSQLite_2.3.1             mgcv_1.9-0               
##   [9] dir.expiry_1.10.0         DelayedMatrixStats_1.24.0
##  [11] png_0.1-8                 vctrs_0.6.4              
##  [13] stringr_1.5.0             pkgconfig_2.0.3          
##  [15] crayon_1.5.2              fastmap_1.1.1            
##  [17] magick_2.8.1              dbplyr_2.3.4             
##  [19] XVector_0.42.0            ellipsis_0.3.2           
##  [21] labeling_0.4.3            utf8_1.2.4               
##  [23] promises_1.2.1            rmarkdown_2.25           
##  [25] ggbeeswarm_0.7.2          purrr_1.0.2              
##  [27] bit_4.0.5                 xfun_0.40                
##  [29] zlibbioc_1.48.0           cachem_1.0.8             
##  [31] beachmat_2.18.0           jsonlite_1.8.7           
##  [33] blob_1.2.4                later_1.3.1              
##  [35] DelayedArray_0.28.0       BiocParallel_1.36.0      
##  [37] irlba_2.3.5.1             parallel_4.3.1           
##  [39] R6_2.5.1                  stringi_1.7.12           
##  [41] RColorBrewer_1.1-3        bslib_0.5.1              
##  [43] limma_3.58.0              reticulate_1.34.0        
##  [45] jquerylib_0.1.4           Rcpp_1.0.11              
##  [47] bookdown_0.36             knitr_1.44               
##  [49] splines_4.3.1             httpuv_1.6.12            
##  [51] tidyselect_1.2.0          abind_1.4-5              
##  [53] yaml_2.3.7                viridis_0.6.4            
##  [55] codetools_0.2-19          curl_5.1.0               
##  [57] plyr_1.8.9                lattice_0.22-5           
##  [59] tibble_3.2.1              withr_2.5.1              
##  [61] basilisk.utils_1.14.0     evaluate_0.22            
##  [63] BiocFileCache_2.10.0      pillar_1.9.0             
##  [65] BiocManager_1.30.22       filelock_1.0.2           
##  [67] generics_0.1.3            RCurl_1.98-1.12          
##  [69] sparseMatrixStats_1.14.0  munsell_0.5.0            
##  [71] scales_1.2.1              xtable_1.8-4             
##  [73] glue_1.6.2                pheatmap_1.0.12          
##  [75] tools_4.3.1               BiocNeighbors_1.20.0     
##  [77] ScaledMatrix_1.10.0       cowplot_1.1.1            
##  [79] grid_4.3.1                colorspace_2.1-0         
##  [81] nlme_3.1-163              GenomeInfoDbData_1.2.11  
##  [83] beeswarm_0.4.0            BiocSingular_1.18.0      
##  [85] vipor_0.4.5               cli_3.6.1                
##  [87] rsvd_1.0.5                fansi_1.0.5              
##  [89] S4Arrays_1.2.0            viridisLite_0.4.2        
##  [91] dplyr_1.1.3               gtable_0.3.4             
##  [93] sass_0.4.7                digest_0.6.33            
##  [95] SparseArray_1.2.0         ggrepel_0.9.4            
##  [97] farver_2.1.1              memoise_2.0.1            
##  [99] htmltools_0.5.6.1         lifecycle_1.0.3          
## [101] httr_1.4.7                statmod_1.5.0            
## [103] mime_0.12                 bit64_4.0.5