apply_curve_matches: PureHoney helper function

Description Usage Arguments Examples

Description

Applies a named vector of curve matches (ususally the output of assayr2::curve_matcher()) to data to add the relevant curve id columns

Usage

1
apply_curve_matches(data, curve_pairs, plate_id = NULL, prun = NULL)

Arguments

data

Date being anlyzed, typically from assayr2::read_ph_raw().

curve_pairs

Named chr vector, with curves analytes as values and matched non-curve analytes as names

plate_id

A numeric or character representing the plate_id of the standards. Useful if standards are read on one plate, but used for multiple sample plates.

prun

A character representing the plate run of the standards. Useful if standard are read on one read, but used for multiple sample reads.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
# if no special matching is required (all plate reads have dedicated curves)
ph_data %>% apply_curve_pairs(curve_pairs)

# if targets need to be matched to curves on another read on the same plate
ph_data %>% apply_curve_pairs(curve_pairs, prun = "Std_read")

# if targets need to be matched to curves on another plate
ph_data %>% apply_curve_pairs(curve_pairs,  plate_id = 2222)

## End(Not run)

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