View source: R/build_evaluation_sheet.R
build_evaluation_sheet | R Documentation |
A function to build an excel file with fill-in-the-blank cells for common information needed about a sample evaluation.
build_evaluation_sheet(
evaluation_name,
evaluation_description = NA_character_,
developer = NA_character_,
assay = NA_character_,
lot_numbers = NA_character_,
panel_data = NA,
panel_data_filepath = NA_character_,
analytes,
targets,
qualitative_outcomes = c("Positive", "Negative"),
semiquantitative_outcomes = NA_character_,
quantitative_units = NA_character_,
randomize = TRUE,
blind = TRUE
)
evaluation_name |
The name of the evaluation being used for the
evaluation. Must be a character string (not a multi-level vector) and must
not be |
evaluation_description |
An optional sentence or paragraph describing
the evaluation. Defaults to |
developer |
The developer of the assay under evaluation. A character
string. Defaults to |
assay |
The name of the assay under evaluation. A character string.
Defaults to |
lot_numbers |
All lot numbers associated with the evaluation. May be a
character vector of length 1 or more. Defaults to |
panel_data |
The output of |
panel_data_filepath |
An excel file generated by
|
analytes |
The analyte or analytes to be included in the evaluation.
This must be provided with at least one level (not |
targets |
The target or targets for which the assay under evaluation.
For example, for a SARS-CoV-2 assay, this could be |
qualitative_outcomes |
The valid qualitative outcomes associated with
the evaluation. Typically, this should be |
semiquantitative_outcomes |
The valid semi-quantitative outcomes
associated with the evaluation. Defaults to |
quantitative_units |
If quantitative outcomes have been established for
the evaluation, this is a character string describing the units of those
quantitative results. Defaults to |
randomize |
Defaults to |
blind |
Defaults to |
Returns a list including the evaluation_metadata
,
sample_blinding
, and evaluation_table
build_evaluation_sheet(
evaluation_name = "Example Evaluation",
evaluation_description = NA_character_,
developer = "ACME Test Corp.",
assay = "Test Assay #1",
lot_numbers = "20200101",
panel_data =
build_panel_sheet(
panel_name = "Example Panel",
panel_description = "An example panel.",
n_samples = 5L,
sample_groups = "Samples",
sample_matrices = "Serum",
analytes = c("IgM", "IgG", "Pan-Ig"),
targets = "Spike",
qualitative_outcomes = c("Positive", "Negative"),
qualitative_comparators = "Authorized NAAT and CDC Assay",
semiquantitative_outcomes = NA,
semiquantitative_comparators = NA,
quantitative_units = NA,
quantitative_comparators = NA
),
analytes = c("IgM", "IgG", "Pan-Ig"),
targets = "Spike",
qualitative_outcomes = c("Positive", "Negative"),
semiquantitative_outcomes = NA_character_,
quantitative_units = NA_character_,
randomize = FALSE,
blind = FALSE
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.