Skip to main content

xleap to generate prmtop and inpcrd files


Now that we have the lib file with the information for all the molecules we need to include and also the corresponding combined pdb file, creating prmtop and inpcrd files should not be a difficult task.
So, to begin with we have

a lib file name: molecule.lib
a pdb file for 4 molecules name: four.pdb

The  task is to generate a prmtop and inpcrd file.

Initiate xleap using:

$AMBERHOME/exe/xleap -s -f $AMBERHOME/dat/leap/cmd/leaprc.ff99

In xleap window
> source leaprc.gaff

# load the lib file by:

> loadoff molecule.lib

I am not sure but some times it helps to also load the frcmod files we created for the four molecules the information of which is stored in the lib file.
> loadamberparams aldehyde.frcmod

# Load the pdb file:

> P=loadpdb four.pdb

You should see some thing like this in the xleap window now:
-------------------
> P=loadpdb four.pdb
Loading PDB file: ./four.pdb
Warning: name change in pdb file residue 1 ;
 this residue is split into NIT and ACE.
Warning: name change in pdb file residue 1 ;
 this residue is split into ACE and BZN.
Warning: name change in pdb file residue 1 ;
 this residue is split into BZN and HDX.
3 residues had naming warnings.
 There are split residues;
 residue sequence numbers will not correspond to those in the pdb.
  total atoms in file: 35
------------------

Now you have created a unit with name P where in your system is present.
You can check it using:
> list
This will give a list of all the units present in xleap. P will also be present in this list.

> edit P

will help to visualize the structure we loaded.

If everything is fine xleap should show the four molecules we wanted to club together as a single system.

We can save prmtop and inpcrd files for the system using

> saveamberparm P four.prmtop four.inpcrd
These are the two files we require while submitting any calculation for a system in amber.

We can also solvate the system at this point with say methanol solvent.

> solvatebox P MEOHBOX 8.0

The command creates a 8.0 Angstrom box full of methanol molecules  around our system.Save the topology(prmtop) and coordinate files(inpcrd) using:

> saveamberparm SUS solvated_four.prmtop solvated_four.inpcrd

The system is now ready for the MD simulations

Comments

Post a Comment

Popular posts from this blog

Material Studio - selective molecule movement

So, working with Material Studio is awesome. You get to handle bigger, complicated and even unimaginable system. But I am facing problems in very minute functioning. I recently faced two problems, but managed to resolve on my own. Somehow, tutorials doesn't help in resolving them and you end up doing some exercise on your own to get the solution. Among these, the problem of bringing two molecular structures in one window and then adjusting one molecule by moving it around, while other structure remains untouched, as it is. Actually, this should not be a problem to do. There is a simple way of doing this. Select the molecule to be moved and then there is a symbol (button) to select, which allows you to selectively move that molecule only. This is the same way it can be done in Material studio too.  But among all the dozens of symbols, the new person handling MS, kind of gets lost. So, what he does is check the tutorials, for any help. But the tutorials don't talk about suc...

Using Packmol

Packmol is a software that allows you to generate a single combined PDB file for all the molecules you are considering. It is a free software and can be downloaded from this link: http://www.ime.unicamp.br/~martinez/packmol/ The installation guide is also provided on the page and its really easy to follow. http://www.ime.unicamp.br/~martinez/packmol/ You can also find some examples but I tried on my own. Anyway what you need is an input file which looks like: ------------------ tolerance 2.0 output trial.pdb add_amber_ter filetype pdb structure 2a.pdb   number 1   inside cube 0. 0. 0. 10. end structure structure 2d.pdb   number 1   inside cube 0. 0. 0. 10. end structure --------------------------------- IT includes some information like: how close the molecules considered can be.(tolerance) name of output pdb file "add_amber_ter" adds term "TER" after every molecule thus defining the start and end of every molecule. After mentioning the...

COVID-19 Projections -till 22nd July

How would you call the COVID-19 situation in India for the last week. In contrast to what I hear around, I would say, the situation in India is improving. Lets see the reasons why I feel so: - Recovery rate has gone up to 63%. So, there is almost 2/3rd chance of survival for every person getting infected by COVID - The mortality rate has now reduced down to ~2.5%, way down from 3.2% in a 10 days duration.This is happening because of more and more testing. Today's report said, we did record 3.2 lakh testing in a day. This implies that the possibility of death because of COVID-19 is getting low. It may mean,  most of the people around can do fine with a little low panic level. Of course, precautions are necessary, if you don't want to fall in that very low 2.5% mortality set. Coming down to numbers. I am happy to see that India deviated significantly from my mid-July projection of 10.25 lakhs. Good to see the lowered down number. This shows the kind of ...