Pylabrobot
Control lab robots, plate readers, and automation equipment with Python
✨ The solution you've been looking for
Laboratory automation toolkit for controlling liquid handlers, plate readers, pumps, heater shakers, incubators, centrifuges, and analytical equipment. Use this skill when automating laboratory workflows, programming liquid handling robots (Hamilton STAR, Opentrons OT-2, Tecan EVO), integrating lab equipment, managing deck layouts and resources (plates, tips, containers), reading plates, or creating reproducible laboratory protocols. Applicable for both simulated protocols and physical hardware control.
See It In Action
Interactive preview & real-world examples
AI Conversation Simulator
See how users interact with this skill
User Prompt
Create a protocol to transfer 100µL from a source plate to a destination plate using a Hamilton STAR robot with automatic tip pickup and disposal
Skill Processing
Analyzing request...
Agent Response
Complete Python code for liquid handler setup, resource assignment, and transfer protocol execution with proper error handling
Quick Start (3 Steps)
Get up and running in minutes
Install
claude-code skill install pylabrobot
claude-code skill install pylabrobotConfig
First Trigger
@pylabrobot helpCommands
| Command | Description | Required Args |
|---|---|---|
| @pylabrobot automated-liquid-transfer-protocol | Program liquid handling robots to perform multi-well transfers with tip management and volume tracking | None |
| @pylabrobot multi-device-laboratory-workflow | Integrate liquid handlers with plate readers and heater shakers for complete assay automation | None |
| @pylabrobot protocol-simulation-and-validation | Test laboratory protocols in simulation mode before running on physical hardware | None |
Typical Use Cases
Automated Liquid Transfer Protocol
Program liquid handling robots to perform multi-well transfers with tip management and volume tracking
Multi-Device Laboratory Workflow
Integrate liquid handlers with plate readers and heater shakers for complete assay automation
Protocol Simulation and Validation
Test laboratory protocols in simulation mode before running on physical hardware
Overview
PyLabRobot
Overview
PyLabRobot is a hardware-agnostic, pure Python Software Development Kit for automated and autonomous laboratories. Use this skill to control liquid handling robots, plate readers, pumps, heater shakers, incubators, centrifuges, and other laboratory automation equipment through a unified Python interface that works across platforms (Windows, macOS, Linux).
When to Use This Skill
Use this skill when:
- Programming liquid handling robots (Hamilton STAR/STARlet, Opentrons OT-2, Tecan EVO)
- Automating laboratory workflows involving pipetting, sample preparation, or analytical measurements
- Managing deck layouts and laboratory resources (plates, tips, containers, troughs)
- Integrating multiple lab devices (liquid handlers, plate readers, heater shakers, pumps)
- Creating reproducible laboratory protocols with state management
- Simulating protocols before running on physical hardware
- Reading plates using BMG CLARIOstar or other supported plate readers
- Controlling temperature, shaking, centrifugation, or other material handling operations
- Working with laboratory automation in Python
Core Capabilities
PyLabRobot provides comprehensive laboratory automation through six main capability areas, each detailed in the references/ directory:
1. Liquid Handling (references/liquid-handling.md)
Control liquid handling robots for aspirating, dispensing, and transferring liquids. Key operations include:
- Basic Operations: Aspirate, dispense, transfer liquids between wells
- Tip Management: Pick up, drop, and track pipette tips automatically
- Advanced Techniques: Multi-channel pipetting, serial dilutions, plate replication
- Volume Tracking: Automatic tracking of liquid volumes in wells
- Hardware Support: Hamilton STAR/STARlet, Opentrons OT-2, Tecan EVO, and others
2. Resource Management (references/resources.md)
Manage laboratory resources in a hierarchical system:
- Resource Types: Plates, tip racks, troughs, tubes, carriers, and custom labware
- Deck Layout: Assign resources to deck positions with coordinate systems
- State Management: Track tip presence, liquid volumes, and resource states
- Serialization: Save and load deck layouts and states from JSON files
- Resource Discovery: Access wells, tips, and containers through intuitive APIs
3. Hardware Backends (references/hardware-backends.md)
Connect to diverse laboratory equipment through backend abstraction:
- Liquid Handlers: Hamilton STAR (full support), Opentrons OT-2, Tecan EVO
- Simulation: ChatterboxBackend for protocol testing without hardware
- Platform Support: Works on Windows, macOS, Linux, and Raspberry Pi
- Backend Switching: Change robots by swapping backend without rewriting protocols
4. Analytical Equipment (references/analytical-equipment.md)
Integrate plate readers and analytical instruments:
- Plate Readers: BMG CLARIOstar for absorbance, luminescence, fluorescence
- Scales: Mettler Toledo integration for mass measurements
- Integration Patterns: Combine liquid handlers with analytical equipment
- Automated Workflows: Move plates between devices automatically
5. Material Handling (references/material-handling.md)
Control environmental and material handling equipment:
- Heater Shakers: Hamilton HeaterShaker, Inheco ThermoShake
- Incubators: Inheco and Thermo Fisher incubators with temperature control
- Centrifuges: Agilent VSpin with bucket positioning and spin control
- Pumps: Cole Parmer Masterflex for fluid pumping operations
- Temperature Control: Set and monitor temperatures during protocols
6. Visualization & Simulation (references/visualization.md)
Visualize and simulate laboratory protocols:
- Browser Visualizer: Real-time 3D visualization of deck state
- Simulation Mode: Test protocols without physical hardware
- State Tracking: Monitor tip presence and liquid volumes visually
- Deck Editor: Graphical tool for designing deck layouts
- Protocol Validation: Verify protocols before running on hardware
Quick Start
To get started with PyLabRobot, install the package and initialize a liquid handler:
1# Install PyLabRobot
2# uv pip install pylabrobot
3
4# Basic liquid handling setup
5from pylabrobot.liquid_handling import LiquidHandler
6from pylabrobot.liquid_handling.backends import STAR
7from pylabrobot.resources import STARLetDeck
8
9# Initialize liquid handler
10lh = LiquidHandler(backend=STAR(), deck=STARLetDeck())
11await lh.setup()
12
13# Basic operations
14await lh.pick_up_tips(tip_rack["A1:H1"])
15await lh.aspirate(plate["A1"], vols=100)
16await lh.dispense(plate["A2"], vols=100)
17await lh.drop_tips()
Working with References
This skill organizes detailed information across multiple reference files. Load the relevant reference when:
- Liquid Handling: Writing pipetting protocols, tip management, transfers
- Resources: Defining deck layouts, managing plates/tips, custom labware
- Hardware Backends: Connecting to specific robots, switching platforms
- Analytical Equipment: Integrating plate readers, scales, or analytical devices
- Material Handling: Using heater shakers, incubators, centrifuges, pumps
- Visualization: Simulating protocols, visualizing deck states
All reference files can be found in the references/ directory and contain comprehensive examples, API usage patterns, and best practices.
Best Practices
When creating laboratory automation protocols with PyLabRobot:
- Start with Simulation: Use ChatterboxBackend and the visualizer to test protocols before running on hardware
- Enable Tracking: Turn on tip tracking and volume tracking for accurate state management
- Resource Naming: Use clear, descriptive names for all resources (plates, tip racks, containers)
- State Serialization: Save deck layouts and states to JSON for reproducibility
- Error Handling: Implement proper async error handling for hardware operations
- Temperature Control: Set temperatures early as heating/cooling takes time
- Modular Protocols: Break complex workflows into reusable functions
- Documentation: Reference official docs at https://docs.pylabrobot.org for latest features
Common Workflows
Liquid Transfer Protocol
1# Setup
2lh = LiquidHandler(backend=STAR(), deck=STARLetDeck())
3await lh.setup()
4
5# Define resources
6tip_rack = TIP_CAR_480_A00(name="tip_rack")
7source_plate = Cos_96_DW_1mL(name="source")
8dest_plate = Cos_96_DW_1mL(name="dest")
9
10lh.deck.assign_child_resource(tip_rack, rails=1)
11lh.deck.assign_child_resource(source_plate, rails=10)
12lh.deck.assign_child_resource(dest_plate, rails=15)
13
14# Transfer protocol
15await lh.pick_up_tips(tip_rack["A1:H1"])
16await lh.transfer(source_plate["A1:H12"], dest_plate["A1:H12"], vols=100)
17await lh.drop_tips()
Plate Reading Workflow
1# Setup plate reader
2from pylabrobot.plate_reading import PlateReader
3from pylabrobot.plate_reading.clario_star_backend import CLARIOstarBackend
4
5pr = PlateReader(name="CLARIOstar", backend=CLARIOstarBackend())
6await pr.setup()
7
8# Set temperature and read
9await pr.set_temperature(37)
10await pr.open()
11# (manually or robotically load plate)
12await pr.close()
13data = await pr.read_absorbance(wavelength=450)
Additional Resources
- Official Documentation: https://docs.pylabrobot.org
- GitHub Repository: https://github.com/PyLabRobot/pylabrobot
- Community Forum: https://discuss.pylabrobot.org
- PyPI Package: https://pypi.org/project/PyLabRobot/
For detailed usage of specific capabilities, refer to the corresponding reference file in the references/ directory.
What Users Are Saying
Real feedback from the community
Environment Matrix
Dependencies
Framework Support
Context Window
Security & Privacy
Information
- Author
- davila7
- Updated
- 2026-01-30
- Category
- scripting
Related Skills
Pylabrobot
Laboratory automation toolkit for controlling liquid handlers, plate readers, pumps, heater shakers, …
View Details →Async Python Patterns
Master Python asyncio, concurrent programming, and async/await patterns for high-performance …
View Details →Async Python Patterns
Master Python asyncio, concurrent programming, and async/await patterns for high-performance …
View Details →