BatchQC Examples

Example 1: Protein Data

This data set is from protein expression data captured for 39 proteins. It has two batches and two conditions corresponding to case and control.

library(BatchQC)
data(protein_data)
data(protein_sample_info)
se_object <- BatchQC::summarized_experiment(protein_data, protein_sample_info)

Example 2: Signature Data

This data set is from signature data captured when activating different growth pathway genes in human mammary epithelial cells (GEO accession: GSE73628). This data consists of three batches and ten different conditions corresponding to control and nine different pathways

data(signature_data)
data(batch_indicator)
se_object <- BatchQC::summarized_experiment(signature_data, batch_indicator)

Example 3: Bladderbatch Data

This data set is from bladder cancer data. This dataset has 57 bladder samples with 5 batches and 3 covariate levels (cancer, biopsy, control). Batch 1 contains only cancer, 2 has cancer and controls, 3 has only controls, 4 contains only biopsy, and 5 contains cancer and biopsy. This data set is from the bladderbatch package which must be installed to use this data example set (Leek JT (2023). bladderbatch: Bladder gene expression data illustrating batch effects. R package version 1.38.0).

if (!requireNamespace("bladderbatch", quietly = TRUE))
    BiocManager::install("bladderbatch")
se_object <- BatchQC::bladder_data_upload()

Session info

## R version 4.4.2 (2024-10-31)
## Platform: x86_64-pc-linux-gnu
## Running under: Ubuntu 24.04.1 LTS
## 
## Matrix products: default
## BLAS:   /usr/lib/x86_64-linux-gnu/openblas-pthread/libblas.so.3 
## LAPACK: /usr/lib/x86_64-linux-gnu/openblas-pthread/libopenblasp-r0.3.26.so;  LAPACK version 3.12.0
## 
## locale:
##  [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C              
##  [3] LC_TIME=en_US.UTF-8        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: Etc/UTC
## tzcode source: system (glibc)
## 
## attached base packages:
## [1] stats     graphics  grDevices utils     datasets  methods   base     
## 
## other attached packages:
## [1] BatchQC_2.3.0    BiocStyle_2.35.0
## 
## loaded via a namespace (and not attached):
##   [1] RColorBrewer_1.1-3          ggdendro_0.2.0             
##   [3] sys_3.4.3                   jsonlite_1.8.9             
##   [5] magrittr_2.0.3              NCmisc_1.2.0               
##   [7] farver_2.1.2                rmarkdown_2.29             
##   [9] vctrs_0.6.5                 memoise_2.0.1              
##  [11] EBSeq_2.5.0                 htmltools_0.5.8.1          
##  [13] S4Arrays_1.7.1              BiocNeighbors_2.1.2        
##  [15] SparseArray_1.7.2           sass_0.4.9                 
##  [17] KernSmooth_2.23-24          bslib_0.8.0                
##  [19] htmlwidgets_1.6.4           plyr_1.8.9                 
##  [21] testthat_3.2.2              plotly_4.10.4              
##  [23] cachem_1.1.0                buildtools_1.0.0           
##  [25] igraph_2.1.2                mime_0.12                  
##  [27] lifecycle_1.0.4             pkgconfig_2.0.3            
##  [29] rsvd_1.0.5                  Matrix_1.7-1               
##  [31] R6_2.5.1                    fastmap_1.2.0              
##  [33] GenomeInfoDbData_1.2.13     MatrixGenerics_1.19.0      
##  [35] shiny_1.10.0                digest_0.6.37              
##  [37] colorspace_2.1-1            ggnewscale_0.5.0           
##  [39] AnnotationDbi_1.69.0        S4Vectors_0.45.2           
##  [41] DESeq2_1.47.1               dqrng_0.4.1                
##  [43] irlba_2.3.5.1               crosstalk_1.2.1            
##  [45] GenomicRanges_1.59.1        RSQLite_2.3.9              
##  [47] beachmat_2.23.5             labeling_0.4.3             
##  [49] httr_1.4.7                  abind_1.4-8                
##  [51] mgcv_1.9-1                  compiler_4.4.2             
##  [53] withr_3.0.2                 bit64_4.5.2                
##  [55] BiocParallel_1.41.0         DBI_1.2.3                  
##  [57] gplots_3.2.0                MASS_7.3-61                
##  [59] DelayedArray_0.33.3         bluster_1.17.0             
##  [61] gtools_3.9.5                caTools_1.18.3             
##  [63] tools_4.4.2                 httpuv_1.6.15              
##  [65] glue_1.8.0                  nlme_3.1-166               
##  [67] promises_1.3.2              grid_4.4.2                 
##  [69] cluster_2.1.8               reshape2_1.4.4             
##  [71] generics_0.1.3              sva_3.55.0                 
##  [73] gtable_0.3.6                tidyr_1.3.1                
##  [75] data.table_1.16.4           utf8_1.2.4                 
##  [77] BiocSingular_1.23.0         ScaledMatrix_1.15.0        
##  [79] metapod_1.15.0              XVector_0.47.1             
##  [81] BiocGenerics_0.53.3         pillar_1.10.0              
##  [83] stringr_1.5.1               limma_3.63.2               
##  [85] genefilter_1.89.0           later_1.4.1                
##  [87] splines_4.4.2               dplyr_1.1.4                
##  [89] lattice_0.22-6              survival_3.8-3             
##  [91] reader_1.0.6                bit_4.5.0.1                
##  [93] annotate_1.85.0             tidyselect_1.2.1           
##  [95] SingleCellExperiment_1.29.1 locfit_1.5-9.10            
##  [97] maketools_1.3.1             Biostrings_2.75.3          
##  [99] scuttle_1.17.0              knitr_1.49                 
## [101] blockmodeling_1.1.5         IRanges_2.41.2             
## [103] edgeR_4.5.1                 SummarizedExperiment_1.37.0
## [105] stats4_4.4.2                xfun_0.49                  
## [107] Biobase_2.67.0              statmod_1.5.0              
## [109] brio_1.1.5                  matrixStats_1.4.1          
## [111] pheatmap_1.0.12             stringi_1.8.4              
## [113] UCSC.utils_1.3.0            lazyeval_0.2.2             
## [115] yaml_2.3.10                 evaluate_1.0.1             
## [117] codetools_0.2-20            RcppEigen_0.3.4.0.2        
## [119] tibble_3.2.1                BiocManager_1.30.25        
## [121] cli_3.6.3                   shinythemes_1.2.0          
## [123] xtable_1.8-4                munsell_0.5.1              
## [125] jquerylib_0.1.4             Rcpp_1.0.13-1              
## [127] GenomeInfoDb_1.43.2         tidyverse_2.0.0            
## [129] png_0.1-8                   XML_3.99-0.17              
## [131] parallel_4.4.2              ggplot2_3.5.1              
## [133] blob_1.2.4                  scran_1.35.0               
## [135] bitops_1.0-9                viridisLite_0.4.2          
## [137] scales_1.3.0                purrr_1.0.2                
## [139] crayon_1.5.3                rlang_1.1.4                
## [141] KEGGREST_1.47.0             shinyjs_2.1.0