cmd.select('glu1', 'name oe2 and resn glu within %s of (name nz and resn lys)'%(6.5))
cmd.select('glu2', 'name oe1 and resn glu within %s of (name nz and resn lys)'%(7))
cmd.select('glu3', 'name cd and resn glu within %s of (name nz and resn lys)'%(7))
cmd.select('glu4', 'name oe1 and resn glu within %s of (name ce and resn lys)'%(6))
cmd.select('glu5', 'name cd and resn glu within %s of (name ce and resn lys)'%(6))
cmd.select('glu6', 'name oe1 and resn glu within %s of (name cd and resn lys)'%(5.5))
cmd.select('glu7', 'name oe2 and resn glu within %s of (name ce and resn lys)'%(6))
cmd.select('glu8', 'name oe1 and resn glu within %s of (name cg and resn lys)'%(5.5))
cmd.select('glu9', 'name oe1 and resn glu within %s of (name od1 and resn asp)'%(10))
cmd.select('glu10', 'name oe2 and resn glu within %s of (name od1 and resn asp)'%(10))
cmd.select('glu', 'byres glu1 and byres glu2 and byres glu3 and byres glu4 and byres glu5 and byres glu6 and byres glu7 and byres glu8 and byres glu9 and byres glu10')
cmd.select('lys1', 'name nz and resn lys within %s of (name oe2 and resn glu)'%(6.5))
cmd.select('lys2', 'name nz and resn lys within %s of (name oe1 and resn glu)'%(7))
cmd.select('lys3', 'name nz and resn lys within %s of (name cd and glu)'%(7))
cmd.select('lys4', 'name ce and resn lys within %s of (name oe1 and resn glu)'%(6))
cmd.select('lys5', 'name ce and resn lys within %s of (name cd and resn glu)'%(6))
cmd.select('lys6', 'name cd and resn lys within %s of (name oe1 and resn glu)'%(5.5))
cmd.select('lys7', 'name ce and resn lys within %s of (name oe2 and resn glu)'%(6))
cmd.select('lys8', 'name cg and resn lys within %s of (name oe1 and resn glu)'%(5.5))
cmd.select('lys9', 'name nz and resn lys within %s of (name od1 and resn asp)'%(6))
cmd.select('lys10', 'name nz and resn lys within %s of (name od2 and resn asp)'%(6))
cmd.select('lys11', 'name ce and resn lys within %s of (name od1 and resn asp)'%(6))
cmd.select('lys12', 'name ce and resn lys within %s of (name od2 and resn asp)'%(6.5))
cmd.select('lys13', 'name cd and resn lys within %s of (name od1 and resn asp)'%(6))
cmd.select('lys14', 'name cd and resn lys within %s of (name od2 and resn asp)'%(7))
cmd.select('lys', 'byres lys1 and byres lys2 and byres lys3 and byres lys4 and byres lys5 and byres lys6 and byres lys7 and byres lys8 and byres lys9 and byres lys10 and byres lys11 and byres lys12 and byres lys13 and byres lys14')
cmd.select('asp1', 'name od1 and resn asp within %s of (name oe1 and glu)'%(10))
cmd.select('asp2', 'name od1 and resn asp within %s of (name oe2 and glu)'%(10))
cmd.select('asp3', 'name od1 and resn asp within %s of (name nz and lys)'%(6))
cmd.select('asp4', 'name od2 and resn asp within %s of (name nz and lys)'%(6))
cmd.select('asp5', 'name od1 and resn asp within %s of (name ce and lys)'%(6))
cmd.select('asp6', 'name od2 and resn asp within %s of (name ce and resn lys)'%(6.5))
cmd.select('asp7', 'name od1 and resn asp within %s of (name cd and resn lys)'%(6))
cmd.select('asp8', 'name od2 and resn asp within %s of (name cd and resn lys)'%(7))
cmd.select('asp9', 'name cg and resn asp within %s of (name cd and resn lys)'%(7))
cmd.select('asp', 'byres asp1 and byres asp2 and byres asp3 and byres asp4 and byres asp5 and byres asp6 and byres asp7 and byres asp8 and byres asp9')
cmd.select('Motif', 'lys(asp(glu))')
cmd.deselect()
cmd.delete('glu1')
cmd.delete('glu2')
cmd.delete('glu3')
cmd.delete('glu4')
cmd.delete('glu5')
cmd.delete('glu6')
cmd.delete('glu7')
cmd.delete('glu8')
cmd.delete('glu9')
cmd.delete('glu10')
cmd.delete('glu')
cmd.delete('asp1')
cmd.delete('asp2')
cmd.delete('asp3')
cmd.delete('asp4')
cmd.delete('asp5')
cmd.delete('asp6')
cmd.delete('asp7')
cmd.delete('asp8')
cmd.delete('asp9')
cmd.delete('asp')
cmd.delete('lys1')
cmd.delete('lys2')
cmd.delete('lys3')
cmd.delete('lys4')
cmd.delete('lys5')
cmd.delete('lys6')
cmd.delete('lys7')
cmd.delete('lys8')
cmd.delete('lys9')
cmd.delete('lys10')
cmd.delete('lys11')
cmd.delete('lys12')
cmd.delete('lys13')
cmd.delete('lys')
cmd.hide("everything","all")
cmd.show("cartoon", "all")
cmd.set("cartoon_transparency","0.5", "all")
cmd.show("sticks","Motif")
cmd.color("grey","all")
cmd.color("oxygen","(elem O and Motif)")
cmd.color("nitrogen","(elem N and Motif)")
cmd.color("sulfur","(elem S and Motif)")
cmd.color("hydrogen","(elem H and Motif)")
cmd.color("white","(elem C and Motif)")
cmd.deselect()
cmd.orient("Motif")

