1 Installing the Package

The MetaGxOvarian package is a compendium of Ovarian Cancer datasets. The package is publicly available and can be installed from Bioconductor into R version 3.6.0 or higher.

To install the MetaGxOvarian package from Bioconductor:

if (!requireNamespace("BiocManager", quietly = TRUE)) {
  install.packages("BiocManager")
}
BiocManager::install("MetaGxOvarian")

2 Loading Datasets

First we load the MetaGxOvarian package into the workspace.

To load the packages into R, please use the following commands:

library(MetaGxOvarian)
esets <- MetaGxOvarian::loadOvarianEsets()[[1]]

This will load 26 expression datasets. Users can modify the parameters of the function to restrict datasets that do not meet certain criteria for loading. Some example parameters are shown below:

3 Obtaining Sample Counts in Datasets

numSamples <- vapply(seq_along(esets), FUN = function(i, esets) {
  length(sampleNames(esets[[i]]))
}, numeric(1), esets = esets)


SampleNumberSummaryAll <- data.frame(
  NumberOfSamples = numSamples,
  row.names = names(esets)
)
total <- sum(SampleNumberSummaryAll[, "NumberOfSamples"])
SampleNumberSummaryAll <- rbind(SampleNumberSummaryAll, total)
rownames(SampleNumberSummaryAll)[nrow(SampleNumberSummaryAll)] <- "Total"

xtable(SampleNumberSummaryAll, digits = 2)
## % latex table generated in R 4.6.0 by xtable 1.8-8 package
## % Tue Apr  7 11:30:17 2026
## \begin{table}[ht]
## \centering
## \begin{tabular}{rr}
##   \hline
##  & NumberOfSamples \\ 
##   \hline
## E.MTAB.386 & 129.00 \\ 
##   GSE2109 & 202.00 \\ 
##   GSE6008 & 101.00 \\ 
##   GSE6822 & 62.00 \\ 
##   GSE8842 & 83.00 \\ 
##   GSE9891 & 276.00 \\ 
##   GSE12418 & 54.00 \\ 
##   GSE12470 & 49.00 \\ 
##   GSE13876 & 157.00 \\ 
##   GSE14764 & 79.00 \\ 
##   GSE17260 & 110.00 \\ 
##   GSE18520 & 59.00 \\ 
##   GSE20565 & 135.00 \\ 
##   GSE26193 & 14.00 \\ 
##   GSE26712 & 191.00 \\ 
##   GSE30009 & 103.00 \\ 
##   GSE30161 & 58.00 \\ 
##   GSE32062 & 257.00 \\ 
##   GSE32063 & 40.00 \\ 
##   GSE44104 & 47.00 \\ 
##   GSE49997 & 204.00 \\ 
##   GSE51088 & 172.00 \\ 
##   PMID15897565 & 63.00 \\ 
##   PMID17290060 & 117.00 \\ 
##   PMID19318476 & 42.00 \\ 
##   TCGAOVARIAN & 536.00 \\ 
##   Total & 3340.00 \\ 
##    \hline
## \end{tabular}
## \end{table}

4 Access Phenotype Data

We can also obtain a summary of the phenotype data (pData) for each expression dataset. Here, we assess the proportion of samples in every datasets that contain a specific pData variable.

pDataID <- c(
  "sample_type", "histological_type", "primarysite", "summarygrade",
  "summarystage", "tumorstage", "grade",
  "age_at_initial_pathologic_diagnosis", "pltx", "tax",
  "neo", "days_to_tumor_recurrence", "recurrence_status",
  "days_to_death", "vital_status"
)


pDataPercentSummaryTable <- NULL
pDataSummaryNumbersTable <- NULL

pDataSummaryNumbersList <- lapply(esets, function(x) {
  vapply(pDataID, function(y) sum(!is.na(pData(x)[, y])), numeric(1))
})

pDataPercentSummaryList <- lapply(esets, function(x) {
  vapply(pDataID, function(y) {
    sum(!is.na(pData(x)[, y])) / nrow(pData(x))
  }, numeric(1)) * 100
})

pDataSummaryNumbersTable <- sapply(pDataSummaryNumbersList, function(x) x)
pDataPercentSummaryTable <- sapply(pDataPercentSummaryList, function(x) x)

rownames(pDataSummaryNumbersTable) <- pDataID
rownames(pDataPercentSummaryTable) <- pDataID
colnames(pDataSummaryNumbersTable) <- names(esets)
colnames(pDataPercentSummaryTable) <- names(esets)

pDataSummaryNumbersTable <- rbind(pDataSummaryNumbersTable, total)
rownames(pDataSummaryNumbersTable)[nrow(pDataSummaryNumbersTable)] <- "Total"


# Generate a heatmap representation of the pData
pDataPercentSummaryTable <- t(pDataPercentSummaryTable)
pDataPercentSummaryTable <- cbind(
  Name = (rownames(pDataPercentSummaryTable)),
  pDataPercentSummaryTable
)

nba <- pDataPercentSummaryTable
gradient_colors <- c(
  "#ffffff", "#ffffd9", "#edf8b1", "#c7e9b4", "#7fcdbb",
  "#41b6c4", "#1d91c0", "#225ea8", "#253494", "#081d58"
)

library(lattice)
nbamat <- as.matrix(nba)
rownames(nbamat) <- nbamat[, 1]
nbamat <- nbamat[, -1]
Interval <- as.numeric(c(10, 20, 30, 40, 50, 60, 70, 80, 90, 100))

levelplot(nbamat,
  col.regions = gradient_colors,
  main = "Available Clinical Annotation",
  scales = list(
    x = list(rot = 90, cex = 0.5),
    y = list(cex = 0.5), key = list(cex = 0.2)
  ),
  at = seq(from = 0, to = 100, length = 10),
  cex = 0.2, ylab = "", xlab = "", lattice.options = list(),
  colorkey = list(
    at = as.numeric(factor(c(seq(from = 0, to = 100, by = 10)))),
    labels = as.character(
      c(
        "0", "10%", "20%", "30%", "40%", "50%",
        "60%", "70%", "80%", "90%", "100%"
      ),
      cex = 0.2, font = 1, col = "brown", height = 1,
      width = 1.4
    ), col = (gradient_colors)
  )
)

5 Session Info

## R version 4.6.0 alpha (2026-04-05 r89794)
## Platform: x86_64-pc-linux-gnu
## Running under: Ubuntu 24.04.4 LTS
## 
## Matrix products: default
## BLAS:   /home/biocbuild/bbs-3.23-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] lattice_0.22-9              MetaGxOvarian_1.31.0       
##  [3] SummarizedExperiment_1.41.1 GenomicRanges_1.63.2       
##  [5] Seqinfo_1.1.0               IRanges_2.45.0             
##  [7] S4Vectors_0.49.1            MatrixGenerics_1.23.0      
##  [9] matrixStats_1.5.0           ExperimentHub_3.1.0        
## [11] AnnotationHub_4.1.0         BiocFileCache_3.1.0        
## [13] dbplyr_2.5.2                Biobase_2.71.0             
## [15] BiocGenerics_0.57.0         generics_0.1.4             
## [17] xtable_1.8-8                BiocStyle_2.39.0           
## 
## loaded via a namespace (and not attached):
##  [1] KEGGREST_1.51.1      impute_1.85.0        xfun_0.57           
##  [4] bslib_0.10.0         httr2_1.2.2          vctrs_0.7.2         
##  [7] tools_4.6.0          curl_7.0.0           tibble_3.3.1        
## [10] AnnotationDbi_1.73.0 RSQLite_2.4.6        blob_1.3.0          
## [13] pkgconfig_2.0.3      Matrix_1.7-5         lifecycle_1.0.5     
## [16] compiler_4.6.0       Biostrings_2.79.5    tinytex_0.59        
## [19] htmltools_0.5.9      sass_0.4.10          yaml_2.3.12         
## [22] pillar_1.11.1        crayon_1.5.3         jquerylib_0.1.4     
## [25] DelayedArray_0.37.1  cachem_1.1.0         magick_2.9.1        
## [28] abind_1.4-8          tidyselect_1.2.1     digest_0.6.39       
## [31] purrr_1.2.1          dplyr_1.2.1          bookdown_0.46       
## [34] BiocVersion_3.23.1   fastmap_1.2.0        grid_4.6.0          
## [37] SparseArray_1.11.13  cli_3.6.5            magrittr_2.0.5      
## [40] S4Arrays_1.11.1      withr_3.0.2          filelock_1.0.3      
## [43] rappdirs_0.3.4       bit64_4.6.0-1        rmarkdown_2.31      
## [46] XVector_0.51.0       httr_1.4.8           bit_4.6.0           
## [49] otel_0.2.0           png_0.1-9            memoise_2.0.1       
## [52] evaluate_1.0.5       knitr_1.51           rlang_1.2.0         
## [55] Rcpp_1.1.1           glue_1.8.0           DBI_1.3.0           
## [58] BiocManager_1.30.27  jsonlite_2.0.0       R6_2.6.1