Description Usage Arguments Value Author(s) Examples
View source: R/getExperimentContainersAndExperimentSamples.R
getExperimentContainersAndExperimentSamples
- Gets the experiment container, container type and experiment samples of an experiment.
1 2 3 | getExperimentContainersAndExperimentSamples(coreApi, experimentType,
experimentBarcode, includeExperimentSamples = TRUE,
fullMetadata = FALSE, ...)
|
experimentType |
entity type which has the attribute metadata |
experimentBarcode |
barcode of entity to get |
includeExperimentSamples |
get experiment sample associated to containers of an experiment, default FALSE |
fullMetadata |
get full metadata, default is FALSE |
... |
additional arguments passed to |
coreAPI |
coreApi object with valid jsessionid |
List of length 2, containing entity
and response
objects:
entity
list with experiment container, container type and experiment samples of an experiment.
response
is the entire HTTP response.
Natasha Mora natasha.mora@thermofisher.com
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ## Not run:
api <- coreAPI("PATH TO JSON FILE")
login <- authBasic(api)
experimentSampleLotNames <- getExperimentContainersAndExperimentSamples(login$coreApi, "experimentType", "EXP123", FALSE)
logOut(login$coreApi)
## End(Not run)
Specific data can be extracted, one example is to extract the container barcodes:
## Not run:
containerBarcode <- sapply(
result$entity[[contExpansion]],
#contExpansion is "REV_CONTAINER_EXPERIMENT_EXPERIMENT_CONTAINER" or "EXPERIMENT_CONTAINERS" depending on the PFS version.
FUN = function(x) {
x$Barcode})
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.