Bioinformatics ReviewBioinformatics Review
Notification Show More
Font ResizerAa
  •  Home
  • Docking
  • MD Simulation
  • Tools
  • More Topics
    • Softwares
    • Sequence Analysis
    • Algorithms
    • Bioinformatics Programming
    • Bioinformatics Research Updates
    • Drug Discovery
    • Phylogenetics
    • Structural Bioinformatics
    • Editorials
    • Tips & Tricks
    • Bioinformatics News
    • Featured
    • Genomics
    • Bioinformatics Infographics
  • Community
    • BiR-Research Group
    • Community Q&A
    • Ask a question
    • Join Telegram Channel
    • Join Facebook Group
    • Join Reddit Group
    • Subscription Options
    • Become a Patron
    • Write for us
  • About Us
    • About BiR
    • BiR Scope
    • The Team
    • Guidelines for Research Collaboration
    • Feedback
    • Contact Us
    • Recent @ BiR
  • Subscription
  • Account
    • Visit Dashboard
    • Login
Font ResizerAa
Bioinformatics ReviewBioinformatics Review
Search
Have an existing account? Sign In
Follow US
Molecular dynamics

How to generate PSF file for MD simulation using NAMD & VMD?

Dr. Muniba Faiza
Last updated: February 27, 2025 9:40 am
Dr. Muniba Faiza
Share
4 Min Read
SHARE

Protein structure file (PSF) contains topology information and is required for molecular dynamics (MD) simulation in NAMD [1] and VMD [2]. In this tutorial, we will generate a PSF file of a simple protein using NAMD and VMD.

Contents
Generating a PSF file of protein1. Loading the Protein file in VMD2. Creating the protein file without Hydrogens3.1. Generating PSF file3.1.1. Using Automatic PSF builder3.1.2. Using manual methodReferencesFurther Reading

There are two methods of generating a PSF file in VMD:

  1. Manual method
  2. Automatic PSF builder

We will go through both these methods in detail. We are using a simple insulin protein (PDB ID: 2wfu) for this tutorial. Before proceeding further, we need to create a protein file without hydrogens. This protein file will then be used to generate its PSF file.

Generating a PSF file of protein

1. Loading the Protein file in VMD

  • Open VMD by typing $ vmd in a terminal.
  • In the main VMD window, go to File –> New Molecule. Molecule File Browser window will open.
  • Browse for the 2wfu.pdb –> Click OK –> Click Load.

2. Creating the protein file without Hydrogens

To generate a PSF file, we need the protein without hydrogens. Let’s create a new PDB file without hydrogens. To do this,

  • In the main VMD window, go to Extensions –> Tk Console. A new console window will appear.
  • Type the following commands in the console:
    % set ins [atomselect top protein]
    % $ins writepdb insp.pdb
  • It will create a new file, namely, insp.pdb.

3.1. Generating PSF file

You can either generate a PSF file automatically using VMD or use the following commands to do the same. I would recommend the latter option because you will know what will happen at each step which will help you to catch errors easily. I use the manual method because the automatic builder gives errors at later stages including the file format error such as “FATAL ERROR: ABNORMAL EOF FOUND – buffer=*END*”. However, I will tell you the automatic method as well.

3.1.1. Using Automatic PSF builder

  • In the main VMD window, go to Extensions –> Modeling –> Automatic PSF Builder.
  • A new window will appear, namely, “AutoPSF” as shown below (Fig. 1):

    Fig.1 Automatic PSF Builder in VMD.
  • Select the molecule insp.pdb in step 1.
  • It will show some topology files. Click ‘Load input files’.
  • In step 2., You can either select protein or everything or any other option based on your protein. Here, I am selecting ‘everything’.
  • Click ‘Guess and split chains using current selection’.
  • In step 3., click ‘Create chains’.
  • In step 4., click ‘Apply patches and finish PSF/PDB’.

3.1.2. Using manual method

Again, open the Tk console in VMD. Type the following commands one by one.

% package require psfgen

% topology top_all27_prot_lipid.inp

% pdbalias residue HIS HSE

% pdbalias atom ILE CD1 CD

% segment U {pdb insp.pdb}

% coordpdb insp.pdb U

% guesscoord

% writepdb ins.pdb

% writepsf ins.psf

Remember, it will show you some warnings. You can avoid them. Ultimately, it will create two new files: ins.pdb and ins.psf.

Now, we have successfully generated a PSF file for the protein.


References

  1. Phillips, J. C., Hardy, D. J., Maia, J. D., Stone, J. E., Ribeiro, J. V., Bernardi, R. C., … & Tajkhorshid, E. (2020). Scalable molecular dynamics on CPU and GPU architectures with NAMD. The Journal of chemical physics, 153(4).
  2. Humphrey, W., Dalke, A., & Schulten, K. (1996). VMD: visual molecular dynamics. Journal of molecular graphics, 14(1), 33-38.

Further Reading

Energy minimization and equilibration of simple protein using NAMD & VMD.

Tutorial: A quick MD simulation using NAMD and VMD

How to install VMD on Ubuntu?

 

toto slot

TAGGED:md simulationNAMDPSF fileVMD
Share This Article
Facebook Copy Link Print
ByDr. Muniba Faiza
Follow:
Dr. Muniba is a Bioinformatician based in New Delhi, India. She has completed her PhD in Bioinformatics from South China University of Technology, Guangzhou, China. She has cutting edge knowledge of bioinformatics tools, algorithms, and drug designing. When she is not reading she is found enjoying with the family. Know more about Muniba
Leave a Comment

Leave a Reply Cancel reply

You must be logged in to post a comment.

Starting in Bioinformatics? Do This First!
Starting in Bioinformatics? Do This First!
Tips & Tricks
[Editorial] Is it ethical to change the order of authors’ names in a manuscript?
Editorial Opinion
Installing bbtools on Ubuntu
[Tutorial] Installing BBTools on Ubuntu (Linux).
Sequence Analysis Software Tools
wes_data_analysis Whole Exome Sequencing (WES) Data visualization Toolkit
wes_data_analysis: Whole Exome Sequencing (WES) Data visualization Toolkit
Bioinformatics Programming GitHub Python

You Might Also Like

CHARMM installation on Ubuntu
MD SimulationMolecular dynamicsSoftwareTools

Installing CHARMM on Ubuntu

July 12, 2020
AlgorithmsBioinformatics NewsMolecular dynamicsSoftwareTools

A new high-level Python interface for MD simulation using GROMACS

May 20, 2020
How to solve ‘Could NOT find CUDA: Found unsuitable version “10.1”‘ error during GROMACS installation?
MD SimulationSoftwareTools

How to solve ‘Could NOT find CUDA: Found unsuitable version “10.1”‘ error during GROMACS installation?

April 18, 2023
Installing GROMACS on ubuntu
MD SimulationSoftwareTools

Easy installation of GROMACS on Ubuntu 18.04 & 20.04

June 26, 2021
Copyright 2024 IQL Technologies
  • Journal
  • Customer Support
  • Contact Us
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Cookie Policy
  • Sitemap
Welcome Back!

Sign in to your account

Username or Email Address
Password

Lost your password?

Not a member? Sign Up