What is the Latch SDK?
What is the Latch SDK?¶
It takes months to build infrastructure with the compute, storage, and user-friendly interface necessary to run bioinformatics pipelines at scale.
The Latch SDK is an open-source toolchain to define serverless bioinformatics workflows with plain python and deploy associated no-code interfaces using single command.
Bioinformatics workflows developed with the SDK automatically receive:
Instant no-code interfaces for accessibility and publication
First class static typing
Containerization and versioning of every registered change
Reliable and scalable managed cloud infrastructure
Singe line definition of arbitrary resource requirements (eg. CPU, GPU) for serverless execution
Problems Latch SDK solves¶
Building the infrastructure to share bioinformatics pipelines at scale is time-consuming. Bioinformatics is dominated by terabytes of data and workflows that require multiple CPUs or GPUs, making sharing and scaling pipelines difficult. It often take engineering teams 6-12 months to build a robust cloud infrastructure necessary to support the ingestion and execution of bioinformatics pipelines.
Lacth SDK allows developers to upload workflows to the full-featured Latch Platform with ease. The platform is built with Kubernetes, ensuring containerization, portability, and scalability are available out-of-the-box. Behind the scene, Latch takes advantage of AWS spot instances, offering ultra-fast runtimes with extremely low cloud costs for teams.
Bioinformaticians need to create intuitive user interfaces for biologists. As a lab or R&D team grows, the number of biologists per bioinformatician increases to a point where it’s no longer sustainable for the bioinformatician to manage requests and run pipelines manually from her computer. Automating pipeline runs returns valuable time to the bioinformatician to focus on writing analyses to generate scientific insights.
With Latch SDK, developers can write the description to their workflow and customize input parameters using plain Markdown. Latch automatically parses the written text and Python function headers to compile a type-safe UI.
Specifying arbitrary cloud compute and storage resources for bioinformatics pipelines is difficult. With Latch SDK, there are several Python task decorators that easily allow you to define the resources available at runtime. The framework starts at 2 CPUs and 4 GBs of memory and goes all the way to 31 CPUs, 120 GBs of memory and 1 GPU (24 GBs of VRAM, 9,216 CUDA cores) to easily handle all processing needs.
Bioinformatics tools face the challenges of irreproducibility. The lack of proper versioning and dependencies management results in a long tail of poorly documented and unusable bioinformatics software tools.
Latch SDK containerizes and versions the code in the background each time a workflow is registered to the Latch platform. Container images are constructed by parsing user-defined Dockerfiles. Similarly, versions are user-specified as any unique plaintext string. This behavior is a strict requirement of the toolchain and gives us remarkable guarantees with respect to code reproducibility, portability and scalability.
What the Latch SDK is not¶
A self-hosted solution: Currently, you cannot write your workflow using Latch SDK and host it in your own AWS instance or an HPC. The infrastructure serving bioinformatics pipelines is fully managed by Latch. This allows us to rapidly iterate to bring on high quality features, give cost and performance guarantees, and ensure that security is offered out-of-the-box.
To get started with Latch SDK, view the following resources:
Quickstart is the fastest way to get started with the Latch SDK.
Concepts describes all important Latch SDK concepts.
Examples show full examples of using Latch SDK for various bioinformatics pipelines.
Troubleshooting provides a guide to debug common errors.
Reference contains detailed API and design documents.
Subcommands contains details about the Latch command line toolchain to register workflows and upload data to Latch.
Join the SDK open-source community on Slack!