Skip to content

supernova4869/pdb_cleaner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pdb_cleaner

Made by Supernova (https://www.zhihu.com/people/zhang-jia-xing-42-34)

Function:

Because of the difference atom name rules between DS and Gromacs, the pdb file generated by DS's Prepare Protein protocol cannot be directly passed into Gromacs.

Herein, I wrote a simple program, to convert the protein prepared by DS into the format that gromacs can identify.

  1. Rename His to HID, HIE and HIP according to H type
  2. Rename Asp to ASP, ASH according to whether contains HD2
  3. Rename Glu to GLU, GLH according to whether contains HE2
  4. Rename terminal O from OCT[12] to OC[12]

Usage

  • Usage 0: pdb_cleaner # directly show this help message
  • Usage 1: pdb_cleaner input.pdb output.pdb
  • Usage 2: pdb_cleaner input.pdb # default output to new.pdb

Examples

# get test.pdb file prepared by DS
pdb_cleaner test.pdb # generates new.pdb
gmx pdb2gmx -f new.pdb

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages