mimicpy 0.2.0__py3-none-any.whl → 0.3.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- mimicpy/__init__.py +1 -1
- mimicpy/__main__.py +726 -2
- mimicpy/_authors.py +2 -2
- mimicpy/_version.py +2 -2
- mimicpy/coords/__init__.py +1 -1
- mimicpy/coords/base.py +1 -1
- mimicpy/coords/cpmdgeo.py +1 -1
- mimicpy/coords/gro.py +1 -1
- mimicpy/coords/pdb.py +1 -1
- mimicpy/core/__init__.py +1 -1
- mimicpy/core/prepare.py +3 -3
- mimicpy/core/selector.py +1 -1
- mimicpy/force_matching/__init__.py +34 -0
- mimicpy/force_matching/bonded_forces.py +628 -0
- mimicpy/force_matching/compare_top.py +809 -0
- mimicpy/force_matching/dresp.py +435 -0
- mimicpy/force_matching/nonbonded_forces.py +32 -0
- mimicpy/force_matching/opt_ff.py +2114 -0
- mimicpy/force_matching/qm_region.py +1960 -0
- mimicpy/plugins/__main_installer__.py +76 -0
- mimicpy/{__main_vmd__.py → plugins/__main_vmd__.py} +2 -2
- mimicpy/plugins/pymol.py +56 -0
- mimicpy/plugins/vmd.tcl +78 -0
- mimicpy/scripts/__init__.py +1 -1
- mimicpy/scripts/cpmd.py +1 -1
- mimicpy/scripts/fm_input.py +265 -0
- mimicpy/scripts/fmdata.py +120 -0
- mimicpy/scripts/mdp.py +1 -1
- mimicpy/scripts/ndx.py +1 -1
- mimicpy/scripts/script.py +1 -1
- mimicpy/topology/__init__.py +1 -1
- mimicpy/topology/itp.py +603 -35
- mimicpy/topology/mpt.py +1 -1
- mimicpy/topology/top.py +254 -15
- mimicpy/topology/topol_dict.py +233 -4
- mimicpy/utils/__init__.py +1 -1
- mimicpy/utils/atomic_numbers.py +1 -1
- mimicpy/utils/constants.py +17 -3
- mimicpy/utils/elements.py +1 -1
- mimicpy/utils/errors.py +1 -1
- mimicpy/utils/file_handler.py +1 -1
- mimicpy/utils/strings.py +1 -1
- mimicpy-0.3.0.dist-info/METADATA +156 -0
- mimicpy-0.3.0.dist-info/RECORD +50 -0
- {mimicpy-0.2.0.dist-info → mimicpy-0.3.0.dist-info}/WHEEL +1 -1
- mimicpy-0.3.0.dist-info/entry_points.txt +4 -0
- mimicpy-0.2.0.dist-info/METADATA +0 -86
- mimicpy-0.2.0.dist-info/RECORD +0 -38
- mimicpy-0.2.0.dist-info/entry_points.txt +0 -3
- {mimicpy-0.2.0.dist-info → mimicpy-0.3.0.dist-info/licenses}/COPYING +0 -0
- {mimicpy-0.2.0.dist-info → mimicpy-0.3.0.dist-info/licenses}/COPYING.LESSER +0 -0
- {mimicpy-0.2.0.dist-info → mimicpy-0.3.0.dist-info}/top_level.txt +0 -0
- {mimicpy-0.2.0.dist-info → mimicpy-0.3.0.dist-info}/zip-safe +0 -0
mimicpy/_authors.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#
|
|
2
2
|
# MiMiCPy: Python Based Tools for MiMiC
|
|
3
|
-
# Copyright (C) 2020-
|
|
3
|
+
# Copyright (C) 2020-2023 Bharath Raghavan,
|
|
4
4
|
# Florian Schackert
|
|
5
5
|
#
|
|
6
6
|
# This file is part of MiMiCPy.
|
|
@@ -19,4 +19,4 @@
|
|
|
19
19
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
20
|
#
|
|
21
21
|
|
|
22
|
-
__authors__ = 'Bharath Raghavan
|
|
22
|
+
__authors__ = 'Bharath Raghavan, Florian Schackert, Sachin Shivakumar'
|
mimicpy/_version.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#
|
|
2
2
|
# MiMiCPy: Python Based Tools for MiMiC
|
|
3
|
-
# Copyright (C) 2020-
|
|
3
|
+
# Copyright (C) 2020-2023 Bharath Raghavan,
|
|
4
4
|
# Florian Schackert
|
|
5
5
|
#
|
|
6
6
|
# This file is part of MiMiCPy.
|
|
@@ -19,4 +19,4 @@
|
|
|
19
19
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
20
|
#
|
|
21
21
|
|
|
22
|
-
__version__ = '0.
|
|
22
|
+
__version__ = '0.3.0'
|
mimicpy/coords/__init__.py
CHANGED
mimicpy/coords/base.py
CHANGED
mimicpy/coords/cpmdgeo.py
CHANGED
mimicpy/coords/gro.py
CHANGED
mimicpy/coords/pdb.py
CHANGED
mimicpy/core/__init__.py
CHANGED
mimicpy/core/prepare.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#
|
|
2
2
|
# MiMiCPy: Python Based Tools for MiMiC
|
|
3
|
-
# Copyright (C) 2020-
|
|
3
|
+
# Copyright (C) 2020-2023 Bharath Raghavan,
|
|
4
4
|
# Florian Schackert
|
|
5
5
|
#
|
|
6
6
|
# This file is part of MiMiCPy.
|
|
@@ -53,7 +53,7 @@ class Preparation:
|
|
|
53
53
|
def add(self, selection=None, is_bound=False):
|
|
54
54
|
qdf = Preparation.__clean_qdf(self.selector.select(selection))
|
|
55
55
|
qdf.insert(2, 'is_bound', [int(is_bound)]*len(qdf))
|
|
56
|
-
self.__qm_atoms = self.__qm_atoms
|
|
56
|
+
self.__qm_atoms = pd.concat([self.__qm_atoms, qdf])
|
|
57
57
|
|
|
58
58
|
def delete(self, selection=None):
|
|
59
59
|
qdf = Preparation.__clean_qdf(self.selector.select(selection))
|
|
@@ -130,7 +130,7 @@ class Preparation:
|
|
|
130
130
|
pp_info = pd.read_csv(pp_info_file_name,
|
|
131
131
|
header=None,
|
|
132
132
|
names=['element','pp_name','pp_bound_name','labels','lmax','loc'],
|
|
133
|
-
|
|
133
|
+
sep=r'\s+',
|
|
134
134
|
comment='#')
|
|
135
135
|
pp_info = pp_info.set_index('element')
|
|
136
136
|
pp_info = pp_info.drop_duplicates(keep='first')
|
mimicpy/core/selector.py
CHANGED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Force matching module for MiMiCPy.
|
|
3
|
+
|
|
4
|
+
This module provides functionality for force matching in molecular dynamics simulations.
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from .qm_region import QMRegion
|
|
8
|
+
|
|
9
|
+
from .dresp import opt_dresp, compute_sd, get_configurations
|
|
10
|
+
from .opt_ff import (
|
|
11
|
+
ParameterOptimizer,
|
|
12
|
+
get_optimize_ff_parameters,
|
|
13
|
+
get_configurations_optff,
|
|
14
|
+
optimization_ff,
|
|
15
|
+
check_bond_equivalence,
|
|
16
|
+
check_angle_equivalence,
|
|
17
|
+
check_dihedral_equivalence
|
|
18
|
+
)
|
|
19
|
+
|
|
20
|
+
__all__ = [
|
|
21
|
+
# Classes
|
|
22
|
+
'ParameterOptimizer',
|
|
23
|
+
'QMRegion',
|
|
24
|
+
# Functions
|
|
25
|
+
'get_configurations',
|
|
26
|
+
'get_optimize_ff_parameters',
|
|
27
|
+
'get_configurations_optff',
|
|
28
|
+
'optimization_ff',
|
|
29
|
+
'opt_dresp',
|
|
30
|
+
'compute_sd',
|
|
31
|
+
'check_bond_equivalence',
|
|
32
|
+
'check_angle_equivalence',
|
|
33
|
+
'check_dihedral_equivalence'
|
|
34
|
+
]
|