-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #38 from open-forcefield-group/smirff_energy_check
Many (but not all) fixes relating to cross-checking force terms against AMBER-originated systems
- Loading branch information
Showing
11 changed files
with
352 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/bin/env python | ||
|
||
from smarty.forcefield_utils import * | ||
import os | ||
|
||
# Cross-check energies of molecules from AlkEthOH set using SMIRFF xml file | ||
# versus energies from AMBER .prmtop and .crd files (parm@frosst params) | ||
|
||
datapath = './AlkEthOH_inputfiles/AlkEthOH_chain_filt1' | ||
molname = 'AlkEthOH_c100' | ||
mol_filename = os.path.join( datapath, molname+'.mol2') | ||
|
||
# Check if we have this data file; if not we have to extract the archive | ||
if not os.path.isfile( mol_filename): | ||
print "Extracting archived molecule files." | ||
tarfile = 'AlkEthOH_inputfiles.tar.gz' | ||
os.system('tar -xf AlkEthOH_inputfiles.tar.gz') | ||
|
||
# Load OEMol | ||
mol = oechem.OEGraphMol() | ||
ifs = oechem.oemolistream(mol_filename) | ||
flavor = oechem.OEIFlavor_Generic_Default | oechem.OEIFlavor_MOL2_Default | oechem.OEIFlavor_MOL2_Forcefield | ||
ifs.SetFlavor( oechem.OEFormat_MOL2, flavor) | ||
oechem.OEReadMolecule(ifs, mol ) | ||
oechem.OETriposAtomNames(mol) | ||
|
||
# Load forcefield | ||
forcefield = ForceField(get_data_filename('forcefield/Frosst_AlkEtOH.ffxml')) | ||
|
||
# Compare energies | ||
prmtop = os.path.join( datapath, molname+'.top') | ||
crd = os.path.join( datapath, molname+'.crd') | ||
results = compare_molecule_energies( prmtop, crd, forcefield, mol) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ def find_package_data(data_root, package_root): | |
|
||
setup( | ||
name = "smarty", | ||
version = "0.1.0", | ||
version = "0.1.1", | ||
author = "John Chodera", | ||
author_email = "[email protected]", | ||
description = ("Automated Bayesian atomtype sampling"), | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
from .atomtyper import * | ||
from .forcefield import * | ||
from .forcefield_utils import * | ||
from .sampler import * | ||
from .utils import * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.