Contents

1 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)

2 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)

3 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.5.0 Patched (2025-04-21 r88169)
## Platform: aarch64-apple-darwin20
## Running under: macOS Ventura 13.7.1
## 
## Matrix products: default
## BLAS:   /Library/Frameworks/R.framework/Versions/4.5-arm64/Resources/lib/libRblas.0.dylib 
## LAPACK: /Library/Frameworks/R.framework/Versions/4.5-arm64/Resources/lib/libRlapack.dylib;  LAPACK version 3.12.1
## 
## locale:
## [1] C/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
## 
## time zone: America/New_York
## tzcode source: internal
## 
## attached base packages:
## [1] stats     graphics  grDevices utils     datasets  methods   base     
## 
## other attached packages:
## [1] BatchQC_2.5.0    BiocStyle_2.37.0
## 
## loaded via a namespace (and not attached):
##   [1] RColorBrewer_1.1-3          ggdendro_0.2.0             
##   [3] jsonlite_2.0.0              umap_0.2.10.0              
##   [5] magrittr_2.0.3              magick_2.8.6               
##   [7] NCmisc_1.2.0                farver_2.1.2               
##   [9] rmarkdown_2.29              vctrs_0.6.5                
##  [11] memoise_2.0.1               EBSeq_2.7.0                
##  [13] askpass_1.2.1               tinytex_0.57               
##  [15] htmltools_0.5.8.1           S4Arrays_1.9.1             
##  [17] BiocNeighbors_2.3.1         SparseArray_1.9.0          
##  [19] sass_0.4.10                 KernSmooth_2.23-26         
##  [21] bslib_0.9.0                 htmlwidgets_1.6.4          
##  [23] plyr_1.8.9                  testthat_3.2.3             
##  [25] plotly_4.10.4               cachem_1.1.0               
##  [27] igraph_2.1.4                mime_0.13                  
##  [29] lifecycle_1.0.4             pkgconfig_2.0.3            
##  [31] rsvd_1.0.5                  Matrix_1.7-3               
##  [33] R6_2.6.1                    fastmap_1.2.0              
##  [35] MatrixGenerics_1.21.0       shiny_1.10.0               
##  [37] digest_0.6.37               ggnewscale_0.5.1           
##  [39] AnnotationDbi_1.71.0        S4Vectors_0.47.0           
##  [41] DESeq2_1.49.1               RSpectra_0.16-2            
##  [43] dqrng_0.4.1                 irlba_2.3.5.1              
##  [45] crosstalk_1.2.1             GenomicRanges_1.61.0       
##  [47] RSQLite_2.3.11              beachmat_2.25.0            
##  [49] labeling_0.4.3              httr_1.4.7                 
##  [51] abind_1.4-8                 mgcv_1.9-3                 
##  [53] compiler_4.5.0              withr_3.0.2                
##  [55] bit64_4.6.0-1               BiocParallel_1.43.2        
##  [57] DBI_1.2.3                   gplots_3.2.0               
##  [59] MASS_7.3-65                 openssl_2.3.3              
##  [61] DelayedArray_0.35.1         bluster_1.19.0             
##  [63] gtools_3.9.5                caTools_1.18.3             
##  [65] tools_4.5.0                 httpuv_1.6.16              
##  [67] glue_1.8.0                  nlme_3.1-168               
##  [69] promises_1.3.2              grid_4.5.0                 
##  [71] cluster_2.1.8.1             reshape2_1.4.4             
##  [73] generics_0.1.4              sva_3.57.0                 
##  [75] gtable_0.3.6                tidyr_1.3.1                
##  [77] data.table_1.17.4           utf8_1.2.5                 
##  [79] BiocSingular_1.25.0         ScaledMatrix_1.17.0        
##  [81] metapod_1.17.0              XVector_0.49.0             
##  [83] BiocGenerics_0.55.0         pillar_1.10.2              
##  [85] stringr_1.5.1               limma_3.65.1               
##  [87] genefilter_1.91.0           later_1.4.2                
##  [89] splines_4.5.0               dplyr_1.1.4                
##  [91] lattice_0.22-7              survival_3.8-3             
##  [93] reader_1.0.6                bit_4.6.0                  
##  [95] annotate_1.87.0             tidyselect_1.2.1           
##  [97] SingleCellExperiment_1.31.0 locfit_1.5-9.12            
##  [99] Biostrings_2.77.1           scuttle_1.19.0             
## [101] knitr_1.50                  bookdown_0.43              
## [103] blockmodeling_1.1.5         IRanges_2.43.0             
## [105] edgeR_4.7.2                 SummarizedExperiment_1.39.0
## [107] stats4_4.5.0                xfun_0.52                  
## [109] Biobase_2.69.0              statmod_1.5.0              
## [111] brio_1.1.5                  matrixStats_1.5.0          
## [113] pheatmap_1.0.12             stringi_1.8.7              
## [115] UCSC.utils_1.5.0            lazyeval_0.2.2             
## [117] yaml_2.3.10                 evaluate_1.0.3             
## [119] codetools_0.2-20            RcppEigen_0.3.4.0.2        
## [121] tibble_3.2.1                BiocManager_1.30.25        
## [123] cli_3.6.5                   reticulate_1.42.0          
## [125] shinythemes_1.2.0           xtable_1.8-4               
## [127] jquerylib_0.1.4             dichromat_2.0-0.1          
## [129] Rcpp_1.0.14                 GenomeInfoDb_1.45.4        
## [131] tidyverse_2.0.0             png_0.1-8                  
## [133] XML_3.99-0.18               parallel_4.5.0             
## [135] ggplot2_3.5.2               blob_1.2.4                 
## [137] scran_1.37.0                bitops_1.0-9               
## [139] viridisLite_0.4.2           scales_1.4.0               
## [141] purrr_1.0.4                 crayon_1.5.3               
## [143] rlang_1.1.6                 KEGGREST_1.49.0            
## [145] shinyjs_2.1.0