3.2 Getting the Metadata

The metadata file describes the experimental design: which sample belongs to which condition and replicate. This information is essential for DESeq2 to model expression differences correctly.

git_root <- system("git rev-parse --show-toplevel", intern = TRUE)

samples_info <- read.table(
  file.path(git_root, "data", "metadata", "metadata.tsv"),
  header      = TRUE,
  sep         = "\t",
  check.names = TRUE
)

💡 Tip: Use the interactive table below to verify your sample metadata before proceeding.

DT::datatable(
  data       = samples_info,
  rownames   = FALSE,
  extensions = c('Buttons', 'Scroller'),
  options    = list(
    dom         = 'Bfrtip',
    buttons     = c('copy', 'csv'),
    deferRender = TRUE,
    scrollX     = TRUE,
    scrollY     = 200,
    scroller    = TRUE
  ),
  caption = 'Sample metadata — E. coli MG1655'
)