Normalize nanostring gene expression using randomly chosen samples for the reference-based approach for batch adjustment.
normalize_random(x, ref, group_df, n = 1, strata = NULL, seed = NULL)
normalized gene expression
target data
reference data
grouping data used to select random reference samples
number of random reference samples to select for normalization
character string of grouping variable found in group_df
for
stratified random sampling. If strata
has k
levels, then a total of n * k
random samples are selected. The default uses no grouping variable and thus
only simple random sampling is performed.
random seed for reproducibility
Derek Chiu
The number of randomly chosen numbers can be selected, and optionally a
strata
can be specified such that n
reference samples are selected from
each level (like a stratified bootstrap). In relation to the reference
method, the random samples removed from ref
form R1
, the random samples
removed from x
form R2
, and the remaining samples from x
form Y
. See
refMethod()
for details.
In subsequent analyses, we refer to a method using normalize_random(n)
as
the "Random n" method.