The examples/ directory contains Benchling App samples written by Benchling.
This project contains example snippets of code that can be utilized in a Custom Code step of the Benchling Automation Designer with Benchling Analysis.
These examples demonstrate how to extend Benchling's native capabilities using Python scripts within the Automation Designer context. They cover common use cases such as data visualization, file handling, and complex data transformations.
The code examples included in this directory cover the following functionalities:
-
Visualizations: Create custom charts, graphs, and annotations (e.g., chromatograms).
-
File Parsing: Logic to read and parse various file formats.
-
File Creation: Generate new files, such as instruction lists for laboratory instruments.
-
Data Transformation: Apply transformations, merge/join datasets, and perform complex calculations on data.
See requirements.txt for the specific library versions used in these examples.
Demonstrates creating a custom UI in Benchling allowing users to search for molecules from PubChem and sync them into Benchling.
Uses Cloudflare-tunnel and Docker to receive webhooks in a local development environment running Flask with the Benchling SDK.
Code Includes:
- Benchling App Authentication via Client Credentials
- Custom UI via App Canvas
- User Feedback via App Status
- Data Mapping via App Config
- Receiving and verifying Webhooks
- Creating molecule custom entities

