Description Usage Arguments Value See Also Examples
View source: R/read-sample-submision-input-files.R
Creates a data table of contents for a SomaLogic sample submission form.
1 2 3 4 5 6 7 8 9 10 11 | createSampleSubmission(
slides,
controls,
comments,
samples,
sampleMatrix = c("EDTA-Plasma", "Sodium Citrate Plasma", "Serum"),
siteId = "WCQ",
studyName = "",
studyId = "",
runName = "Set A"
)
|
slides |
A data frame of slide data, as imported by
|
controls |
A data frame of control data, as imported by
|
comments |
A data frame of comment data, as imported by
|
samples |
A data frame of sample data, as imported by
|
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. |
A data table with the 96 rows (one plate worth, with each row representing a sample). It contains the following columns:
One to ninety six.
From slides.csv
.
Position in slide, from 1 to 8.
Position in plate, from A1 to H12
Always 40.
From controls.csv
.
From controls.csv
.
From controls.csv
.
From samples.csv
.
sampleMatrix
for samples; blank for controls.
siteId
for samples; blank for controls.
studyName
for samples; blank for controls.
Currently blank.
Currently blank.
Currently blank.
studyId
for samples; blank for controls.
runName
for samples; blank for controls.
writeSampleSubmissionForm
for a more complete usage
example.
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"
)
str(submission)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.