No project description provided
Project description
UA-Lims-Tools
Provides 2 sets of tools for use with clarity and it's endpoints: ClarityTools and StepTools.
Motivation
To create a set of tools to assist in script writing for Clarity.
Features
Use ClarityTools as a means of interfacing with Clarity and it's endpoints.
-
get_samples will get all samples from a list of uris passed in.
-
get_arts_from_samples will get all artifact uris for the list of uris passed.
-
get_udfs will find all the udfs that should be attached to target.
-
set_reagent_label will set the reagent_label for all artifacts passed.
-
step_router will route a list of artifact_uris to a specified step.Use StepTools as a way of interacting with a Clarity step.*
-
get_artifacts will return all artifacts from the step.
-
get_process_data will retrieve the process data for the current step.
-
get_artifact_map creates a mapping of input artifacts to output artifacts.
-
set_artifact_udf sets the udfs of all analytes in the step.
-
get_artifacts_previous_step will map the current steps artifact uris to an ancestor artifact from the step passed to it.
-
get_assays will find the assays within the current protocol.## Code Example
python from ua_lims_tools import ua_lims_tools clarity_api = ua_lims_tools.ClarityApi() step_api = ua_lims_tools.StepTools()
Installation
bash pip install ua-lims-tools
Tests
bash pip install --update nose cd ./repo cd ./tests nosetests test_lims_tools.py
How to Use
Examples of syntax for each method
python clarity_api = ua_lims_tools.ClarityApi() samples = clarity_api.get_samples(uris)
- get_samples gets the samples from the passed in uris.
- Arguments: uris is a list of sample endpoints to get.
- Returns: a list of Sample dataclass objects with gotten sample's data.
Credits
sterns1 raflopjr RyanJohannesBland
LicenseMIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file ua_clarity_tools-1.1.9.tar.gz
.
File metadata
- Download URL: ua_clarity_tools-1.1.9.tar.gz
- Upload date:
- Size: 21.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.4 Linux/6.5.0-41-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 85c3587c0a517c80bd41a6b0b09ccd601d373768eaa6fbe5cb52b63084b16be3 |
|
MD5 | 4c1139f7c0d9d11aec0aca130351f8aa |
|
BLAKE2b-256 | 0b497eaf4a54eb8290b492c365ef80849400518b6f391fca5f5437e24006d5c7 |
File details
Details for the file ua_clarity_tools-1.1.9-py3-none-any.whl
.
File metadata
- Download URL: ua_clarity_tools-1.1.9-py3-none-any.whl
- Upload date:
- Size: 24.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.4 Linux/6.5.0-41-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 706f51b5bb7ab578287203ca1af56f43a6118f00015d13f19fae2e75c3fa8a0e |
|
MD5 | c913821faf3ec84c46be466085aa98b0 |
|
BLAKE2b-256 | 357053dfff9934d261c1fc85a93839c6e5c8649b4e4bd9fa30ca3e123b579245 |