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:
# Install PyLabRobot
# pip install pylabrobot
# Basic liquid handling setup
from pylabrobot.liquid_handling import LiquidHandler
from pylabrobot.liquid_handling.backends import STAR
from pylabrobot.resources import STARLetDeck
# Initialize liquid handler
lh = LiquidHandler(backend=STAR(), deck=STARLetDeck())
await lh.setup()
# Basic operations
await lh.pick_up_tips(tip_rack["A1:H1"])
await lh.aspirate(plate["A1"], vols=100)
await lh.dispense(plate["A2"], vols=100)
await 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
# Setup
lh = LiquidHandler(backend=STAR(), deck=STARLetDeck())
await lh.setup()
# Define resources
tip_rack = TIP_CAR_480_A00(name="tip_rack")
source_plate = Cos_96_DW_1mL(name="source")
dest_plate = Cos_96_DW_1mL(name="dest")
lh.deck.assign_child_resource(tip_rack, rails=1)
lh.deck.assign_child_resource(source_plate, rails=10)
lh.deck.assign_child_resource(dest_plate, rails=15)
# Transfer protocol
await lh.pick_up_tips(tip_rack["A1:H1"])
await lh.transfer(source_plate["A1:H12"], dest_plate["A1:H12"], vols=100)
await lh.drop_tips()
Plate Reading Workflow
# Setup plate reader
from pylabrobot.plate_reading import PlateReader
from pylabrobot.plate_reading.clario_star_backend import CLARIOstarBackend
pr = PlateReader(name="CLARIOstar", backend=CLARIOstarBackend())
await pr.setup()
# Set temperature and read
await pr.set_temperature(37)
await pr.open()
# (manually or robotically load plate)
await pr.close()
data = await pr.read_absorbance(wavelength=450)
Additional Resources
For detailed usage of specific capabilities, refer to the corresponding reference file in the references/ directory.
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: pylabrobot3description: 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. Use when this capability is needed.4---56# PyLabRobot78## Overview910PyLabRobot 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).1112## When to Use This Skill1314Use this skill when:15- Programming liquid handling robots (Hamilton STAR/STARlet, Opentrons OT-2, Tecan EVO)16- Automating laboratory workflows involving pipetting, sample preparation, or analytical measurements17- Managing deck layouts and laboratory resources (plates, tips, containers, troughs)18- Integrating multiple lab devices (liquid handlers, plate readers, heater shakers, pumps)19- Creating reproducible laboratory protocols with state management20- Simulating protocols before running on physical hardware21- Reading plates using BMG CLARIOstar or other supported plate readers22- Controlling temperature, shaking, centrifugation, or other material handling operations23- Working with laboratory automation in Python2425## Core Capabilities2627PyLabRobot provides comprehensive laboratory automation through six main capability areas, each detailed in the references/ directory:2829### 1. Liquid Handling (`references/liquid-handling.md`)3031Control liquid handling robots for aspirating, dispensing, and transferring liquids. Key operations include:32- **Basic Operations**: Aspirate, dispense, transfer liquids between wells33- **Tip Management**: Pick up, drop, and track pipette tips automatically34- **Advanced Techniques**: Multi-channel pipetting, serial dilutions, plate replication35- **Volume Tracking**: Automatic tracking of liquid volumes in wells36- **Hardware Support**: Hamilton STAR/STARlet, Opentrons OT-2, Tecan EVO, and others3738### 2. Resource Management (`references/resources.md`)3940Manage laboratory resources in a hierarchical system:41- **Resource Types**: Plates, tip racks, troughs, tubes, carriers, and custom labware42- **Deck Layout**: Assign resources to deck positions with coordinate systems43- **State Management**: Track tip presence, liquid volumes, and resource states44- **Serialization**: Save and load deck layouts and states from JSON files45- **Resource Discovery**: Access wells, tips, and containers through intuitive APIs4647### 3. Hardware Backends (`references/hardware-backends.md`)4849Connect to diverse laboratory equipment through backend abstraction:50- **Liquid Handlers**: Hamilton STAR (full support), Opentrons OT-2, Tecan EVO51- **Simulation**: ChatterboxBackend for protocol testing without hardware52- **Platform Support**: Works on Windows, macOS, Linux, and Raspberry Pi53- **Backend Switching**: Change robots by swapping backend without rewriting protocols5455### 4. Analytical Equipment (`references/analytical-equipment.md`)5657Integrate plate readers and analytical instruments:58- **Plate Readers**: BMG CLARIOstar for absorbance, luminescence, fluorescence59- **Scales**: Mettler Toledo integration for mass measurements60- **Integration Patterns**: Combine liquid handlers with analytical equipment61- **Automated Workflows**: Move plates between devices automatically6263### 5. Material Handling (`references/material-handling.md`)6465Control environmental and material handling equipment:66- **Heater Shakers**: Hamilton HeaterShaker, Inheco ThermoShake67- **Incubators**: Inheco and Thermo Fisher incubators with temperature control68- **Centrifuges**: Agilent VSpin with bucket positioning and spin control69- **Pumps**: Cole Parmer Masterflex for fluid pumping operations70- **Temperature Control**: Set and monitor temperatures during protocols7172### 6. Visualization & Simulation (`references/visualization.md`)7374Visualize and simulate laboratory protocols:75- **Browser Visualizer**: Real-time 3D visualization of deck state76- **Simulation Mode**: Test protocols without physical hardware77- **State Tracking**: Monitor tip presence and liquid volumes visually78- **Deck Editor**: Graphical tool for designing deck layouts79- **Protocol Validation**: Verify protocols before running on hardware8081## Quick Start8283To get started with PyLabRobot, install the package and initialize a liquid handler:8485```python86# Install PyLabRobot87# pip install pylabrobot8889# Basic liquid handling setup90from pylabrobot.liquid_handling import LiquidHandler91from pylabrobot.liquid_handling.backends import STAR92from pylabrobot.resources import STARLetDeck9394# Initialize liquid handler95lh = LiquidHandler(backend=STAR(), deck=STARLetDeck())96await lh.setup()9798# Basic operations99await lh.pick_up_tips(tip_rack["A1:H1"])100await lh.aspirate(plate["A1"], vols=100)101await lh.dispense(plate["A2"], vols=100)102await lh.drop_tips()103```104105## Working with References106107This skill organizes detailed information across multiple reference files. Load the relevant reference when:108- **Liquid Handling**: Writing pipetting protocols, tip management, transfers109- **Resources**: Defining deck layouts, managing plates/tips, custom labware110- **Hardware Backends**: Connecting to specific robots, switching platforms111- **Analytical Equipment**: Integrating plate readers, scales, or analytical devices112- **Material Handling**: Using heater shakers, incubators, centrifuges, pumps113- **Visualization**: Simulating protocols, visualizing deck states114115All reference files can be found in the `references/` directory and contain comprehensive examples, API usage patterns, and best practices.116117## Best Practices118119When creating laboratory automation protocols with PyLabRobot:1201211. **Start with Simulation**: Use ChatterboxBackend and the visualizer to test protocols before running on hardware1222. **Enable Tracking**: Turn on tip tracking and volume tracking for accurate state management1233. **Resource Naming**: Use clear, descriptive names for all resources (plates, tip racks, containers)1244. **State Serialization**: Save deck layouts and states to JSON for reproducibility1255. **Error Handling**: Implement proper async error handling for hardware operations1266. **Temperature Control**: Set temperatures early as heating/cooling takes time1277. **Modular Protocols**: Break complex workflows into reusable functions1288. **Documentation**: Reference official docs at https://docs.pylabrobot.org for latest features129130## Common Workflows131132### Liquid Transfer Protocol133134```python135# Setup136lh = LiquidHandler(backend=STAR(), deck=STARLetDeck())137await lh.setup()138139# Define resources140tip_rack = TIP_CAR_480_A00(name="tip_rack")141source_plate = Cos_96_DW_1mL(name="source")142dest_plate = Cos_96_DW_1mL(name="dest")143144lh.deck.assign_child_resource(tip_rack, rails=1)145lh.deck.assign_child_resource(source_plate, rails=10)146lh.deck.assign_child_resource(dest_plate, rails=15)147148# Transfer protocol149await lh.pick_up_tips(tip_rack["A1:H1"])150await lh.transfer(source_plate["A1:H12"], dest_plate["A1:H12"], vols=100)151await lh.drop_tips()152```153154### Plate Reading Workflow155156```python157# Setup plate reader158from pylabrobot.plate_reading import PlateReader159from pylabrobot.plate_reading.clario_star_backend import CLARIOstarBackend160161pr = PlateReader(name="CLARIOstar", backend=CLARIOstarBackend())162await pr.setup()163164# Set temperature and read165await pr.set_temperature(37)166await pr.open()167# (manually or robotically load plate)168await pr.close()169data = await pr.read_absorbance(wavelength=450)170```171172## Additional Resources173174- **Official Documentation**: https://docs.pylabrobot.org175- **GitHub Repository**: https://github.com/PyLabRobot/pylabrobot176- **Community Forum**: https://discuss.pylabrobot.org177- **PyPI Package**: https://pypi.org/project/PyLabRobot/178179For detailed usage of specific capabilities, refer to the corresponding reference file in the `references/` directory.180181---182> Converted and distributed by [TomeVault](https://tomevault.io/claim/lifangda) — claim your Tome and manage your conversions.183<!-- tomevault:4.0:skill_md:2026-04-11 -->