Skip to main content

Primer : Understanding PDB vs CIF files - what's inside your pymol file?


Whenever you visualize a protein structure using PyMOL or Chimera, have you ever wondered what’s really inside the file? Nowadays, I am getting into informatics, and hope that this series helps beginners like me to get into it.


Today, let's explore the PDB and CIF file formats, and their differences,

Let's start by going to RCSB PDB and searching for 5GZA, a kinase enzyme that interacts with mannose sugar. Click the download tab and select PDB and CIF file formats.


Exploring the PDB File Format

To visualize the contents of a PDB file, open it in VS Code (or any text editor—though I personally dislike Notepad!).

PDB files contain structured information with well-defined column formats. The first few sections include:

  • HEADER, TITLE, COMPND → Metadata about the protein
  • SOURCE, AUTHOR → Experimental details
  • ATOM & HETATM → Atomic coordinates and ligands
  • CONECT → Connectivity (bonds between atoms)

The most useful part is the ATOM section, which contains 3D atomic coordinates (x, y, z), making it crucial for molecular docking and, MD simulations. 




Now let's scroll down and what we have:

Each column in the ATOM section represents an atom with key information:

Atom number, Atom type, Residue Name (Amino acid name), Chain Identifier, Residue number), X, Y, Z coordinate, occupancy, and B-Factor.


Cystein, the first residue of this protein, for example, 

  • N (Nitrogen) – The N-terminal atom of the first residue.
  • CA (C-alpha) – The backbone carbon atom of the protein.
  • C (Carbonyl Carbon) – Forms the amide bond with the next residue.
  • CB (C-beta) – The first side-chain carbon of cysteine.
  • SG (Sulfur Gamma) – The sulfur atom involved in disulfide bonds.
  • Occupancy is generally 1 - it shows the conformer (rotamer information). If is below <1, this amino acid has alternative conformer. 

    B-factor is another super useful value. Higher B-factor may indicate flexible regions (so enzymologists are interested in analyzing B-factor of loop region adjacent to the substrate). B-factor above 30 is generally regarded as significant motion or disorder. Also, we can visualize B-factor using pymol!

    Where is Ligand Information Stored?

    Ligands (e.g., small molecules, sugars, drugs) are stored in the HETATM section (Please scroll down further!), similar to amino acid residues but treated separately.

     As similar as amino acid residues, Ligand atoms also have unique residue numbers within Chain. 

    Lastly, the CONECT section defines bond connectivity, but PDB files do not store bond types (single/double bonds)! This explains why PyMOL sometimes misrepresents ligand bond structure.


    Where Do We Find Bond Information? Check CIF !

    Since PDB files lack bond type information, we need to check the CIF file. Search for _chem_comp_bond . This section contains bond types (single/double/triple) between atoms.


    Unlike PDBCIF files follow a loop structure where each "_tag" corresponds to a column. We can easily map the columns with this _tag. 

    In the bond type section, we can see which atoms are involved in the bond,  type of the bond (sing for single, doub for double) and aromaticity and streochemistry.  CIF file is useful when you run the alphafold3 with user defined CCD format. 

    Next topic will be about.... 

    RDkit and Ligand Alignment in Pymol.



    Comments

    Popular posts from this blog

    Weekly Reading: Five tasks that still challenge protein designers (Nature 635, 246-248 (2024))

    Original article is here (  Five protein-design questions that still challenge AI ) This article brings an insightful snapshot for anyone interested in protein design, expecially non-expert (such as me!) consideing starting their own mini-project in this field. As an enzymologist, one of the striking aspects of the article is the emphasis on protein conformation . We often overlook the fact that proteins and enzymes are not static - they are indeed dynamic molecules. The structures we see are merely snapshots of one moment in time, but they does not necessarily capture the full extent of the protein's motion.  If protein dynamics are a 4-dimensional problem, perhaps designers are only starting to scratch the surface, seeking to understand this complexity in a simplified form. (I mean how many enzyme people run MD by themselves?) This raises a question: can we truly extract or capture protein dynamics just from sequence information alone? This seems like a huge challenge, expec...

    Weekly Reading: Regulated N-glycosylation controls chaperone function and receptor trafficking (Ma etal.,Science386,667–672(2024))

    The original article is here :   Regulated N-glycosylation controls chaperone function and receptor trafficking | Science One of my past research projects involved oligosaccharyltransferase (OST). Personally, I do not like working with transmembrane enzymes, like OST, but  one thing that's always intrigued me about OST or other post-translational modification synthetic enzymes (e.g. O-GlcNAc transferase), is their promiscuity—how do these enzymes work on such a wide variety of substrates? I mean, this paper is not about enzymology of OST, but the central question the paper ask in the introduction section is  compelling: Can the activity of OST be modulated by other factors?  Researchers figured out the N-terminal region of HSP90B1 (ER chaperone) plays a regulatory role in modulating OST activity. Essentially, they propose that this region can act as a pseudo-substrate , inhibiting the glycosylation activity of OST. Very cool!  How did evolution shape H...