Data loading input file section (required)¶
This required section is denoted by the keyword read and is described in Read.
The section includes objects indexed by the following keywords:
molecules: a list of molecule input objects of classMoleculepotential maps: a list of electrostatic potential map input objects of classMapcharge density maps: a list of charge density map input objects of classMapion accessibility maps: a list of ion accessibility map input objects of classMapdielectric maps: a list of dielectric map input objects of classDielectricMapGroupparameters: a list of parameter files of classParameter
Data loading input file API¶
These classes provide information about data input for APBS.
-
class
apbs.input_file.read.DielectricMapGroup(dict_=None, yaml=None, json=None)[source]¶ Bases:
apbs.input_file.InputFileInput class for a group of three dielectric maps.
These three maps represent the dielectric function mapped to three meshes, shifted by one-half grid spacing in the x, y, and z directions. The inputs are maps of dielectric variables between the solvent and biomolecular dielectric constants; these values are unitless.
Objects can be initialized with dictionary/JSON/YAML data with the following keys:
alias: seealias()format: seeformat()x-shifted path: string with path to x-shifted map (seepaths())y-shifted path: string with path to y-shifted map (seepaths())x-shifted path: string with path to z-shifted map (seepaths())
More information about these properties is provided below.
-
alias¶ String used to refer to these maps elsewhere in the input file.
Raises: TypeError – if value is not string
-
format¶ Format for scalar input map.
One of:
dx: OpenDX scalar data formatdx.gz: GZip-compressed OpenDX scalar data format
Raises: ValueError – if assigned incorrect format value
-
from_dict(dict_)[source]¶ Load object contents from dictionary.
Parameters: dict (dict) – dictionary with object contents Raises: KeyError – if dictionary elements missing
-
from_json(input_)¶ Parse JSON-format input string into this object.
Parameters: input (str) – JSON-format input string
-
from_yaml(input_)¶ Parse YAML-format input string into this object.
Parameters: input (str) – YAML-format input string
-
paths¶ 3-tuple of strings.
Tuple contains paths to the x-, y-, and z-shifted dielectric maps.
Raises: - IndexError – if length of list is not 3
- TypeError – if list does not contain strings
-
to_json() → str¶ Produce JSON representation of self.
-
to_yaml() → str¶ Produce YAML representation of self.
-
validate()[source]¶ Validate object.
Raises: ValueError – if object invalid
-
class
apbs.input_file.read.Map(dict_=None, yaml=None, json=None)[source]¶ Bases:
apbs.input_file.InputFileInput class for scalar grid data input.
Objects can be initialized with dictionary/JSON/YAML data with the following keys:
-
alias¶ String used to refer to this map elsewhere in the input file.
Raises: TypeError – if alias is not a string
-
format¶ Format for scalar input map.
One of:
dx: OpenDX scalar data formatdx.gz: GZip-compressed OpenDX scalar data format
Raises: ValueError – if format is not one of allowed values
-
from_dict(input_)[source]¶ Load object contents from dictionary.
Parameters: input (dict) – input dictionary Raises: KeyError – if input is missing keys
-
from_json(input_)¶ Parse JSON-format input string into this object.
Parameters: input (str) – JSON-format input string
-
from_yaml(input_)¶ Parse YAML-format input string into this object.
Parameters: input (str) – YAML-format input string
-
to_json() → str¶ Produce JSON representation of self.
-
to_yaml() → str¶ Produce YAML representation of self.
-
validate()[source]¶ Validate the object.
Raises: ValueError – if object is not valid
-
-
class
apbs.input_file.read.Molecule(dict_=None, yaml=None, json=None)[source]¶ Bases:
apbs.input_file.InputFileInput class for molecule input.
Objects can be initialized with dictionary/JSON/YAML data with the following keys:
-
alias¶ String used to refer to this map elsewhere in the input file.
Raises: TypeError – if alias is not string
-
format¶ Format of molecule input.
One of:
Raises: ValueError – if format is not one of the above
-
from_dict(input_)[source]¶ Load object contents from dictionary.
Parameters: input (dict) – input dictionary Raises: KeyError – if input is missing keys
-
from_json(input_)¶ Parse JSON-format input string into this object.
Parameters: input (str) – JSON-format input string
-
from_yaml(input_)¶ Parse YAML-format input string into this object.
Parameters: input (str) – YAML-format input string
-
to_json() → str¶ Produce JSON representation of self.
-
to_yaml() → str¶ Produce YAML representation of self.
-
validate()[source]¶ Validate the object.
Raises: ValueError – if object is not valid
-
-
class
apbs.input_file.read.Parameter(dict_=None, yaml=None, json=None)[source]¶ Bases:
apbs.input_file.InputFileInput class for parameter file input.
Objects can be initialized with dictionary/JSON/YAML data with the following keys:
-
alias¶ String used to refer to this map elsewhere in the input file.
Raises: TypeError – if not a string
-
format¶ Format of the parameter file.
One of:
Raises: ValueError – if given invalid format
-
from_dict(input_)[source]¶ Load object contents from dictionary.
Parameters: input (dict) – input dictionary Raises: KeyError – if dictionary elements missing
-
from_json(input_)¶ Parse JSON-format input string into this object.
Parameters: input (str) – JSON-format input string
-
from_yaml(input_)¶ Parse YAML-format input string into this object.
Parameters: input (str) – YAML-format input string
-
to_json() → str¶ Produce JSON representation of self.
-
to_yaml() → str¶ Produce YAML representation of self.
-
validate()[source]¶ Validate this object.
Raises: ValueError – if object is invalid
-
-
class
apbs.input_file.read.Read(dict_=None, yaml=None, json=None)[source]¶ Bases:
apbs.input_file.InputFileClass for information about data to be loaded into APBS.
Objects can be initialized with dictionary/JSON/YAML data with the following keys:
molecules: a list of molecule input objects (seeMolecule)potential maps: a list of electrostatic potential map input objects (seeMap)charge density maps: a list of charge density map input objects (seeMap)ion accessibility maps: a list of ion accessibility map input objects (seeMap)dielectric maps: a list of dielectric map input objects (seeDielectricMapGroup)parameters: a list of parameter files
-
charge_density_maps¶ List of charge density
Mapobjects..These maps can be used to provide charge density (source term) distributions outside of the normal atom-based charge distribution obtained from a molecular structure.
Units of charge density are \(e_c Å^{-3}\).
Raises: TypeError – if something other than Mapin list
-
dielectric_maps¶ List of
DielectricMapGroupobjects.These 3-tuples represent the dielectric function mapped to 3 meshes, shifted by one-half grid spacing in the x, y, and z directions. The inputs are maps of dielectric variables between the solvent and biomolecular dielectric constants; these values are unitless.
Raises: TypeError – if something other than DielectricMapGroupin list
-
from_dict(input_)[source]¶ Load object contents from dictionary.
Parameters: input (dict) – input dictionary Raises: KeyError – if input is missing keys
-
from_json(input_)¶ Parse JSON-format input string into this object.
Parameters: input (str) – JSON-format input string
-
from_yaml(input_)¶ Parse YAML-format input string into this object.
Parameters: input (str) – YAML-format input string
-
ion_accessibility_maps¶ List of ion accessibility
Mapobjects..The maps specify ion accessibility values which range between 0 (inaccessible) and the value of the Debye-Hückel screening parameter; these values have units of \(Å^{-2}\).
Raises: TypeError – if something other than Mapin list
-
potential_maps¶ List of electrostatic potential
Mapobjects.”.These maps can be used to set the electrostatic potential at the boundary to values outside of the traditional mappings.
Units of electrostatic potential are \(k_b T e_c^{-1}\).
Raises: TypeError – if something other than Mapin list
-
to_json() → str¶ Produce JSON representation of self.
-
to_yaml() → str¶ Produce YAML representation of self.
-
validate()[source]¶ Validate this input object.
Raises: ValueError – if invalid