Date: 2026-04-28

# BatchQC Examples

W. Evan Johnson1,2*, Jessica Anderson1** and Solaiappan Manimaran3

1Division of Infectious Disease, Department of Medicine, Rutgers University
2Director, Center for Data Science, Rutgers University
3Computational Biomedicine, Department of Medicine, Boston University

*wj183@njms.rutgers.edu
**anderson.jessica@rutgers.edu

#### 28 April 2026

#### Package

BatchQC 2.9.0

# 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()

# 4 Example 4: TB Data

This is a whole blood gene expression profiling from well and malnourished Indian individuals with TB and severely malnourished household contacts with latent TB infection (LTBI). Severe malnutrition was defined as body mass index <16. kg/m2 in adults and based on weight-for-height Z scores in children <18 years. Gene expression was measured using RNA-sequencing. (VanValkenburg A, et al. Malnutrition leads to increased inflammation and expression of tuberculosis risk signatures in recently exposed household contacts of pulmonary tuberculosis. Front Immunol. 2022 Sep 28;13:1011166. doi: 10.3389/fimmu.2022.1011166")

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

# Session info

    ## R version 4.6.0 RC (2026-04-17 r89917)
    ## Platform: x86_64-pc-linux-gnu
    ## Running under: Ubuntu 24.04.4 LTS
    ##
    ## Matrix products: default
    ## BLAS:   /home/biocbuild/bbs-3.24-bioc/R/lib/libRblas.so
    ## LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.12.0  LAPACK version 3.12.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] Biobase_2.73.0      S4Vectors_0.51.0    BiocGenerics_0.59.0
    ## [4] generics_0.1.4      curatedTBData_2.7.0 BatchQC_2.9.0
    ## [7] BiocStyle_2.41.0
    ##
    ## loaded via a namespace (and not attached):
    ##   [1] shinythemes_1.2.0           splines_4.6.0
    ##   [3] later_1.4.8                 filelock_1.0.3
    ##   [5] bitops_1.0-9                tibble_3.3.1
    ##   [7] XML_3.99-0.23               httr2_1.2.2
    ##   [9] Ckmeans.1d.dp_4.3.5         lifecycle_1.0.5
    ##  [11] Rdpack_2.6.6                rstatix_0.7.3
    ##  [13] edgeR_4.11.0                lattice_0.22-9
    ##  [15] MASS_7.3-65                 crosstalk_1.2.2
    ##  [17] MultiAssayExperiment_1.39.0 backports_1.5.1
    ##  [19] magrittr_2.0.5              plotly_4.12.0
    ##  [21] limma_3.69.0                sass_0.4.10
    ##  [23] rmarkdown_2.31              jquerylib_0.1.4
    ##  [25] yaml_2.3.12                 metapod_1.21.0
    ##  [27] httpuv_1.6.17               otel_0.2.0
    ##  [29] askpass_1.2.1               reticulate_1.46.0
    ##  [31] reader_1.1.0                DBI_1.3.0
    ##  [33] RColorBrewer_1.1-3          abind_1.4-8
    ##  [35] GenomicRanges_1.65.0        purrr_1.2.2
    ##  [37] rappdirs_0.3.4              sva_3.61.0
    ##  [39] IRanges_2.47.0              irlba_2.3.7
    ##  [41] genefilter_1.95.0           testthat_3.3.2
    ##  [43] pheatmap_1.0.13             umap_0.2.10.0
    ##  [45] RSpectra_0.16-2             annotate_1.91.0
    ##  [47] dqrng_0.4.1                 codetools_0.2-20
    ##  [49] DelayedArray_0.39.0         scuttle_1.23.0
    ##  [51] tidyselect_1.2.1            farver_2.1.2
    ##  [53] ScaledMatrix_1.21.0         matrixStats_1.5.0
    ##  [55] BiocFileCache_3.3.0         Seqinfo_1.3.0
    ##  [57] jsonlite_2.0.0              BiocNeighbors_2.7.0
    ##  [59] Formula_1.2-5               survival_3.8-6
    ##  [61] tools_4.6.0                 ggnewscale_0.5.2
    ##  [63] Rcpp_1.1.1-1.1              glue_1.8.1
    ##  [65] SparseArray_1.13.0          xfun_0.57
    ##  [67] mgcv_1.9-4                  DESeq2_1.53.0
    ##  [69] MatrixGenerics_1.25.0       dplyr_1.2.1
    ##  [71] withr_3.0.2                 BiocManager_1.30.27
    ##  [73] fastmap_1.2.0               bluster_1.23.0
    ##  [75] shinyjs_2.1.1               openssl_2.4.0
    ##  [77] caTools_1.18.3              digest_0.6.39
    ##  [79] rsvd_1.0.5                  R6_2.6.1
    ##  [81] mime_0.13                   gtools_3.9.5
    ##  [83] dichromat_2.0-0.1           RSQLite_2.4.6
    ##  [85] utf8_1.2.6                  tidyr_1.3.2
    ##  [87] data.table_1.18.2.1         FNN_1.1.4.1
    ##  [89] htmlwidgets_1.6.4           httr_1.4.8
    ##  [91] S4Arrays_1.13.0             pkgconfig_2.0.3
    ##  [93] gtable_0.3.6                NCmisc_1.3.1
    ##  [95] blob_1.3.0                  S7_0.2.2
    ##  [97] SingleCellExperiment_1.35.0 XVector_0.53.0
    ##  [99] brio_1.1.5                  htmltools_0.5.9
    ## [101] carData_3.0-6               bookdown_0.46
    ## [103] scales_1.4.0                tidyverse_2.0.0
    ## [105] blockmodeling_1.1.8         png_0.1-9
    ## [107] scran_1.41.0                EBSeq_2.11.0
    ## [109] ggdendro_0.2.0              knitr_1.51
    ## [111] reshape2_1.4.5              curl_7.1.0
    ## [113] nlme_3.1-169                cachem_1.1.0
    ## [115] stringr_1.6.0               BiocVersion_3.24.0
    ## [117] KernSmooth_2.23-26          parallel_4.6.0
    ## [119] Harman_1.41.0               AnnotationDbi_1.75.0
    ## [121] pillar_1.11.1               grid_4.6.0
    ## [123] vctrs_0.7.3                 gplots_3.3.0
    ## [125] promises_1.5.0              ggpubr_0.6.3
    ## [127] car_3.1-5                   BiocSingular_1.29.0
    ## [129] dbplyr_2.5.2                beachmat_2.29.0
    ## [131] xtable_1.8-8                cluster_2.1.8.2
    ## [133] evaluate_1.0.5              magick_2.9.1
    ## [135] tinytex_0.59                cli_3.6.6
    ## [137] locfit_1.5-9.12             compiler_4.6.0
    ## [139] rlang_1.2.0                 crayon_1.5.3
    ## [141] ggsignif_0.6.4              labeling_0.4.3
    ## [143] plyr_1.8.9                  stringi_1.8.7
    ## [145] viridisLite_0.4.3           BiocParallel_1.47.0
    ## [147] Biostrings_2.81.0           lazyeval_0.2.3
    ## [149] Matrix_1.7-5                ExperimentHub_3.3.0
    ## [151] RcppEigen_0.3.4.0.2         bit64_4.8.0
    ## [153] ggplot2_4.0.3               KEGGREST_1.53.0
    ## [155] statmod_1.5.1               shiny_1.13.0
    ## [157] SummarizedExperiment_1.43.0 AnnotationHub_4.3.0
    ## [159] rbibutils_2.4.1             igraph_2.3.0
    ## [161] broom_1.0.12                memoise_2.0.1
    ## [163] bslib_0.10.0                bit_4.6.0