batch_container_from_table function

Creates a BatchContainer from a table (data.frame /tibble::tibble ) containing sample and location information.

Creates a BatchContainer from a table (data.frame /tibble::tibble ) containing sample and location information.

batch_container_from_table(tab, location_cols)

Arguments

  • tab: A table with location and sample information. Table rows with all NAs in sample information columns are treated as empty locations.
  • location_cols: Names of columns containing information about locations.

Returns

A BatchContainer assigned samples.

Examples

tab <- data.frame( row = rep(1:3, each = 3), column = rep(1:3, 3), sample_id = c(1, 2, 3, NA, 5, 6, 7, NA, 9) ) bc <- batch_container_from_table(tab, location_cols = c("row", "column"))