| writeSampleSubmissionForm {readat} | R Documentation |
Writes a SomaLogic sample submission form to Excel XLSX file.
writeSampleSubmissionForm(submission, outdir = ".")
submission |
A |
outdir |
A string denoting the path to the directory where the output file should be written. |
The name of the XLSX file is invisibly returned, but the function is mostly called for the side effect of writing this file.
readSlides and createSampleSubmission
# Import the input files
withr::with_dir(
system.file("extdata", package = "readat"),
{
slides <- readSlides()
controls <- readControls()
comments <- readComments()
samples <- readSamples()
}
)
# Create the sample submission form and write to Excel spreadsheet
submission <- createSampleSubmission(
slides, controls, comments, samples,
studyName = "Taheri01", studyId = "WCQ-16-002"
)
writeSampleSubmissionForm(submission, tempdir())