createSampleLot: createSampleLot - Creates a lot of a sample.

Description Usage Arguments Details Value Author(s) Examples

View source: R/createSampleLot.R

Description

createSampleLot Creates a new sample lot using the parent sample barcode

Usage

1
2
createSampleLot(coreApi, sampleType, sampleBarcode, body = NULL,
  fullMetadata = TRUE, ...)

Arguments

coreApi

coreApi object with valid jsessionid

sampleType

sample type to create the lot of

sampleBarcode

parent sample barcode

body

attributes as list of key-values pairs (optional)

fullMetadata

get full metadata, default is FALSE

...

additional arguments passed to apiPOST

Details

createSampleLot Creates a sample lot of a sample. Assumes the sample lot entity is in the form samplename_lot

Value

List of length 2, containing entity and response objects:

Author(s)

Craig Parman info@ngsanalytics.com

Natasha Mora natasha.mora@thermofisher.com

Adam Wheeler adam.wheeler@thermofisher.com

Scott Russell scott.russell@thermofisher.com

Examples

1
2
3
4
5
6
7
## Not run: 
api <- coreAPI("PATH TO JSON FILE")
login <- authBasic(api)
lot <- createSampleLot(login$coreApi, sampleType, sampleBarcode, )
logOut(login$coreApi)

## End(Not run)

AmundsenJunior/pfsrsdk documentation built on July 18, 2019, 8:10 p.m.