File: mutate01.pml

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 (35 lines) | stat: -rw-r--r-- 688 bytes parent folder | download | duplicates (6)
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
# This example shows how to make a single mutation using a script
# note that no conformational analysis is done to insure
# that the resulting pose is at all reasonable.

# load a structure

load $PYMOL_PATH/test/dat/pept.pdb

# activate the mutagensis wizard

wizard mutagenesis

# set target residue type

cmd.get_wizard().set_mode("ILE")

# pick a residue

cmd.edit("pept///10/ca")

# notify the wizard about the picked residue
# (this will generate the mutation object)

cmd.get_wizard().do_pick(0)

# apply the mutation
# (this will delete the old residue, 
# substitue the new one, and form
# the peptide bonds) 

cmd.get_wizard().apply()

# now close the wizard

cmd.set_wizard()