Skip to main content

The Latch SDK

Project description

biocompute

Latch SDK

The Latch SDK is a framework to build and deploy bioinformatics workflows, and dynamically generate associated interfaces, with a handful of python functions.

It is built directly on Flyte for all the benefits that the Kubernetes-native workflow orchestration framework provides - task-level type-safety and containerization, independent task scheduling, and heterogeneous & highly scalable computing infrastructure.

Slack CommunityDocsInstallationQuickstartLatchLatch Verified

side-by-side

Workflows developed with the SDK feature:

  • Instant no-code interfaces for accessibility and publication
  • First class static typing
  • Containerization + versioning of every registered change
  • Reliable + scalable managed cloud infrastructure
  • Single line definition of arbitrary resource requirements (eg. CPU, GPU) for serverless execution

The Latch SDK is a framework to build workflows. A collection of existing and maintained workflows for common biological assays can be found at Latch Verified.

Quickstart

Getting your hands dirty with SDK is the best way to understand how it works. Run the following three commands in your terminal to register your first workflow to LatchBio.

Prerequisite: ensure that docker is present and running on your machine. (Install docker here if you don't already have it installed.)

First, install latch through pip .

$ python3 -m pip install latch

Then, create some boilerplate code for your new workflow.

$ latch init testworkflow

Finally register the boilerplate code to LatchBio.

$ latch register testworkflow

This might take 3-10 minutes depending on your network connection. (Subsequent registers will complete in seconds by reusing the image layers from this initial register.) The registration process will:

  • Build a docker image containing your workflow code
  • Serialize your code and register it with your LatchBio account
  • Push your docker image to a managed container registry

When registration has completed, you should be able to navigate here and see your new workflow in your account.

If you are having issues with registration or have general questions, please file an issue on github.


Installation

The SDK is distributed on pip. Install in a fresh virtual environment for best behavior.

Virtualenvwrapper is recommended.

python3 -m pip install latch

Note that a local installation of docker is required to register workflows.


Examples

Latch Verified features list of well-curated workflows developed by the Latch team.

We'll maintain a growing list of well documented examples developed by our community members here. Please open a pull request to feature your own:

Gene Editing

Phylogenetics

Single-cell Analysis

Protein Engineering

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

latch-2.75.0.tar.gz (235.0 kB view details)

Uploaded Source

Built Distribution

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

latch-2.75.0-py3-none-any.whl (313.8 kB view details)

Uploaded Python 3

File details

Details for the file latch-2.75.0.tar.gz.

File metadata

  • Download URL: latch-2.75.0.tar.gz
  • Upload date:
  • Size: 235.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.14 {"installer":{"name":"uv","version":"0.9.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for latch-2.75.0.tar.gz
Algorithm Hash digest
SHA256 f47b4e1a131f50983145e067c690dc40d535ab2293ec1415e95184a460945fe8
MD5 b3ba53a992c95f3ec3b09ec3abc5100a
BLAKE2b-256 8ffd573588a970dd387d3d1b77180c6049a98c4c58178d48e6ea51dd5c226bf5

See more details on using hashes here.

File details

Details for the file latch-2.75.0-py3-none-any.whl.

File metadata

  • Download URL: latch-2.75.0-py3-none-any.whl
  • Upload date:
  • Size: 313.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.14 {"installer":{"name":"uv","version":"0.9.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for latch-2.75.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ff7a8e9d82d351db9850ac6f8ca7819fbbf45923c6f600cdcba8369be09ff40d
MD5 5ff1faeda3ada87036011f05d0afce77
BLAKE2b-256 51779d53ac6e13f4c2edc7aec561e20b2d03c960fe6864aea0e5c3503c8ca1c6

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