
Last chance! 50% off unlimited learning
Sale ends in
Create an experiment material object.
labkey.experiment.createMaterial(config, sampleSetId = NULL, sampleSetName = NULL)
Returns the object representation of the experiment material object.
a list of base experiment object properties
(optional) a integer specifying the sample set row ID
(optional) a string specifying the name of the sample set
Karl Lum
Create an experiment material object which can be used as either input or output materials for an experiment run.
labkey.experiment.saveBatch
,
labkey.experiment.createData
,
labkey.experiment.createRun
# \donttest{
library(Rlabkey)
## create a non-assay backed run with samples as material inputs and outputs
m1 <- labkey.experiment.createMaterial(
list(name = "87444063.2604.626"), sampleSetName = "Study Specimens")
m2 <- labkey.experiment.createMaterial(
list(name = "87444063.2604.625"), sampleSetName = "Study Specimens")
run <- labkey.experiment.createRun(
list(name="new run"), materialInputs = m1, materialOutputs = m2)
labkey.experiment.saveBatch(baseUrl="http://labkey/", folderPath="home",
protocolName=labkey.experiment.SAMPLE_DERIVATION_PROTOCOL, runList=run)
# }
Run the code above in your browser using DataLab