@@ -7,7 +7,7 @@ Create an experiment run object.
77\usage {
88labkey.experiment.createRun(config ,
99 dataInputs = NULL , dataOutputs = NULL , dataRows = NULL ,
10- materialInputs = NULL , materialOutputs = NULL , plateMetadata = NULL )
10+ materialInputs = NULL , materialOutputs = NULL )
1111}
1212\arguments {
1313 \item {config }{a list of base experiment object properties }
@@ -16,7 +16,6 @@ labkey.experiment.createRun(config,
1616 \item {dataRows }{(optional ) a data frame containing data rows to be uploaded to the assay backed run }
1717 \item {materialInputs }{(optional ) a list of experiment material objects to be used as material inputs to the run }
1818 \item {materialOutputs }{(optional ) a list of experiment material objects to be used as material outputs to the run }
19- \item {plateMetadata }{(optional ) if the assay supports plate templates , the plate metadata object to upload }
2019}
2120\details {
2221Create an experiment run object which can be used in the saveBatch function .
@@ -48,36 +47,6 @@ run <- labkey.experiment.createRun(
4847labkey.experiment.saveBatch(baseUrl = " http://labkey/" , folderPath = " home" ,
4948 protocolName = labkey.experiment.SAMPLE_DERIVATION_PROTOCOL , runList = run )
5049
51- # # import an assay run which includes plate metadata
52-
53- df <- data.frame (participantId = c(1 : 3 ), visitId = c(10 ,20 ,30 ), welllocation = c(" A1" , " D11" , " F12" ))
54-
55- runConfig <- fromJSON(txt = ' {"assayId": 310,
56- "name" : "api imported run with plate metadata",
57- "properties" : {
58- "PlateTemplate" : "urn:lsid:labkey.com:PlateTemplate.Folder-6:d8bbec7d-34cd-1038-bd67-b3bd"
59- }
60- }' )
61-
62- plateMetadata <- fromJSON(txt = ' {
63- "control" : {
64- "positive" : {"dilution": 0.005},
65- "negative" : {"dilution": 1.0}
66- },
67- "sample" : {
68- "SA01" : {"dilution": 1.0, "ID" : 111, "Barcode" : "BC_111", "Concentration" : 0.0125},
69- "SA02" : {"dilution": 2.0, "ID" : 222, "Barcode" : "BC_222"},
70- "SA03" : {"dilution": 3.0, "ID" : 333, "Barcode" : "BC_333"},
71- "SA04" : {"dilution": 4.0, "ID" : 444, "Barcode" : "BC_444"}
72- }
73- }' )
74-
75- run <- labkey.experiment.createRun(runConfig , dataRows = df , plateMetadata = plateMetadata )
76- labkey.experiment.saveBatch(
77- baseUrl = " http://labkey/" , folderPath = " home" ,
78- assayConfig = list (assayId = 310 ), runList = run
79- )
80-
8150}
8251}
8352\keyword {IO }
0 commit comments