read_layouts: A parser for plate maps

Description Usage Arguments Details Value Examples

Description

Useful for reading in an Excel sheet full of plate layouts, originally built for PCR layouts. Auto detects plate names, well contents, targets and primer temperatures, if the layout is typical :)

Usage

1
2
read_layouts(file, sheet = 1, skip = 1, arrange = "cols",
  times = NULL, ...)

Arguments

file

A valid file path to layout of interest. Currently only supports 'xlsx' files.

sheet

Numeric. The sheet of interest in pcr_file.

skip

Numeric. Number of rows to skip, always try to skip header meta material, start at first plate.

arrange

Character vector with elements being either "rows" or "cols" (default), that describe how primers are layed out within plates. If length(arrange) == length(plate_layouts), then each layout will be handled according to the matching arrange value of plate layouts.The arrange arg is not a magic bullet.

times

Integer. Number of times to replicate targets.

...

Arguments passed to read_generic()

Details

Relies on finding a single plate identifier starting with the 'Plate' for each layout. This function will handle standard layouts well, but abnormal layouts will require manual TLC, until a color matching solution is ready (so like never).

Value

A names list for each plate. Useful for fixing a-typical layouts manually.

Examples

1
2
3
4
5
6
7
## Not run: 
layout_file <- "path/to/my_layout.xlsx"
lay <- read_layouts(meta_file, sheet = 1) # returns list
# perhaps fix a specific abnormal plate by hand
lay %<>% bind_rows() # once every plate is ready

## End(Not run)

hemoshear/assayr2 documentation built on Nov. 8, 2019, 6:13 p.m.