Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds edge wells documentation and addresses kelshmo comments #138

Merged
merged 3 commits into from
Jan 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion R/calculate_efficiency.R
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
#' dilution_tibble <- tibble(dilution = rep(c(1, 0.1, 0.001, 0.0001), 2),
#' cq = c(1, 3, 4, 6,
#' 4, 5, 6, 7),
#' biol_rep = rep(c(1,2), each = 4))
#' biol_rep = rep(c(1,2), each = 4),
#' target_id = "T1")
#'
#' # calculate primer efficiency
#'
Expand Down
54 changes: 46 additions & 8 deletions R/plate_functions.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#' Create a blank plate template as a tibble
#' Create a blank plate template as a tibble (with helper functions for common plate sizes)
#'
#' For more help, examples and explanations, see the plate setup vignette:
#' \code{vignette("platesetup_vignette", package = "tidyqpcr")}
Expand All @@ -20,8 +20,17 @@
#'
#' create_blank_plate_96well()
#'
#' # 96-well plate avoiding edge rows
#' create_blank_plate(well_row = LETTERS[2:7], well_col = 2:11)
#' create_blank_plate_1536well()
#'
#' # create blank 96-well plate with empty edge wells
#'
#' create_blank_plate(well_row=LETTERS[2:7], well_col=2:11)
#'
#' # create blank 1536-well plate with empty edge wells
#'
#' full_plate_row_names <- make_row_names_lc1536()
#'
#' create_blank_plate(well_row=full_plate_row_names[2:31], well_col=2:47)
#'
#' @family plate creation functions
#'
Expand All @@ -46,16 +55,36 @@ create_blank_plate_96well <- function() {
create_blank_plate(well_row = LETTERS[1:8], well_col = 1:12)
}

#' @describeIn create_blank_plate Row names for 1536-well plates on
#' Roche Lightcycler (tm) 1536 Aa,Ab,Ac,Ad,Ba,...,Hd.
#' Generates row names for the Roche Lightcycler (tm) 1536-well plates
#'
#' Creates a vector containing 36 row names according to the labeling system
#' used by the Roche Lightcycler (tm)
#'
#' @return Vector of row names: Aa,Ab,Ac,Ad,Ba,...,Hd.
#'
#' @family plate creation functions
#'
#' @examples
#' make_row_names_lc1536()
#'
#' @export
#'
make_row_names_lc1536 <- function() {
paste0(rep(LETTERS[1:8], each = 4), letters[1:4])
}

#' @describeIn create_blank_plate Row names for 1536-well plates on
#' Labcyte Echo A,B,...,Z,AA,AB,...,AF.
#' Generates row names for the Labcyte Echo 1536-well plates
#'
#' Creates a vector containing 36 row names according to the
#' labeling system used by the Labcyte Echo
#'
#' @return Vector of row names: A,B,...,Z,AA,AB,...,AF.
#'
#' @family plate creation functions
#'
#' @examples
#' make_row_names_echo1536()
#'
#' @export
#'
make_row_names_echo1536 <- function() {
Expand Down Expand Up @@ -248,7 +277,11 @@ create_rowkey_8_in_16_plain <- function(...) {

#' Label a plate with sample and probe information
#'
#' See vignettes for further examples
#' For more help, examples and explanations, see the plate setup vignette:
#' \code{vignette("platesetup_vignette", package = "tidyqpcr")}
#'
#' For worked examples of tidyqpcr analysis with 384-well plates, see:
#' \code{vignette("calibration_vignette", package = "tidyqpcr")}
#'
#' @param plate tibble (data frame) with variables well_row, well_col, well.
#' This would usually be produced by create_blank_plate(). It is possible to
Expand Down Expand Up @@ -281,6 +314,11 @@ create_rowkey_8_in_16_plain <- function(...) {
#'
#' @examples
#' label_plate_rowcol(plate = create_blank_plate()) # returns blank plate
#'
#' # label blank 96-well plate with empty edge wells
#'
#' label_plate_rowcol(plate = create_blank_plate(well_row=LETTERS[2:7], well_col=2:11))
#'
#' @family plate creation functions
#'
#' @export
Expand Down
3 changes: 2 additions & 1 deletion man/calculate_efficiency.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 15 additions & 16 deletions man/create_blank_plate.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion man/create_colkey_4diln_2ctrl_in_24.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion man/create_colkey_6_in_24.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion man/create_colkey_6diln_2ctrl_in_24.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion man/create_rowkey_4_in_16.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion man/create_rowkey_8_in_16_plain.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion man/display_plate.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 14 additions & 2 deletions man/label_plate_rowcol.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 32 additions & 0 deletions man/make_row_names_echo1536.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 32 additions & 0 deletions man/make_row_names_lc1536.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.