Skip to content

Commit

Permalink
Merge pull request #37 from MobleyLab/mobley
Browse files Browse the repository at this point in the history
Documentation clarifications and script update for directory naming
  • Loading branch information
davidlmobley authored Apr 5, 2017
2 parents 95030b4 + 9024d4f commit 7bf484b
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 22 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,13 @@ Please cite:
- `scripts`: Scripts pertaining to the material deposited here
- `sdffiles.tar.gz`: SDF-format files for all of the molecules deposited here (as in `mol2files_gaff` and `mol2files_sybyl`)
- `amber.tar.gz`: AMBER format parameter, coordinate, and frcmod files corresponding to the systems we ultimately simulated in GROMACS.
- `gromacs_original.tar.gz`: GROMACS format topology and coordinate files for the calculations associated with the computed values in FreeSolv, for calculations in gas phase
- `gromacs_solvated.tar.gz`: GROMACS format topology and coordinate files for the calculations associated with the computed values in FreeSolv, for calculations in solution
- `gromacs_original.tar.gz`: GROMACS format topology and coordinate files for the calculations associated with the computed values in FreeSolv, for calculations in gas phase. These were generated from AMBER files via acpype, prior to our more recent migration to ParmEd.
- `gromacs_solvated.tar.gz`: GROMACS format topology and coordinate files for the calculations associated with the computed values in FreeSolv, for calculations in solution, again generated from AMBER files via acpype.
- `lammps.tar.gz`: LAMMPS format topology and coordinate files for the calculations associated with the computed values in FreeSolv, automatically converted using InterMol from the AMBER files
- `charmm.tar.gz`: CHARMM format topology and coordinate files for the calculations associated with the computed values in FreeSolv, automatically converted using InterMol from the AMBER files
- `gromacs.tar.gz`: GROMACS format topology and coordinate files for the calculations associated with the computed values in FreeSolv, automatically converted using InterMol from the AMBER files
- `charmm.tar.gz`: CHARMM format topology and coordinate files for the calculations associated with the computed values in FreeSolv, automatically converted using ParmEd (via InterMol) from the AMBER files
- `gromacs.tar.gz`: GROMACS format topology and coordinate files for the calculations associated with the computed values in FreeSolv, automatically converted using ParmEd (via InterMol) from the AMBER files
- `desmond.tar.gz`: DESMOND format topology and coordinate files for the calculations associated with the computed values in FreeSolv, automatically converted using InterMol from the AMBER files
- `simulation_comparison_input/`: directory containing input files used for the validation of the input conversion files by comparing energy files, description of automated conversion process, and the energy comparisons.
- `simulation_comparison_input/`: directory containing input files used for the validation of the input conversion files by comparing energy files, description of automated conversion process, and the energy comparisons. See `simulation_comparison_input/README.md` for more details.
- `README.md`: This file
- `database.pickle`: Python pickle file of the FreeSolv database
- `database.json`: JSON format version of the FreeSolv database also stored in `database.pickle`
Expand Down Expand Up @@ -156,8 +156,8 @@ Same as the above but initiates Zenodo DOIs. DOI http://dx.doi.org/10.5281/zenod
* Corrects `tripos_mol2` back to `mol2files_sybyl` for consistency with `mol2files_gaff` (as in a prior version, but we had lost this change)
* Provides JSON versions of database files

## Version 0.6 (Mar. 31, 2017) ([XXXXXXX](XXXXXXXX)):
* Introduced automatically-generated input files for CHARMM, DESMOND, and LAMMPS
## Version 0.51 (April 5, 2017) ([XXXXXXX](XXXXXXXX)):
* Introduced automatically-generated input files for CHARMM, DESMOND, and LAMMPS, and alternate GROMACS files generated via ParmEd rather than acpype
* Reorganizes naming convention of simulation structure files
* Provides energy comparison of all automatically generated files in `simulation_comparison_input`
* Addition of `notebooks` directory
Expand Down
26 changes: 11 additions & 15 deletions scripts/rebuild_freesolv.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,35 +26,31 @@ def make_path(filename):
for (key, entry) in database.items():
print "Processing molecule %s ..." % (key)
tripos_filename = os.path.join('../mol2files_sybyl/', key + '.mol2')
frcmod_filename = os.path.join("../prmcrd/", "%s.frcmod" % key)
frcmod_filename = os.path.join("../amber/", "%s.frcmod" % key)
gaff_mol2_filename = os.path.join("../mol2files_gaff/", "%s.mol2" % key)
prmtop_filename = os.path.join("../prmcrd/", "%s.prmtop" % key)
inpcrd_filename = os.path.join("../prmcrd/", "%s.inpcrd" % key)
prmtop_filename = os.path.join("../amber/", "%s.prmtop" % key)
inpcrd_filename = os.path.join("../amber/", "%s.inpcrd" % key)
sdf_filename = os.path.join("../sdffiles/", "%s.sdf" % key)
gro_filename = os.path.join("../topgro/", "%s.gro" % key)
top_filename = os.path.join("../topgro/", "%s.top" % key)
gro_solv_filename = os.path.join("../topgro_solvated/", "%s.gro" % key)
top_solv_filename = os.path.join("../topgro_solvated/", "%s.top" % key)
gro_filename = os.path.join("../gromacs_original/", "%s.gro" % key)
top_filename = os.path.join("../gromacs_original/", "%s.top" % key)
gro_solv_filename = os.path.join("../gromacs_solvated/", "%s.gro" % key)
top_solv_filename = os.path.join("../gromacs_solvated/", "%s.top" % key)

#Add output directories if not already present
make_path( '../mol2files_sybyl/' )
make_path( '../mol2files_gaff/')
make_path( '../sdffiles/')
make_path( '../topgro/')
make_path( '../topgro_solvated/')
make_path( '../prmcrd/')
make_path( '../gromacs_original/')
make_path( '../gromacs_solvated/')
make_path( '../amber/')

molecule = openmoltools.openeye.smiles_to_oemol(entry['smiles'])
charged = openmoltools.openeye.get_charges(molecule)
openmoltools.openeye.molecule_to_mol2(charged, tripos_filename)
mol2tosdf.writeSDF(gaff_mol2_filename, sdf_filename, key)

_, _ = openmoltools.utils.run_antechamber(key, tripos_filename, charge_method=None, gaff_mol2_filename=gaff_mol2_filename, frcmod_filename=frcmod_filename)
openmoltools.utils.run_tleap(key, gaff_mol2_filename, frcmod_filename, prmtop_filename=prmtop_filename, inpcrd_filename=inpcrd_filename)
openmoltools.utils.convert_via_acpype( key, prmtop_filename, inpcrd_filename, out_top = top_filename, out_gro = gro_filename)
openmoltools.gromacs.do_solvate(top_filename, gro_filename, top_solv_filename, gro_solv_filename, water_top='tip3p.itp', box_dim=1.5, box_type='cubic', water_model='spc216.gro')





4 changes: 4 additions & 0 deletions simulation_comparison_input/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ edited to add these energies.

The command for conversion was was:

```
python convert.py --odir mobley_XXXXX
--gromacs --charmm --lammps --desmond --amber --energy --amb_in mobley_XXXXX.prmtop mobley_XXXX.inpcrd
--inefile ./min_freesolv.in
Expand All @@ -50,6 +51,9 @@ The command for conversion was was:
-as ./min_freesolv.in
-ls pair_style lj/cut/coul/cut 30.0 30.0\npair_modify tail no\n\n
-cs nbonds ips elec vdw cutnb 50 ctofnb 49.99 noewald
```

where `convert.py` refers to the relevant InterMol utility.

# Energy file conversion description

Expand Down

0 comments on commit 7bf484b

Please sign in to comment.