Skip to contents

Creates a 24-column key for primer calibration, with 1x biol_reps and 3x tech_reps, and 5-fold dilution until 5^6 of +RT; then -RT (no reverse transcriptase), NT (no template) negative controls. That is a total of 8 versions of each replicate.

Usage

create_colkey_6diln_2ctrl_in_24(
  dilution = c(5^(0:-5), 1, 1),
  dilution_nice = c("1x", "5x", "25x", "125x", "625x", "3125x", "-RT", "NT"),
  prep_type = c(rep("+RT", 6), "-RT", "NT"),
  tech_rep = rep(1:3, each = 8, length.out = 24)
)

Arguments

dilution

Numeric vector of length 8 describing sample dilutions

dilution_nice

Character vector of length 8 with nice labels for sample dilutions

prep_type

Character vector of length 8 describing type of sample (+RT, -RT, NT)

tech_rep

Character vector of length 8 describing technical replicates

Value

tibble (data frame) with 24 rows, and variables well_col, dilution, dilution_nice, prep_type, biol_rep, tech_rep.

Examples

create_colkey_6diln_2ctrl_in_24()
#> # A tibble: 24 × 5
#>    well_col dilution dilution_nice prep_type tech_rep
#>    <fct>       <dbl> <chr>         <fct>     <fct>   
#>  1 1         1       1x            +RT       1       
#>  2 2         0.2     5x            +RT       1       
#>  3 3         0.04    25x           +RT       1       
#>  4 4         0.008   125x          +RT       1       
#>  5 5         0.0016  625x          +RT       1       
#>  6 6         0.00032 3125x         +RT       1       
#>  7 7         1       -RT           -RT       1       
#>  8 8         1       NT            NT        1       
#>  9 9         1       1x            +RT       2       
#> 10 10        0.2     5x            +RT       2       
#> # ℹ 14 more rows