A general purpose library for interacting with Clarity LIMS
Project description
- Used in numerous labs around the world, the S4-Clarity library provides an easy-to-use integration with the BaseSpace Clarity LIMS API. The package includes:
Classes representing familiar Clarity API entities that provide read-write access to most properties.
Helper methods that simplify common operations.
Base classes for scripts that integrate with Clarity: EPPs, DSAs, and shell scripts.
Utilities that help with Clarity-related tasks, such as managing config slices, or automating the completion of a Step.
The S4-Clarity library lets developers interact with the Clarity API in fewer lines of code. With HTTP and XML boilerplate out of the way, you’ll have your integration built in no time at all.
from s4.clarity.scripts import TriggeredStepEPP
LibraryVolume = 2.0
MolWeightBasePair = 660 * 1e6 # micrograms / mol
AssumedBasePairs = 400.0
TargetMolarity = 4.0
Overage = 4
class Normalization (TriggeredStepEPP):
def on_record_details_enter(self):
self.prefetch(self.PREFETCH_INPUTS, self.PREFETCH_OUTPUTS)
for iomap in self.step.details.iomaps:
library_concentration = iomap.input["Concentration"]
library_molarity = library_concentration / (AssumedBasePairs * MolWeightBasePair)
iomap.output["Concentration"] = library_concentration
iomap.output["Molarity (nM)"] = library_molarity
iomap.output["Library Vol (uL)"] = LibraryVolume
iomap.output["Tris HCl (uL)"] = LibraryVolume * (library_molarity / TargetMolarity - 1)
self.lims.artifacts.batch_update(self.step.details.outputs)
self.step.details.commit()
if __name__ == "__main__":
Normalization.main()
Documentation
To build the documentation, run make html from the docs directory.
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 s4-clarity-1.0.0.tar.gz
.
File metadata
- Download URL: s4-clarity-1.0.0.tar.gz
- Upload date:
- Size: 64.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/2.7.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c503db8bb772a3e0fee8b64d203fe81f892b8abcd38ffd9eda17e02e14e6fbb8 |
|
MD5 | 1f35f2905073f3638367a5f94024d295 |
|
BLAKE2b-256 | caa615811ae2d49be55805eb68370bb82b9f6311d7ca6a782586d73aa2c4b160 |
File details
Details for the file s4_clarity-1.0.0-py2.py3-none-any.whl
.
File metadata
- Download URL: s4_clarity-1.0.0-py2.py3-none-any.whl
- Upload date:
- Size: 89.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/2.7.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1614f912db7b25405378b6c5813693d1a7db1781d77030370e234890b508800 |
|
MD5 | 86b0edaf3924265c7af45618b1d3b17d |
|
BLAKE2b-256 | 40e7f35bdd4be47093ab1f121ccd10def5d947e6336cbe0aa4f9dceb6ca64527 |