Skip to content

Instantly share code, notes, and snippets.

@bmiles
Created September 24, 2015 18:46
Show Gist options
  • Save bmiles/7c15436666e89cb6c194 to your computer and use it in GitHub Desktop.
Save bmiles/7c15436666e89cb6c194 to your computer and use it in GitHub Desktop.
This code uses Autoprotocol-Python to generate Autoprotocol JSON for a simple bacterial incubation and OD600 measurement.
from autoprotocol.protocol import Protocol
p = Protocol()
# Set up the containers being referenced
ctrl_bacteria = p.ref("DH5a", id="3209xifd029", cont_type="micro-1.5", discard=True)
growth_plate = p.ref("growth_plate", id="3208kfhf394", cont_type="96-flat", storage="cold_4")
# Dispense, transfer, cover the plate, incubate, measure OD600
p.dispense(growth_plate, "lb-broth-noAB", [{"column": "0", "volume": "150:microliter"}])
p.transfer(ctrl_bacteria.well(0), growth_plate.wells_from(0,4, columnwise=True), "2:microliter")
p.cover(growth_plate, lid="low_evaporation")
p.incubate(growth_plate, "warm_37", "12:hour", shaking=True)
p.absorbance(growth_plate, growth_plate.wells_from(0,8, columnwise=True), "600:nanometer", "OD600")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment