Write Plot Notebooks from Workflows
Use Artifacts API to create a new Plot notebook downstream of a workflow
With the Plots Artifacts API, your Latch workflow can generate a new notebook from a standard Plot template and automatically populate it with parameters and outputs from earlier steps in your pipeline.
For example, in the video below, a DESeq2 workflow execution outputs a Plots Artifact on Latch Data with all the notebook parameters filled out. This eliminates the need for manual parameter entry by scientists, thereby minimizing rooms for errors.
Every Plot notebook is backed by a dedicated computer. To save costs, this new computer is only spun up when the end user double-clicks on the Artifact on Latch Data for the first time.
Usage
First, define the PlotsArtifact
dataclass:
Next, dump the dataclass into a JSON file and upload it to Latch Data.
Was this page helpful?