View source: R/build_panel_sheet.R
build_panel_sheet | R Documentation |
A function to build an excel file with fill-in-the-blank cells for common information needed about a sample panel or ground-truth.
build_panel_sheet(
panel_name,
panel_description = NA_character_,
n_samples,
sample_groups = c("Positive", "Negative"),
sample_matrices,
analytes,
targets,
qualitative_outcomes = c("Positive", "Negative"),
qualitative_comparators,
semiquantitative_outcomes = NA_character_,
semiquantitative_comparators = NA_character_,
quantitative_units = NA_character_,
quantitative_comparators = NA_character_
)
panel_name |
The name of the panel being used for the evaluation. Must
be a character string (not a multi-level vector) and must not be |
panel_description |
An optional sentence or paragraph describing the
panel. Defaults to |
n_samples |
The number of samples in the panel. Must be numeric and greater than 0. If not provided as an integer, it will be converted into one. |
sample_groups |
The descriptive terms used to describe groups of
samples, provided as a character vector. Defaults to |
sample_matrices |
The matrix or matrices in which the samples are
provided. For example, for a serology assay panel, this could be
|
analytes |
The analyte or analytes for which the panel has been
characterized and truth has been established. For example, for a serology
assay panel, this could be |
targets |
The target or targets for which the panel has been
characterized and truth has been established. For example, for a SARS-CoV-2
assay, this could be |
qualitative_outcomes |
The valid qualitative outcomes associated with
the panel. Typically, this should be |
qualitative_comparators |
The qualitative comparator methods used to
determine qualitative ground truth for the panel. For example, if an
FDA-authorized PCR assay is used to determine ground truth–positive or
negative–for an evaluation of an antigen assay, this can be provided as
|
semiquantitative_outcomes |
The valid semi-quantitative outcomes
associated with the panel. Defaults to |
semiquantitative_comparators |
The semi-quantitative comparator methods
used to determine qualitative ground truth for the panel. Works similarly
to |
quantitative_units |
If quantitative outcomes have been established for
the panel, this is a character string describing the units of those
quantitative outcomes. Defaults to |
quantitative_comparators |
The quantitative comparator methods used to
determine qualitative ground truth for the panel. Works similarly to
|
Returns a list includint the panel_metadata
and
panel_table
.
build_panel_sheet(
panel_name = "Example Panel",
panel_description = NA_character_,
n_samples = 110L,
sample_groups = c("Positive", "Negative"),
sample_matrices = c("Serum", "Plasma"),
analytes = c("IgM", "IgG", "Pan-Ig"),
targets = c("Spike", "Nucleocapsid"),
qualitative_outcomes = c("Positive", "Negative"),
qualitative_comparators =
c(
"CDC Spike Antigen Assay and NCI Implementation of MS RBD Assay",
"Collected Pre-2020"
),
semiquantitative_outcomes = c("0", "100", "400", "1600", "6400"),
semiquantitative_comparators = "CDC Spike Antigen Assay",
quantitative_units = NA_character_,
quantitative_comparators = NA_character_
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.