You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cmd=BIN+'/pymol -c '+file+" -d 'print(len([x for x in cmd.get_model().atom]))'"
62
+
iff.endswith('.pdb'):
63
+
cmd=BIN+'/pymol -c '+f+" -d 'print(len([x for x in cmd.get_model().atom]))'"
60
64
out, err=exe(cmd)
61
65
# ugly way to get n of atoms
62
66
"""
@@ -69,19 +73,27 @@ def exe(cmd):
69
73
#if len(open(file).readlines()) < args.detailed:
70
74
sh=''
71
75
ifn<300: # atoms
72
-
sh=' show lines; '#sticks; ' # lines;
73
-
os.system(BIN+'/pymol -c '+file+" -d 'set ray_opaque_background, off;"+rainbow+" show cartoon; "+sh+"; rr; save "+f+"; quit'") # ray 300,300,renderer=0 ray 800, 800;
76
+
#sh = ' show lines; '#sticks; ' # lines;
77
+
sh=' show mesh; '#set ray_opaque_background, off;
78
+
# bg_color black;
79
+
os.system(BIN+'/pymol -c '+f+" -d 'set ray_opaque_background, on; hide cartoon;"+sh+"; save "+fcover+"; quit'") #ray 1000,1000; # ,renderer=0 #os.system(BIN + '/pymol -c ' + f + " -d 'set ray_opaque_background, off;" + rainbow + " show cartoon; " + sh + "; rr; save " + fcover + "; quit'")
74
80
else: # pse mode for pse do nothing! # set ray_opaque_background, off;
0 commit comments