Difference between revisions of "Setting up (CHARMM)"
import>Csw34 |
import>Csw34 |
||
Line 8: | Line 8: | ||
=== Converting a PDB into CHARMM .crd (CARD) format === |
=== Converting a PDB into CHARMM .crd (CARD) format === |
||
− | In order to run [[GMIN]], [[OPTIM]] or [[PATHSAMPLE]] using CHARMM, your input must be in CHARMM '.crd' or ''CARD'' format. You can do this using scripts form the [http://mmtsb.org MMTSB toolset], or just using CHARMM itself. |
+ | In order to run [[GMIN]], [[OPTIM]] or [[PATHSAMPLE]] using CHARMM, your input must be in CHARMM '.crd' or ''CARD'' format. You can do this using scripts form the [http://mmtsb.org MMTSB toolset], or just using CHARMM itself. |
+ | <pre> |
||
+ | ! CHARMM input to convert a PDB file into a CHARMM .crd (CARD) file |
||
+ | set pardir "/home/csw34/svn/CHARMM31/toppar" |
||
+ | set top "toph19_eef1_perm.inp" |
||
+ | set par "param19_eef1_perm.inp" |
||
+ | ! BOMLev sets the level of warnings what do not cause the program to exit. -5 = very lax |
||
+ | BOMLev -5 |
||
+ | |||
+ | ! PRNLEV sets the ammount of output you get from CHARMM. 5 = high |
||
+ | PRNLEV +5 |
||
+ | |||
+ | ! Read standard topology and parameter files. |
||
+ | OPEN READ CARD UNIT 1 NAME @pardir/@top |
||
+ | READ RTF CARD UNIT 1 |
||
+ | CLOSE UNIT 1 |
||
+ | |||
+ | OPEN READ CARD UNIT 2 NAME @pardir/@par |
||
+ | READ PARAMETER CARD UNIT 2 |
||
+ | CLOSE UNIT 2 |
||
+ | |||
+ | ! Generate the PSF for met-enk |
||
+ | READ SEQUence CARD |
||
+ | * |
||
+ | 5 |
||
+ | TYR GLY GLY PHE MET |
||
+ | GENErate FIRS NTER LAST CTER SETUp |
||
+ | |||
+ | ! Read in the PDB file |
||
+ | OPEN UNIT 20 NAME metenk.pdb READ CARD |
||
+ | READ COOR UNIT 20 PDB |
||
+ | CLOSE UNIT 20 |
||
+ | |||
+ | ! Fill the internal coordinate table |
||
+ | IC FILL PRESERVE |
||
+ | IC PARAMETERS |
||
+ | IC PURGE |
||
+ | IC BUILD |
||
+ | |||
+ | ! Write out the .crd (CARD) file |
||
+ | OPEN UNIT 20 NAME metenk.crd WRITE CARD |
||
+ | WRITE COOR UNIT 20 CARD |
||
+ | CLOSE UNIT 20 |
||
+ | |||
+ | STOP |
||
+ | </pre> |
||
=== Making a perm.allow file for later === |
=== Making a perm.allow file for later === |
Revision as of 13:39, 7 February 2012
Starting from a PDB
For this tutorial, we're going to assume you want to start from a PDB. This can raise some formatting issues, as the PDB format is rarely stuck to exactly, and even the slightest error can cause CHARMM to complain, and fail to read it in. If you have problems, you should compare your PDB file to the one we use here, and make the necessary changes yourself in vi. If you already have a .crd file to use, congratulations! You can safely skip the next section - although you will still need a PDB file to generate a perm.allow for your system automatically.
NOTE: if your system is NOT a standard peptide/protein, you will need to make the perm.allow file manually!
You can download the PDB we're using as the starting point for this tutorial here.
Converting a PDB into CHARMM .crd (CARD) format
In order to run GMIN, OPTIM or PATHSAMPLE using CHARMM, your input must be in CHARMM '.crd' or CARD format. You can do this using scripts form the MMTSB toolset, or just using CHARMM itself.
! CHARMM input to convert a PDB file into a CHARMM .crd (CARD) file set pardir "/home/csw34/svn/CHARMM31/toppar" set top "toph19_eef1_perm.inp" set par "param19_eef1_perm.inp" ! BOMLev sets the level of warnings what do not cause the program to exit. -5 = very lax BOMLev -5 ! PRNLEV sets the ammount of output you get from CHARMM. 5 = high PRNLEV +5 ! Read standard topology and parameter files. OPEN READ CARD UNIT 1 NAME @pardir/@top READ RTF CARD UNIT 1 CLOSE UNIT 1 OPEN READ CARD UNIT 2 NAME @pardir/@par READ PARAMETER CARD UNIT 2 CLOSE UNIT 2 ! Generate the PSF for met-enk READ SEQUence CARD * 5 TYR GLY GLY PHE MET GENErate FIRS NTER LAST CTER SETUp ! Read in the PDB file OPEN UNIT 20 NAME metenk.pdb READ CARD READ COOR UNIT 20 PDB CLOSE UNIT 20 ! Fill the internal coordinate table IC FILL PRESERVE IC PARAMETERS IC PURGE IC BUILD ! Write out the .crd (CARD) file OPEN UNIT 20 NAME metenk.crd WRITE CARD WRITE COOR UNIT 20 CARD CLOSE UNIT 20 STOP