Martini handlers¶
Overview
General implementation of most Martini chains (lipids or others). |
|
Generate a topology from an ITP file |
|
Martini force mapping; use the get_pair(beadA, beadB, units) to get the LJ potential. |
Details
-
class
hoobas.MartiniModels.ITPMartiniParser(itp_path, gro_path=None, **kwargs)[source]¶ Generate a topology from an ITP file
-
class
hoobas.MartiniModels.MMaps[source]¶ Class that allows for global remapping of martini types in case they are needed. By default, martini bead names are charged, polar, nonpolar and apolar. By calling MartiniMapping.remap, they can be changed. For instance, MartiniMappings.remap(‘charged_0’, ‘Q00’) will make all charged beads with sub 0 to have the name ‘Q00’. This is useful for conflicting names like ‘Na’ which may conflict with sodium ions
-
static
map_from_default(default_name)[source]¶ Returns the current beadtype of a default martini beadtype. For instance if P2 was remapped to Po2, then map_from_default(P2) will yield Po2
- Parameters
default_name (str) – default Martini mapping
- Returns
mapped beadtype
- Return type
str
-
static
remap(key, beadtype)[source]¶ Remaps a martini type to a new beadtype
- Parameters
key (str) – martini type to remap
beadtype (str) – beadtype to map to
- Return type
None- Returns
None
-
static
-
class
hoobas.MartiniModels.MartiniChain(**kwargs)[source]¶ General implementation of most Martini chains (lipids or others). Sets the bond length, units and Martini mappings
-
class
hoobas.MartiniModels.MartiniForceMappings[source]¶ Martini force mapping; use the get_pair(beadA, beadB, units) to get the LJ potential.
-
static
get_pair(beadtypeA, beadtypeB, units=None)[source]¶ Returns the pair ineraction parameters between two beadtypes. Units can be supplied, otherwise it uses whichever units were defined as default
- Parameters
beadtypeA (str) – first beadtype
beadtypeB (str) – second beadtype
units (SimulationUnits) – units of the LJ parameters
- Returns
LJ parameters
- Return type
dict
-
static
get_pair_polarizable(beadtypeA, beadtypeB, units=None)[source]¶ Returns the pair ineraction parameters between two beadtypes for the polarizable martini force-field. Units can be supplied, otherwise it uses whichever units were defined as default
- Parameters
beadtypeA (str) – first beadtype
beadtypeB (str) – second beadtype
units (SimulationUnits) – units of the LJ parameters
- Returns
LJ parameters
- Return type
dict
-
static