This is a read-only mirror of pymolwiki.org

Difference between revisions of "Pdb use ter records"

From PyMOL Wiki
Jump to navigation Jump to search
(create page about parameter pdb_use_ter_records)
 
Line 5: Line 5:
 
get pdb_use_ter_records  # return current value of pdb_use_ter_records
 
get pdb_use_ter_records  # return current value of pdb_use_ter_records
 
set pdb_use_ter_records, 0
 
set pdb_use_ter_records, 0
 +
 +
import cmd
 +
cmd.set(name='pdb_use_ter_records', value=0) # same effect
 
</source>
 
</source>

Revision as of 11:09, 22 October 2012

When a molecule (e.g. a protein molecule) is saved in pdb format by PyMOL, a line of TER record is inserted wherever the residue id is not sequential. To suppress this feature, set pdb_use_ter_records value to 0 before saving protein molecules.

Example

get pdb_use_ter_records  # return current value of pdb_use_ter_records
set pdb_use_ter_records, 0

import cmd
cmd.set(name='pdb_use_ter_records', value=0) # same effect