cmd.select('lys1', 'name nz and resn lys within %s of (name oh and resn tyr)' %(5))
cmd.select('lys2', 'name nz and resn lys within %s of (name cz and resn tyr)' %(5.5))
cmd.select('lys3', 'name nz and resn lys within %s of (name ce1 and resn tyr)' %(6.5))
cmd.select('lys4', 'name nz and resn lys within %s of (name ce2 and resn tyr)' %(6.5))
cmd.select('lys5', 'name ce and resn lys within %s of (name oh and resn tyr)' %(5))
cmd.select('lys6', 'name ce and resn lys within %s of (name cz and resn tyr)' %(6))
cmd.select('lys7', 'name nz and resn lys within %s of (name og and resn ser)' %(6))
cmd.select('lys8', 'name nz and resn lys within %s of (name cb and resn ser)' %(5.2))
cmd.select('lys9', 'name cb and resn lys within %s of (name cb and resn ser)' %(9.2))
cmd.select('lys10', 'name ce and resn lys within %s of (name oe1 and resn glu)' %(11))
cmd.select('lys11', 'name nz and resn lys within %s of (name oe1 and resn glu)' %(11))
cmd.select('lys12', 'name nz and resn lys within %s of (name oe2 and resn glu)' %(12.5))
cmd.select('lys13', 'name ce and resn lys within %s of (name cd and resn glu)' %(11))
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')
cmd.select('tyr1', 'name oh and resn tyr within %s of (name nz and resn lys)' %(5))
cmd.select('tyr2', 'name cz and resn tyr within %s of (name nz and resn lys)' %(5.5))
cmd.select('tyr3', 'name ce1 and resn tyr within %s of (name nz and lys)' %(6.5))
cmd.select('tyr4', 'name ce2 and resn tyr within %s of (name nz and resn lys)' %(6.5))
cmd.select('tyr5', 'name oh and resn tyr within %s of (name ce and resn lys)' %(5))
cmd.select('tyr6', 'name cz and resn tyr within %s of (name ce and resn lys)' %(6))
cmd.select('tyr7', 'name oh and resn tyr within %s of (name og and resn ser)' %(6))
cmd.select('tyr8', 'name cz and resn tyr within %s of (name og and resn ser)' %(6.5))
cmd.select('tyr9', 'name oh and resn tyr within %s of (name cb and resn ser)' %(6))
cmd.select('tyr10', 'name oh and resn tyr within %s of (name oe1 and resn glu)' %(10))
cmd.select('tyr11', 'name oh and resn tyr within %s of (name oe2 and resn glu)' %(10))
cmd.select('tyr12', 'name oh and resn tyr within %s of (name cd and resn glu)' %(10))
cmd.select('tyr', 'byres tyr1 and byres tyr2 and byres tyr3 and byres tyr4 and byres tyr5 and byres tyr6 and byres tyr7 and byres tyr8 and byres tyr9 and byres tyr10 and byres tyr11 and byres tyr12')
cmd.select('ser1', 'name cb and resn ser within %s of (name nz and lys)' %(6))
cmd.select('ser2', 'name og and resn ser within %s of (name nz and resn lys)' %(6))
cmd.select('ser3', 'name cb and resn ser within %s of (name cb and resn lys)' %(8.2))
cmd.select('ser4', 'name og and resn ser within %s of (name cz and resn tyr)' %(6.5))
cmd.select('ser5', 'name cb and resn ser within %s of (name oh and resn tyr)' %(6.5))
cmd.select('ser6', 'name og and resn ser within %s of (name oh and tyr)' %(6))
cmd.select('ser7', 'name og and resn ser within %s of (name oe1 and resn glu)' %(12))
cmd.select('ser8', 'name og and resn ser within %s of (name oe2 and resn glu)' %(12))
cmd.select('ser9', 'name cb and resn ser within %s of (name oe1 and resn glu)' %(11))
cmd.select('ser10', 'name cb and resn ser within %s of (name oe2 and resn glu)' %(12.5))
cmd.select('ser11', 'name og and resn ser within %s of (name cd and resn glu)' %(12.5))
cmd.select('ser12', 'name cb and resn ser within %s of (name cd and resn glu)' %(11.5))
cmd.select('ser', 'byres ser1 and byres ser2 and byres ser3 and byres ser4 and byres ser5 and byres ser6 and byres ser7 and byres ser8 and byres ser9 and byres ser10 and byres ser11 and byres ser12')
cmd.select('glu1', 'name oe1 and resn glu within %s of (name ce and lys)' %(8.5))
cmd.select('glu2', 'name oe1 and resn glu within %s of (name nz and resn lys)' %(9.5))
cmd.select('glu3', 'name oe2 and resn glu within %s of (name nz and resn lys)' %(11.2))
cmd.select('glu4', 'name cd and resn glu within %s of (name ce and resn lys)' %(10.6))
cmd.select('glu5', 'name oe1 and resn glu within %s of (name oh and resn tyr)' %(8.7))
cmd.select('glu6', 'name oe2 and resn glu within %s of (name oh and resn tyr)' %(9.7))
cmd.select('glu7', 'name cd and resn glu within %s of (name oh and resn tyr)' %(9.6))
cmd.select('glu8', 'name oe1 and resn glu within %s of (name og and ser)' %(10.5))
cmd.select('glu9', 'name oe2 and resn glu within %s of (name og and ser)' %(10.5))
cmd.select('glu10', 'name oe1 and resn glu within %s of (name cb and resn ser)' %(10))
cmd.select('glu11', 'name oe2 and resn glu within %s of (name cb and resn ser)' %(11.8))
cmd.select('glu12', 'name cd and resn glu within %s of (name og and resn ser)' %(11.8))
cmd.select('glu13', 'name cd and resn glu within %s of (name cb and resn ser)' %(11))
cmd.select('glu14', 'name oe1 and resn glu within %s of (name cg and resn tyr)' %(7.4))
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 and byres glu11 and byres glu12 and byres glu13 and byres glu14')     
cmd.select('Motif', 'ser(tyr(glu(lys)))')
cmd.deselect
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.delete('tyr1')
cmd.delete('tyr2')
cmd.delete('tyr3')
cmd.delete('tyr4')
cmd.delete('tyr5')
cmd.delete('tyr6')
cmd.delete('tyr7')
cmd.delete('tyr2')
cmd.delete('tyr8')
cmd.delete('tyr9')
cmd.delete('tyr10')
cmd.delete('tyr11')
cmd.delete('tyr12')
cmd.delete('tyr')
cmd.delete('ser1')
cmd.delete('ser2')
cmd.delete('ser3')
cmd.delete('ser4')
cmd.delete('ser5')
cmd.delete('ser6')
cmd.delete('ser7')
cmd.delete('ser8')
cmd.delete('ser9')
cmd.delete('ser10')
cmd.delete('ser11')
cmd.delete('ser12')
cmd.delete('ser')
cmd.delete('glu')
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('glu11')
cmd.delete('glu12')
cmd.delete('glu13')
cmd.delete('glu14')
cmd.deselect()
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")
