Skip to content

Instantly share code, notes, and snippets.

@maxhodak
Created December 13, 2011 20:23
Show Gist options
  • Save maxhodak/1473719 to your computer and use it in GitHub Desktop.
Save maxhodak/1473719 to your computer and use it in GitHub Desktop.
Protocol.new :title => "bacterial transformation" do
plasmid = Storage.get "demo:isolated-plasmid"
vial = Container.new(:centrifuge_15ml)
.add(5.uL, :from => plasmid)
.cool(277.kelvin, :for => 10.minutes)
tube = Container.new(:culture_tube).add(0.5.mL, Chemical.find(:media, :lysogeny_media))
plates = [Plate.new(:media => :lysogeny_media),
Plate.new(:media => :lysogeny_media)]
plates.map { |plate|
plate.add 2.mL, Chemical.find(:reagent, :kanamycin)
}
iptg = plates[0].add 25.uL, Chemical.find(:reagent, :IPTG)
control = plates[1]
plates.map { |plate|
plate.incubate 2.hours, 298.kelvin, 5, 5
}
tube.add :all, :from => vial
tube.incubate 2.hours, 37.degC, 5, 5
plates.each_with_index { |plate, i|
plate.add 50.uL, :from => tube
plate.incubate 12.hours, 298.kelvin, 5, 5
Storage.put "demo:competent-plate-#{i}", plate, :common
}
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment