'SampleId': 'Monkey 2', 'TimePoint': '2008/11/02 14:00:01', 'DoubleData': 3.1, 'HiddenData': 'fozzy bear' }, { 'SampleId': 'Monkey 3', 'TimePoint': '2008/11/02 14:00:01', 'DoubleData': 1.5, 'HiddenData': 'jimbo' }] runTest.properties['RunFieldName'] = 'Run Field Value' # Generate the Batch object(s) batch = Batch() batch.runs = [runTest] batch.name = 'python batch' batch.properties['PropertyName'] = 'Property Value' # Execute save api saved_batch = save_batch(server_context, assay_id, batch) ################### # Load an Assay batch ################### batch_id = saved_batch.row_id # provide one from your server run_group = load_batch(server_context, assay_id, batch_id) if run_group is not None: print("Batch Id: " + str(run_group.id)) print("Created By: " + run_group.created_by)
"DoubleData": 3.1, "HiddenData": "fozzy bear", }, { "SampleId": "Monkey 3", "TimePoint": "2008/11/02 14:00:01", "DoubleData": 1.5, "HiddenData": "jimbo", }, ] run_test.properties["RunFieldName"] = "Run Field Value" # Generate the Batch object(s) batch = Batch() batch.runs = [run_test] batch.name = "python batch" batch.properties["PropertyName"] = "Property Value" # Execute save api saved_batch = api.experiment.save_batch(assay_id, batch) ################### # Load an Assay batch ################### batch_id = saved_batch.row_id # provide one from your server run_group = api.experiment.load_batch(assay_id, batch_id) if run_group is not None: print("Batch Id: " + str(run_group.id)) print("Created By: " + run_group.created_by)
}, { "SampleId": "Monkey 2", "TimePoint": "2008/11/02 14:00:01", "DoubleData": 3.1, "HiddenData": "fozzy bear" }, { "SampleId": "Monkey 3", "TimePoint": "2008/11/02 14:00:01", "DoubleData": 1.5, "HiddenData": "jimbo" } ] # Generate the Run object(s) runTest = Run() runTest.name = 'python upload' runTest.data_rows = dataRows runTest.properties['RunFieldName'] = 'Run Field Value' # Generate the Batch object(s) batch = Batch() batch.runs = [runTest] batch.name = 'python batch' batch.properties['PropertyName'] = 'Property Value' # Execute save api RESULT = save_batch(server_context, assay_id, batch) # RESULT = save_batches(server_context, assay_id, [batch1, batch2]) print(RESULT.id)