Skip to content

Create experiment.md #70

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions docs/experiment.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# LabKey Experiment API Overview

Load or save LabKey assay batches associated with existing assays/protocols.

An assay batch is a set of runs uploaded in a single session. Some properties in a design apply to entire batches of runs. This python API lets users retrieve batch data and save new batch data to their LabKey Server instance.

Learn more about assays here, https://www.labkey.org/Documentation/wiki-page.view?name=instrumentData.

### LabKey Experiment API Methods

To use the experiment API methods, you must first instantiate an APIWrapper object. See the APIWrapper docs page to learn more about how to properly do so, accounting for your LabKey Server's configuration details.

**load_batch**

List of method parameters:
- assay_id: The protocol id of the assay from which to load a batch.
- batch_id: The id of the batch being loaded.

**save_batch**

List of method parameters:
- assay_id: The assay protocol id.
- batch: The Batch to save.

**save_batches**

List of method parameters:
- assay_id: The assay protocol id.
- batches: The Batch(es) to save.

### Examples

For more information about how to use the experiment API in practice, please see the /samples/experiment_example.py file.