@@ -10,7 +10,7 @@ labkey.experiment.createRun(config,
1010 materialInputs = NULL , materialOutputs = NULL )
1111}
1212\arguments {
13- \item {config }{a list of base experiment object properties }
13+ \item {config }{A list of base experiment object properties. Note that run domain properties must be added to a properties sub - object. }
1414 \item {dataInputs }{(optional ) a list of experiment data objects to be used as data inputs to the run }
1515 \item {dataOutputs }{(optional ) a list of experiment data objects to be used as data outputs to the run }
1616 \item {dataRows }{(optional ) a data frame containing data rows to be uploaded to the assay backed run }
@@ -42,8 +42,12 @@ m1 <- labkey.experiment.createMaterial(
4242 list (name = " 87444063.2604.626" ), sampleSetName = " Study Specimens" )
4343m2 <- labkey.experiment.createMaterial(
4444 list (name = " 87444063.2604.625" ), sampleSetName = " Study Specimens" )
45+
46+ # # create the run configuration and include optional run level properties
47+ runConfig <- list (name = " new run" , properties <- list (textField = " run prop 1" , floatField = 3.14 ))
48+
4549run <- labkey.experiment.createRun(
46- list ( name = " new run " ) , materialInputs = m1 , materialOutputs = m2 )
50+ runConfig , materialInputs = m1 , materialOutputs = m2 )
4751labkey.experiment.saveBatch(baseUrl = " http://labkey/" , folderPath = " home" ,
4852 protocolName = labkey.experiment.SAMPLE_DERIVATION_PROTOCOL , runList = run )
4953
0 commit comments