writeSampleSubmissionForm: Write a SomaLogic sample submission form

Description Usage Arguments Value See Also Examples

View source: R/read-sample-submision-input-files.R

Description

Writes a SomaLogic sample submission form to Excel XLSX file.

Usage

1
writeSampleSubmissionForm(submission, outdir = ".")

Arguments

submission

A data.frame created by createSampleSubmission.

outdir

A string denoting the path to the directory where the output file should be written.

Value

The name of the XLSX file is invisibly returned, but the function is mostly called for the side effect of writing this file.

See Also

readSlides and createSampleSubmission

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
# 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())

graumannlab/readat documentation built on May 16, 2020, 10:15 p.m.