createSampleSubmission {readat} | R Documentation

## Create a SomaLogic Sample Submission Form

### Description

Creates a data table of contents for a SomaLogic sample submission form.

### Usage

    createSampleSubmission(slides, controls, comments, samples,
      sampleMatrix = c("EDTA-Plasma", "Sodium Citrate Plasma", "Serum"),
      siteId = "WCQ", studyName = "", studyId = "", runName = "Set A")

### Arguments

`slides` | A data frame of slide data, as imported by `readSlides`.
`controls` | A data frame of control data, as imported by `readControls`.
`comments` | A data frame of comment data, as imported by `readComments`.
`samples` | A data frame of sample data, as imported by `readSamples`.
`sampleMatrix` | A string giving the type of samples (plamsa or serum).
`siteId` | A string giving the SomaLogic ID of your site or institution.
`studyName` | A string giving your institution's name for the study.
`studyId` | A string giving the SomaLogic ID of the study
`runName` | A string naming the plate.

### Value

A data table with the 96 rows (one plate worth, with each row representing a sample). It contains the following columns:

SampleNumber

  One to ninety six.

SlideId

  From `slides.csv`.

Subarray

  Position in slide, from 1 to 8.

PlatePosition

  Position in plate, from A1 to H12

PercentDilution

  Always 40.

BarCode

  From `controls.csv`.

SampleNotes

  From `controls.csv`.

AssayNotes

  From `controls.csv`.

SampleId

  From `samples.csv`.

SampleMatrix

  `sampleMatrix` for samples; blank for controls.

SiteId

  `siteId` for samples; blank for controls.

StudyName

  `studyName` for samples; blank for controls.

TimePoint

  Currently blank.

SampleGroup

  Currently blank.

SampleDescription

  Currently blank.

StudyId

  `studyId` for samples; blank for controls.

RunName

  `runName` for samples; blank for controls.

### See Also

`writeSampleSubmissionForm` for usage examples.

[Package readat version 1.10.0 Index]