Skip to content

Commit eb8455e

Browse files
authored
Document importing run domain properties (#116)
1 parent 1516d89 commit eb8455e

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

Rlabkey/NEWS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
Changes in 3.4.3
22
o Bugfix to labkey.selectRows when group_concat based field has a NULL value. Related to github issue #112
3+
o Update documentation for experiment.createRun to include an example of inserting run level properties
34

45
Changes in 3.4.2
56
o Add showProgressBar parameter to labkey.webdav.downloadFolder and labkey.webdav.get

Rlabkey/man/labkey.experiment.createRun.Rd

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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")
4343
m2 <- 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+
4549
run <- labkey.experiment.createRun(
46-
list(name="new run"), materialInputs = m1, materialOutputs = m2)
50+
runConfig, materialInputs = m1, materialOutputs = m2)
4751
labkey.experiment.saveBatch(baseUrl="http://labkey/", folderPath="home",
4852
protocolName=labkey.experiment.SAMPLE_DERIVATION_PROTOCOL, runList=run)
4953

0 commit comments

Comments
 (0)