
Upload Wetlab Samples
UploadSpecimens.Rd
UploadSamples()
can be used to upload wetlab samples to the sampleDB database.
Usage
UploadSpecimens(
user_data,
storage_type_id = NULL,
database = Sys.getenv("SDB_PATH")
)
Arguments
- storage_type_id
A string specifying the type of samples that are being uploaded Options include:
micronix
,cryovial
anddbs
- upload_data
A dataframe of SampleDB Upload data.
Requiredupload_data
columns are:position
: the row and column of the sample in the storage housinglabel
: the sample's label or barcodestudy_subject_id
: the StudySubject id of for the subject in the cohort (ie study)study_short_code
: the code of the studyspecimen_type
: the sample typecollection_date
: (optional) the date the sample was first collected from the cohort StudySubject#' upload data example without collection_date
position label study_subject_id specimen_type study_short_code A0 xxx1 subject_1 PLASMA KAM06 A1 xxx2 subject_2 PLASMA KAM06 upload data example with collection_date
position label study_subject_id specimen_type study_short_code collection_data A0 xxx1 subject_1 PLASMA KAM06 2022-04-11 A1 xxx2 subject_2 PLASMA KAM06 2022-04-11 - container_name
A string specifying the name of the container the samples are in. Names must be unique within each sample type.
- container_barcode
A string specifying the barcode for the container the samples are in. Container barcodes are optional. Barcodes must be unique within each sample type.
- freezer_address
A list specifying the freezer address used to store samples.
Required items in the freezer_address list arename
,level_I
andlevel_II
. If the freezer_address type isminus eighty
thenlevel_I
andlevel_II
items specify the rack and position, respecively. If the freezer_address type isminus twenty
thenlevel_I
andlevel_II
items specify the shelf and basket, respecively.
Examples
if (FALSE) { # \dontrun{
UploadSamples(sample_type = "micronix",
upload_data = tibble(position = c("A0"),
label = c("XXX 1"),
study_subject_id = c("1"),
specimen_type = c("PLASMA"),
study_short_code = c("KAM06"),
collection_date = c("2021-04-10")),
container_name = "test_container",
freezer_address = list(name = "TBD",
level_I = "TBD",
level_II = "seve's working basket"))
} # }