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...

    Molecule 101: Urea (1)

    U rea, this small molecule has been a lifesaver in my lab work, especially when dealing with stubborn western blots for transmembrane proteins. Urea, composed of two amide groups (Figure 1), i s one of the most widely used protein denaturants in protein biochemistry.   Fig 1. Chemical structure of Urea (Fun fact: if you’re looking for smoother hands, check out hand creams containing urea—it’s also a moisturizing agent!) One of urea’s favorite applications is in proteomics, where it is used to unfold and solubilize proteomes, making them susceptible to trypsin digestion. Its history in protein science goes back to Anfinsen’s famous experiment, which demonstrated that the code for protein folding reside in the amino acid sequence. Anfinsen unfolded ribonuclease using urea, and upon removing it, some proteins refolded, proving the “code” for folding is intrinsic to the sequence. Like many scientists, I’ve been using urea in my experiments for years without giving much thought to how i...