R/svaEnmix_steps.R
mergeSvaTargetsEnmix.RdMerge the surrogate variable matrix back into the phenotype table while
preserving the original row order of targets.
mergeSvaTargetsEnmix(
targets,
sva,
SampleID = "Sample_Name",
verbose = FALSE,
logs = FALSE,
log_dir = NULL,
log_file = "log_mergeSvaTargetsEnmix.txt"
)Phenotype data frame aligned with the samples in sva.
Numeric matrix of surrogate variables with samples in rows.
Character. Name of the phenotype sample identifier column.
Logical. If TRUE, emit progress messages with message().
Logical. If TRUE, write the same messages to a log file.
Character or NULL. Directory used for the log file when
logs = TRUE.
Character. File name used when logs = TRUE.
A phenotype data frame with the surrogate variables appended.