Skip to content

Instantly share code, notes, and snippets.

@luisbebop
Created April 11, 2015 19:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save luisbebop/bac7b28f6991dfe8baa8 to your computer and use it in GitHub Desktop.
Save luisbebop/bac7b28f6991dfe8baa8 to your computer and use it in GitHub Desktop.
A early prototype describing how "program life" should be
require "openlife"
def add_pGLO(bacteria)
construct = GeneticCircuit.new(:assembly)
construct.add_selection_gene(:AmpR)
construct.add_promoter(:very_strong)
construct.add_rbs(:very_strong)
construct.add_gene(:GFP)
construct.add_terminator(:ter)
construct.replication_origin(:high)
bacteria.add_construct(construct)
end
bacteria = Bacteria.new(:e_coli)
add_pGLO(bacteria)
puts bacteria
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment