Skip to main content

API that interacts with Illumina's Clarity LIMS software at a higher level than requests.

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ua_clarity_tools-1.0.0.tar.gz (10.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ua_clarity_tools-1.0.0-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

Details for the file ua_clarity_tools-1.0.0.tar.gz.

File metadata

  • Download URL: ua_clarity_tools-1.0.0.tar.gz
  • Upload date:
  • Size: 10.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for ua_clarity_tools-1.0.0.tar.gz
Algorithm Hash digest
SHA256 8782a0cc77884b9cffd6abc91c3d52a3492d27a3d7fb92cd88f4a1e2d0502e7a
MD5 e844468783735126daa03fe01378ee6e
BLAKE2b-256 877393e35cafe39881e6986cde04165a012067434d393aea391ee976704fd263

See more details on using hashes here.

File details

Details for the file ua_clarity_tools-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: ua_clarity_tools-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 11.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for ua_clarity_tools-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5df43fb341656d1d563954014c94ca59c6c147a2e712beedff6275c856a09d0f
MD5 9a05f9ab4a0065e1f6c1aef25bd214e5
BLAKE2b-256 60916b7922b36f5bb49bdb3f66d3aad7dfb8222719d683ba408662c435b108f5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page