getExperimentSamplesWithSampleLots: getExperimentSamplesWithSampleLots - Gets sample lots...

Description Usage Arguments Value Author(s) Examples

View source: R/getExperimentSamplesWithSampleLots.R

Description

getExperimentSamplesWithSampleLots - Gets sample lots assigned to experiment samples of an experiment.

Usage

1
2
getExperimentSamplesWithSampleLots(coreApi, experimentType,
  experimentBarcode, fullMetadata = FALSE, ...)

Arguments

experimentType

entity type which has the attribute metadata

experimentBarcode

barcode of entity to get

fullMetadata

get full metadata, default is FALSE

...

additional arguments passed to apiGET

coreAPI

coreApi object with valid jsessionid

Value

List of length 2, containing entity and response objects:

Author(s)

Natasha Mora natasha.mora@thermofisher.com

Edgardo Gutierrez edgardo.gutierrez@thermofisher.com

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
## Not run: 
api <- coreAPI("PATH TO JSON FILE")
login <- authBasic(api)
experimentSampleLotNames <- getExperimentSamplesWithSampleLots(login$coreApi, "experimentType", "EXP123")
logOut(login$coreApi)

## End(Not run)
Specific data can be extracted, one example is to extract the sample lot names:
## Not run: 
sampleLotName <- sapply(
    response$content[[expansion]],
    FUN = function(x) {
        x$ENTITY$Name})

## End(Not run)

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