[Chimera-users] undisplay label in distance monitor
Bala subramanian
bala.biophysics at gmail.com
Mon Jun 4 23:54:54 PDT 2012
Friends,
> I have written a script to draw lines between atoms (using distance
> monitor). I dnt want the distance label to be displayed with the pseudo
> bond. Kindly write me the way to remove the label. My script is below.
>
> model=chimera.openModels.open('myavg.pdb')
> res=model[0].residues
> MAT=loadtxt('mymatrix',dtype=float)
> chimera.runCommand('focus')
> for x in range(len(res)):
> for y in range(len(res)):
> if x <> y :
> value=MAT[x,y]
>
> if 0.5 < value > 0.75:
>
> b=distanceMonitor.newPseudoBond(res[x].atomsMap['CA'][0],res[y].atomsMap['CA'][0])
> b.drawMode=1
> b.radius=0.05
> #b.label=None I tried keeping this value as None and empty
> string but it doesnt help.
> b.color=getColorByName('red')
>
> else: pass
>
> else: continue
>
>
Thanks,
Bala
--
C. Balasubramanian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://plato.cgl.ucsf.edu/pipermail/chimera-users/attachments/20120605/66cb8926/attachment.html>
More information about the Chimera-users
mailing list