Advertisement
ZaynerTech

Automatic Solvate and Parameterization Script for GROMACS

Jan 17th, 2013
276
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.63 KB | None | 0 0
  1. #!/usr/bin/perl
  2. #
  3. #
  4. # Simple script to solvate and parameterize a protein
  5. # Using GROMACS
  6. # genion line needs to change to match your neutralization conditions
  7. # you also need your own mdp file
  8. # ./gromacser.pl <name of pdb>
  9.  
  10.  
  11. ($a, $b) = split(/\./,$ARGV[0]);
  12.  
  13. `pdb2gmx -f $ARGV[0] -ff oplsaa -o init.$ARGV[0] -p $a.top`;
  14.  
  15. `editconf -bt cubic -f init.$ARGV[0] -o box.gro -c -d 0.7`;
  16.  
  17. `genbox -cp box.gro -cs spc216.gro -o b4ion.gro -p $a.top`;
  18.  
  19. `grompp -f em.mdp -c b4ion.gro -p $a.top -o b4ion.tpr`;
  20.  
  21. `genion -s b4ion.tpr -o b4em.gro -nname Cl -nn 1 -p $a.top`;
  22.  
  23.  
  24. `grompp -f em.mdp -c b4em.gro -p $a.top -o em.tpr`;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement