-
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 #20 from martimunicoy/devel
Minor release 0.2.1
- Loading branch information
Showing
16 changed files
with
659 additions
and
62 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
.. _charge :: | ||
|
||
Charge methods | ||
============== | ||
|
||
This module provides different methods to calculate partial charges | ||
for PELE. | ||
|
||
.. currentmodule:: offpele.charge | ||
|
||
Primary objects | ||
--------------- | ||
|
||
.. autosummary:: | ||
:nosignatures: | ||
:toctree: api/autogenerated | ||
:template: class.rst | ||
|
||
Am1bccCalculator | ||
GasteigerCalculator |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,51 @@ | ||
Release history | ||
############### | ||
Release History | ||
=============== | ||
|
||
To do | ||
Releases follow the ``major.minor.micro`` scheme recommended by `PEP440 <https://www.python.org/dev/peps/pep-0440/#final-releases>`_, where | ||
|
||
* ``major`` increments denote a change that may break API compatibility with previous ``major`` releases | ||
* ``minor`` increments add features but do not break API compatibility | ||
* ``micro`` increments represent bugfix releases or improvements in documentation | ||
|
||
0.3.0 - Current development | ||
------------------------- | ||
|
||
This is still a preliminary version of the Open Force Field to PELE package. | ||
|
||
|
||
0.2.1 | ||
----- | ||
|
||
This is a micro release that includes new features and parameters to configurate the behaviour of the program. | ||
It is designed to be employed to run the first benchmarks of the implementation in PELE. | ||
It also includes many stability improvements and an extended test coverage. | ||
|
||
New features | ||
"""""""""""" | ||
- `PR #15 <https://github.com/martimunicoy/offpele/pull/15>`_: Adds a new method (Antechamber's gasteiger) to calculate partial charges. | ||
- `PR #19 <https://github.com/martimunicoy/offpele/pull/19>`_: Adds a new option to ignore terminal rotatable bonds of each rotamer's branch. | ||
- `PR #17 <https://github.com/martimunicoy/offpele/pull/17>`_: Adds and updates the documentation. However, it is still not completed. | ||
|
||
Bugfixes | ||
"""""""" | ||
- `PR #18 <https://github.com/martimunicoy/offpele/pull/18>`_: Fixes some problems with proper and improper constructors. | ||
|
||
Tests added | ||
""""""""""" | ||
- `PR #15 <https://github.com/martimunicoy/offpele/pull/15>`_: Adds tests ensuring that the run_offpele call from main and the partial charge calculators work as expected. | ||
- `PR #19 <https://github.com/martimunicoy/offpele/pull/19>`_: Adds tests to validate the construction of the `RotamerLibrary` class and the filtering of terminal rotatable bonds. | ||
|
||
|
||
0.2.0 | ||
----- | ||
|
||
This is a preliminary version of the Open Force Field to PELE package. | ||
|
||
New features | ||
"""""""""""" | ||
|
||
A first implementation of the package that allows to: | ||
|
||
- Build a rotamer library for a small molecule using RDKit's API | ||
- Build a template with the Molecular Mechanics' parameters for a small molecule using the Open Force Field Toolkit | ||
- Assign the OBC implicit solvent parameters to a small molecule using the Open Force Field Toolkit |
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 @@ | ||
from .charges import Am1bccCalculator, GasteigerCalculator |
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,74 @@ | ||
""" | ||
This module handles all classes and functions related with partial charge | ||
calculators. | ||
""" | ||
|
||
|
||
from offpele.utils.toolkits import AmberToolkitWrapper | ||
|
||
|
||
class _PartialChargesCalculator(object): | ||
""" | ||
Base class for partial charges calculators. | ||
""" | ||
|
||
_name = None | ||
_amber_toolkit = AmberToolkitWrapper() | ||
|
||
def __init__(self, molecule): | ||
""" | ||
It initiates a PartialChargesCalculator object. | ||
Parameters | ||
---------- | ||
molecule : An offpele.topology.Molecule | ||
The partial charges of this Molecule object will be calculated | ||
""" | ||
self._molecule = molecule | ||
|
||
@property | ||
def molecule(self): | ||
""" | ||
The offpele's Molecule. | ||
Returns | ||
------- | ||
molecule : an offpele.topology.Molecule | ||
The offpele's Molecule object | ||
""" | ||
return self._molecule | ||
|
||
@property | ||
def name(self): | ||
return self._name | ||
|
||
def get_partial_charges(self): | ||
""" | ||
It returns the partial charges that correspond to the molecule's | ||
atoms. | ||
Returns | ||
------- | ||
charges : simtk.unit.Quantity | ||
The array of partial charges | ||
""" | ||
|
||
return self._amber_toolkit.compute_partial_charges(self.molecule, | ||
method=self.name) | ||
|
||
|
||
class Am1bccCalculator(_PartialChargesCalculator): | ||
""" | ||
Implementation of the AM1-BCC partial charges calculator (using RDKit). | ||
""" | ||
|
||
_name = 'am1bcc' | ||
|
||
|
||
class GasteigerCalculator(_PartialChargesCalculator): | ||
""" | ||
Implementation of the gasteiger partial charges calculator (using | ||
RDKit). | ||
""" | ||
|
||
_name = 'gasteiger' |
This file was deleted.
Oops, something went wrong.
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.