File: C0140iterate.log

package info (click to toggle)
pymol 1.7.2.1-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 42,668 kB
  • ctags: 25,775
  • sloc: ansic: 494,779; python: 75,446; cpp: 20,088; makefile: 351; sh: 172; csh: 21
file content (45 lines) | stat: -rw-r--r-- 969 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
PyMOL>load dat/tiny.pdb
 CmdLoad: "dat/tiny.pdb" loaded as "tiny".
PyMOL>names = []
PyMOL>iterate (all),names.append(name)
 Iterate: iterated over 37 atoms.
PyMOL>print names
['C', 'O', 'N', 'CA', 'C', 'O', 'CB', 'CG', 'CD', 'HA', '2HB', '3HB', '2HG', '3HG', '2HD', '3HD', 'N', 'CA', 'C', 'O', 'CB', 'OG', 'H', 'HA', '2HB', '3HB', 'HG', 'O', 'O01', 'C02', 'C03', 'C04', 'C05', 'H01', 'H04', 'H05', 'H06']
PyMOL>bfct = []
PyMOL>iterate (resn pro),bfct.append(b)
 Iterate: iterated over 14 atoms.
 50.7800
 48.1600
 43.9800
 44.4900
 38.5700
 54.5800
 46.5900
  0.0000
  0.0000
  0.0000
  0.0000
  0.0000
  0.0000
  0.0000
PyMOL>iterate (all),resn = 'NON'
 Iterate: iterated over 37 atoms.
PyMOL>iterate (all),b = b + 10
 Iterate: iterated over 37 atoms.
PyMOL>bfct = []
PyMOL>iterate (resn pro),bfct.append(b)
 Iterate: iterated over 14 atoms.
 50.7800
 48.1600
 43.9800
 44.4900
 38.5700
 54.5800
 46.5900
  0.0000
  0.0000
  0.0000
  0.0000
  0.0000
  0.0000
  0.0000