-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
138 additions
and
44 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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
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,26 @@ | ||
from molsysmt._private.digestion import digest | ||
|
||
@digest(form='molsysmt.MolSys') | ||
def to_openmm_Context(item, atom_indices='all', structure_indices='all', | ||
forcefield='AMBER14', water_model=None, implicit_solvent=None, | ||
non_bonded_method='no cutoff', constraints='hbonds', switch_distance=None, | ||
dispersion_correction=False, ewald_error_tolerance=0.0005, | ||
integrator='Langevin', temperature='300.0 kelvin', friction='1.0/picoseconds', time_step='2 femtoseconds', | ||
platform='CUDA', skip_digestion=False): | ||
|
||
from . import to_openmm_Topology | ||
from . import get_coordinates_from_atom | ||
from ..openmm_Topology import to_openmm_Context as openmm_Topology_to_openmm_Context | ||
|
||
tmp_item = to_openmm_Topology(item, atom_indices=atom_indices, structure_indices=structure_indices, skip_digestion=True) | ||
coordinates = get_coordinates_from_atom(item, indices=atom_indices, structure_indices=structure_indices, skip_digestion=True) | ||
|
||
tmp_item = openmm_Topology_to_openmm_Context(tmp_item, coordinates=coordinates, | ||
forcefield=forcefield, water_model=water_model, implicit_solvent=implicit_solvent, | ||
non_bonded_method=non_bonded_method, constraints=constraints, switch_distance=switch_distance, | ||
dispersion_correction=dispersion_correction, ewald_error_tolerance=ewald_error_tolerance, | ||
integrator=integrator, temperature=temperature, friction=friction, time_step=time_step, | ||
platform=platform, skip_digestion=True) | ||
|
||
return tmp_item | ||
|
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
from molsysmt._private.digestion import digest | ||
|
||
@digest(form='molsysmt.Topology') | ||
def to_parmed_Structure(item, atom_indices='all', skip_digestion=False): | ||
|
||
from .to_openmm_Topology import to_openmm_Topology as molsysmt_Topology_to_openmm_Topology | ||
from ..openmm_Topology import to_parmed_Structure as openmm_Topology_to_parmed_Structure | ||
|
||
tmp_item = molsysmt_Topology_to_openmm_Topology(item, atom_indices=atom_indices) | ||
tmp_item = openmm_Topology_to_parmed_Structure(tmp_item) | ||
return tmp_item | ||
|
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,13 @@ | ||
from molsysmt._private.digestion import digest | ||
|
||
@digest(form='molsysmt.Topology') | ||
def to_string_aminoacids1(item, group_indices='all', skip_digestion=False): | ||
|
||
from . import to_string_aminoacids3 | ||
from ..string_aminoacids3 import to_string_aminoacids1 as string_aminoacids3_to_string_aminoacids1 | ||
|
||
tmp_item = to_string_aminoacids3(item, group_indices=group_indices) | ||
tmp_item = string_aminoacids3_to_string_aminoacids1(tmp_item) | ||
|
||
return tmp_item | ||
|
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,13 @@ | ||
from molsysmt._private.digestion import digest | ||
import numpy as np | ||
|
||
@digest(form='molsysmt.Topology') | ||
def to_string_aminoacids3(item, group_indices='all', skip_digestion=False): | ||
|
||
from . import get_group_name_from_group | ||
|
||
group_names = get_group_name_from_group(item, indices=group_indices) | ||
tmp_item = ''.join([ii.title() for ii in group_names]) | ||
|
||
return tmp_item | ||
|
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,17 @@ | ||
from molsysmt._private.digestion import digest | ||
|
||
@digest(form='molsysmt.Topology') | ||
def to_string_pdb_text(item, atom_indices='all', coordinates=None, box=None, skip_digestion=False): | ||
|
||
from molsysmt.native import MolSys, Structures | ||
from . import extract | ||
from ..molsysmt_MolSys import to_string_pdb_text as molsysmt_MolSys_to_string_pdb_text | ||
|
||
tmp_item = MolSys() | ||
tmp_item.topology = extract(item, atom_indices=atom_indices, copy_if_all=False, skip_digestion=True) | ||
tmp_item.structures.append(coordinates=coordinates, box=box, skip_digestion=True) | ||
tmp_item = molsysmt_MolSys_to_string_pdb_text(tmp_item, skip_digestion=True) | ||
|
||
return tmp_item | ||
|
||
|
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
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