get_sample_locations: Get the well locations of the samples used in the RT-QuIC...

View source: R/get_sample_locations.R

get_sample_locationsR Documentation

Get the well locations of the samples used in the RT-QuIC run.

Description

Returns a dataframe with the sample IDs and well IDs used in the plate.

Usage

get_sample_locations(
  file,
  tab_name = "Sample IDs",
  dilution_bool = FALSE,
  dilution_fun = function(x) 1 * x,
  sep = "\n",
  plate = 96
)

Arguments

file

Excel file exported from MARS

tab_name

Table name containing the sample IDs.

dilution_bool

Logical; is there a table containing dilution factors? If so, will add a newline and the log of the dilution factor to the ID column.

dilution_fun

A function for transforming the dilution factor.

sep

A string used to separate the sample ID and dilution factor.

plate

Integer; either 96 or 384 to denote microplate type.

Value

A vector containing well IDs.

Examples

file <- system.file(
  "extdata/input_files",
  file = "test.xlsx",
  package = "quicR"
)
get_sample_locations(file)


quicR documentation built on April 3, 2025, 11:20 p.m.