plates: creats a plate layout scaffold

Description Usage Arguments Details Value Functions Scaffold Formats Feature display

Description

Create an empty plate in the form of a data frame.

Create and examine plate layouts.

Usage

1
2
3
empty.plate(wells = 384)

pmatrix(x, rows, cols)

Arguments

wells

number of wells in layout

x

layout object: data frame, list or atomic vector

rows, cols

backup for supplying non-standard matrix dimensions

Details

empty.plate creates a scaffold: a data frame with well, row and column variables. More variables can be added to is with a series of ifelse statements. pmatrix can then conveniently display all features in matrix form.

Value

a data frame or a NULL if the format is not supported

Functions

Scaffold

The scaffold is a data frame with three columns: well, row, and column. Rows and columns are numbered as the given format requires, e.g. a 384-well plate has rows A through P and columns 1 through 24.

Formats

This function is only so smart. It has some hard coded formats that it will recognize, otherwise it returns a NULL

Feature display

Each feature of the plate is represented as a matrix corresponding to the plate dimensions. The format is determined based on the well number.

pmatrix accepts a single feature (vector) or a whole layout object (a data frame) or a list.

The well number is rigidly determined based on the dimensions of x then a wrapper for matrix() is created and applied to all columns


olobiolo/acutils documentation built on Nov. 28, 2021, 9:35 p.m.