make.plate: Create data.frame with Tag, Prefix, Well, Row and Column

View source: R/make.plate.R

make.plateR Documentation

Create data.frame with Tag, Prefix, Well, Row and Column

Description

Create a data.frame representing a multi-well plate with an optional prefix.

Usage

make.plate(n, prefix = NULL, digits = NULL, upper = TRUE, byrow = TRUE)

Arguments

n

the number of wells (6, 12, 24, 48, 96, or 384)

prefix

optional character vector of prefix values

digits

optional integer value to zero-pad the column labels

upper

logical flag to use upper case for row labels

byrow

logical value specifying organization

Details

Generate a data.frame suitable for typical phenodata. The tag is formed by replicating the prefix and pasting it in front of each well value.

Value

A data.frame of length three or five with the following items. Note that values for tag and prefix will be returned only if a non-NULL value for prefix is provided.

  • tag, harmonized character representation of the entire well name including any prefix, if a prefix was provided

  • prefix, prefix as a character string, if provided

  • well, harmonized well name as a factor

  • row, row as a factor

  • column, column number as a factor

Examples

  make.plate(6)
  make.plate(6, upper = FALSE)
  make.plate(12, 1:3)
  make.plate(24, 1:6)$tag # typical use to generate "OTE" labels


ornelles/virustiter documentation built on Oct. 13, 2024, 7:58 a.m.