Pdb conect all: Difference between revisions

From PyMOLWiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
== Introduction ==
When saving a PDB file, the [[pdb_conect_all]] settings controls whether PyMOL writes CONECT records for all bonds, or only for HETATM bonds.
'''pdb_conect_all''' turns on/off the ability of PyMol to save the '''CONECT''' data in a PDB file.


=== Values ===
PDB files by convention do not contain bond information for standard polymer residues (ATOM records), because the connectivity is known for those.
*off turns the feature off
 
*on turns the feature on
If a PDB file contains at least one CONECT record for two atoms from ATOM records, then PyMOL will set '''pdb_conect_all=on''' as an object-level setting, to again write CONECT records for all bonds when saving that object to a PDB file.
 
== Values ==
 
* '''off''' turns the feature off, CONECT records are written for HETATM bonds only
* '''on''' turns the feature on, CONECT records are written for all bonds
 
== Example ==
 
The PDB file for [http://pdbe.org/1rx1 1rx1] contains 52 CONECT records (for the ligands).


=== Example ===
<source lang="python">
<source lang="python">
fetch 1rx1, async=0
set pdb_conect_all, on
set pdb_conect_all, on
save 1rx1_conect_all.pdb
</source>
</source>


=== PyMOL API ===
Now the file '''1rx1_conect_all.pdb''' contains 1316 CONECT records.
<source lang="python">
cmd.set('pdb_conect_all', 'on')
</source>


== See Also ==


* [[connect_mode]]
* [[pdb_ignore_conect]]
* [[pdb_conect_nodup]]


[[Category:Settings|Pdb_conect_all]]
[[Category:Settings|Pdb_conect_all]]

Latest revision as of 15:30, 9 November 2015

When saving a PDB file, the pdb_conect_all settings controls whether PyMOL writes CONECT records for all bonds, or only for HETATM bonds.

PDB files by convention do not contain bond information for standard polymer residues (ATOM records), because the connectivity is known for those.

If a PDB file contains at least one CONECT record for two atoms from ATOM records, then PyMOL will set pdb_conect_all=on as an object-level setting, to again write CONECT records for all bonds when saving that object to a PDB file.

Values

  • off turns the feature off, CONECT records are written for HETATM bonds only
  • on turns the feature on, CONECT records are written for all bonds

Example

The PDB file for 1rx1 contains 52 CONECT records (for the ligands).

fetch 1rx1, async=0
set pdb_conect_all, on
save 1rx1_conect_all.pdb

Now the file 1rx1_conect_all.pdb contains 1316 CONECT records.

See Also