Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/JMorado/ParaMol
/ functions
Functions
302 in github.com/JMorado/ParaMol
⨍
Functions
302
◇
Types & classes
54
↓ 27 callers
Method
create_force_field
Method that wraps the methods create_force_field_from_openmm/read_ff_file and create_force_field_optimizable in order to ease the procedure o
ParaMol/Force_field/force_field.py:52
↓ 26 callers
Method
add_parameter
Method that adds a :obj:`ParaMol.Force_field.force_field_term_parameter.Parameter` with key `param_key` to the parameters dictionary.
ParaMol/Force_field/force_field_term.py:59
↓ 21 callers
Method
run_calculation
Method that runs an ASE calculation. Parameters ---------- coords : np.ndarray, shape=(n_atoms,3), dtype=float
ParaMol/QM_engines/ase_wrapper.py:122
↓ 18 callers
Method
get_positions
Method that gets the Context positions. Returns ---------- positions : np.array Array containing the pos
ParaMol/MM_engines/openmm.py:789
↓ 16 callers
Method
get_potential_energy
Method that, given an array of positions (in nanometers), sets the context atomic positions and computes the potential energy. Param
ParaMol/MM_engines/openmm.py:448
↓ 15 callers
Method
write_data
Method that writes coordinates, reference energies and reference forces to a NetCDF 4 (.nc) file. Parameters ----------
ParaMol/System/system.py:635
↓ 14 callers
Method
get_energies_ensemble
Method that calculates the MM energies of the ensemble of configurations contained in the ref_coordinates attribute. Returns
ParaMol/System/system.py:340
↓ 14 callers
Method
read_data
Method that reads coordinates, reference energies and reference forces from a NetCDF 4 (.nc) file. Parameters ----------
ParaMol/System/system.py:567
↓ 14 callers
Method
run_task
Method that is used when a task is not implemented. Parameters ---------- args : any kwargs : any R
ParaMol/Tasks/task.py:38
↓ 14 callers
Method
set_positions_rdkit_conf
Method that sets the given positions in the given RDKit conformer. Parameters ---------- rdkit_conf : :obj:`rdkit.Ch
ParaMol/Tasks/torsions_scan.py:861
↓ 14 callers
Method
write_ff_file
Method that writes the force field parameters in the standard format used by ParaMol (usually .ff extension). Parameters ---
ParaMol/Force_field/force_field.py:565
↓ 14 callers
Method
write_restart_pickle
Method that writes restart pickle. Parameters ---------- restart_settings: dict Dictionary containing gl
ParaMol/Tasks/task.py:260
↓ 12 callers
Method
create_qm_engines
Method (top-level) that creates a QM engine for the system. Parameters ---------- qm_engine_name : str N
ParaMol/System/system.py:130
↓ 12 callers
Method
update_systems
Method that defines defines the point of contact with the external world. Parameters ---------- parameters_values :
ParaMol/Parameter_space/parameter_space.py:348
↓ 10 callers
Method
chdir
Method that changes directory. Parameters ---------- args : strings Strings to be joined. absolu
ParaMol/Utils/interface.py:60
↓ 10 callers
Method
chdir_base
Method that goes back to the base directory. Returns ------- cwd : str Current working directory.
ParaMol/Utils/interface.py:125
↓ 10 callers
Method
f
Method that calculates the objective function for a given set of parameters. Parameters ---------- parameters_values
ParaMol/Objective_function/objective_function.py:231
↓ 9 callers
Method
read_restart_pickle
Method that reads restart pickle. Parameters ---------- restart_settings: dict Dictionary containing glo
ParaMol/Tasks/task.py:223
↓ 8 callers
Method
compute_conformations_weights
Method that calculates the weights of every configuration of the ensemble or sets them in case manual weighting is used. Notes
ParaMol/System/system.py:165
↓ 8 callers
Method
convert_system_ref_arrays_to_list
Method that checks the data type of the forces, energies and coordinates data structures and converts them to lists. Parameters
ParaMol/System/system.py:525
↓ 7 callers
Method
check_dir_exists
Method that checks if the fed directories exist. Parameters ---------- dirs : str or list of str List or
ParaMol/Utils/interface.py:216
↓ 7 callers
Method
create_force_field_optimizable
Method that creates the optimizable force field dictionary that contains all the optimizable FFTerms. The FFTerms are grouped in list
ParaMol/Force_field/force_field.py:231
↓ 7 callers
Method
get_atom_list
Method that gets a list of the atom symbols. Returns ------- atom_list : list of str List of the atom sy
ParaMol/MM_engines/openmm.py:256
↓ 7 callers
Method
get_forces
Method that, given an array of positions (in nanometers), sets the context atomic positions and computes the forces. Parameters
ParaMol/MM_engines/openmm.py:484
↓ 7 callers
Method
get_optimizable_parameters
Method that returns a list with the optimizable parameters to be passed to the optimization. Parameters ---------- s
ParaMol/Parameter_space/parameter_space.py:276
↓ 7 callers
Method
get_optimizable_parameters
Method that gets the lists containing all optimizable Parameter instances and parameter values. Parameters ----------
ParaMol/Force_field/force_field.py:273
↓ 7 callers
Method
get_rdkit_mol_conf
Method that creates and returns a RDKit Conformer instance and a RDKit Molecule instance of the ParaMol system passed as an argument.
ParaMol/Tasks/torsions_scan.py:826
↓ 7 callers
Method
get_symmetries
Method that gets symmetries with the aid of Parmed. User-defined charge symmetries require the passing of the force_field_instance argument.
ParaMol/Utils/Symmetrizers/symmetrizer.py:34
↓ 7 callers
Method
set_bonded_parameters
Method that wraps the methods set_harmonic_bond_force_parameters, set_harmonic_angle_force_parameters, and set_periodic_torsion_force_paramet
ParaMol/MM_engines/openmm.py:590
↓ 6 callers
Method
get_kinetic_energy
Method that computes the kinetic energy. Returns ------- ekin : float Kinetic energy value in kJ/mol.
ParaMol/MM_engines/openmm.py:468
↓ 6 callers
Method
run_subprocess
A wrapper for subprocess.check_call. Parameters ---------- commands : str or list of str Shell commands
ParaMol/Utils/interface.py:168
↓ 6 callers
Method
run_task
Method that performs the standard ParaMol parametrization. Parameters ---------- settings : dict
ParaMol/Tasks/parametrization.py:36
↓ 6 callers
Method
set_positions
Method that sets the Context positions. Parameters ---------- positions : np.array Array containing the
ParaMol/MM_engines/openmm.py:763
↓ 5 callers
Method
create_dir
Method that checks if the fed directories exists and if they don't exists it creates them. Parameters ---------- dir
ParaMol/Utils/interface.py:142
↓ 5 callers
Method
create_parameter_space
Method that created the ParameterSpace object instance. Parameters ---------- settings : dict Dictionary
ParaMol/Tasks/task.py:55
↓ 5 callers
Method
init_openmm
Method that initiates OpenMM by creating Parameters ---------- integrator_params : dict Keyword argument
ParaMol/MM_engines/openmm.py:161
↓ 5 callers
Method
jacobi_preconditioning
Method that applies Jacobi (diagonal) preconditioning to the parameters that will enter in the optimization. Notes -----
ParaMol/Parameter_space/parameter_space.py:248
↓ 5 callers
Method
run_md
Method that runs an ASE calculation. Parameters ---------- coords : np.ndarray, shape=(n_atoms,3), dtype=float
ParaMol/QM_engines/ase_wrapper.py:236
↓ 5 callers
Method
save
Method that writes the AMBER, GROMACS, CHARMM, and .mol2 files with the current force field parameters of the self._top_file instance.
ParaMol/Utils/Symmetrizers/symmetrizer.py:351
↓ 5 callers
Method
set_nonbonded_parameters
Method that updates the non-bonded parameters of the OpenMM system. Parameters ---------- force_field_optimizable :
ParaMol/MM_engines/openmm.py:661
↓ 5 callers
Method
symmetrize_force_field
Method that symmetrizes the ParaMol force field so that it respect atom-type symmetries. Parameters ---------- force
ParaMol/Utils/Symmetrizers/symmetrizer.py:157
↓ 5 callers
Method
update_term_types_parameters
Method that updates the term type parameters in the Parmed AMBER topology object. Notes ----- This method should be
ParaMol/Utils/Symmetrizers/symmetrizer.py:253
↓ 5 callers
Method
write_system_xml
Method that writes the OpenMM system stored in the `system` attribute to an XML file. Parameters ---------- file_nam
ParaMol/MM_engines/openmm.py:341
↓ 4 callers
Method
calculate_parameters_magnitudes
Method that calculates the widths of the prior distributions or the scalings constants of the parameters according to different recipes.
ParaMol/Parameter_space/parameter_space.py:174
↓ 4 callers
Method
calculate_property
Method that calculates the value of the energy property. Parameters ---------- esp_data : np.array Array
ParaMol/Objective_function/Properties/esp_property.py:68
↓ 4 callers
Method
get_forces_ensemble
Method that calculates the MM forces of the ensemble of configurations contained in the ref_coordinates attribute. Returns -
ParaMol/System/system.py:324
↓ 4 callers
Method
get_masses
Method that gets the masses of atoms of the system (in amu). Returns ------- masses : list of floats Mas
ParaMol/MM_engines/openmm.py:305
↓ 4 callers
Method
get_rotatable_bonds
Method that determines the indices of the atoms which form rotatable (soft) bonds. Notes ----- Rotatable bond
ParaMol/Tasks/torsions_parametrization.py:321
↓ 4 callers
Method
get_velocities
Method that gets the Context velocities. Returns ---------- velocities : np.array Array containing the v
ParaMol/MM_engines/openmm.py:802
↓ 4 callers
Method
init_parallel
Method that initializes the variables and calls the functions necessary to perform parallel objective function evaluation. Returns
ParaMol/Objective_function/objective_function.py:112
↓ 4 callers
Method
run_task
Method that performs a RESP calculation. Notes ----- Only one ParaMol system is supported at once. Paramete
ParaMol/Tasks/resp_fitting.py:34
↓ 4 callers
Method
save_frcmod
Method that saves the .frcmod AMBER file with the current force field parameters of the self._amber_prmtop instance. Notes -
ParaMol/Utils/Symmetrizers/amber_symmetrizer.py:32
↓ 4 callers
Method
set_non_bonded_parameters_to_zero
Method that sets all non bonded parameters to zero, namely sigma, epsilon and charge to zero. This is done for all the particles and exceptio
ParaMol/MM_engines/openmm.py:618
↓ 4 callers
Method
write_coordinates_xyz
Method that writes all stored conformations to a .xyz file. Parameters ---------- output_file_name : str
ParaMol/System/system.py:688
↓ 3 callers
Method
calculate_prior_widths
Method that calculates the prior widths and sets the class attribute self.prior_widths. Parameters ---------- method
ParaMol/Parameter_space/parameter_space.py:140
↓ 3 callers
Method
calculate_scaling_constants
Method that calculates the scaling constants and sets the class attribute self.scaling_constants. Parameters ----------
ParaMol/Parameter_space/parameter_space.py:108
↓ 3 callers
Method
calculate_variance
(self)
ParaMol/Objective_function/Properties/property.py:19
↓ 3 callers
Method
create_objective_function
Method that creates the ObjectiveFunction instances Parameters ---------- objective_function_settings : dict
ParaMol/Tasks/task.py:162
↓ 3 callers
Method
create_properties
Method that creates the Property instances Parameters ---------- properties_settings : dict Properties se
ParaMol/Tasks/task.py:110
↓ 3 callers
Method
freeze_atoms
Method that freezes atoms in atom_list of an OpenMM system. Notes ----- This methods sets the mass of the atoms in a
ParaMol/Tasks/torsions_scan.py:932
↓ 3 callers
Method
freeze_torsions
Method that freezes the torsion_to_freeze torsion of an OpenMM system by adding a restraint to it. Parameters ----------
ParaMol/Tasks/torsions_scan.py:887
↓ 3 callers
Method
get_rotatable_torsions
Method that determines the quartets that form rotatable (soft) torsions. Parameters ---------- system: :obj:`ParaMol
ParaMol/Tasks/torsions_parametrization.py:363
↓ 3 callers
Method
set_velocities
Method that sets the Context positions. Parameters ---------- velocities : np.array Array containing the
ParaMol/MM_engines/openmm.py:776
↓ 3 callers
Method
update_force_field
Method that updates the value of each Parameter object instance. Parameters ---------- optimizable_parameters_values
ParaMol/Force_field/force_field.py:102
↓ 2 callers
Method
_acceptance_rate_mm
(self)
ParaMol/HMC/hmc_sampler.py:660
↓ 2 callers
Method
_acceptance_rate_mm
(self)
ParaMol/HMC/hmc_sampler_qm_mm.py:674
↓ 2 callers
Method
_add_regularization
Method that adds the regularization part of the A and B matrices. Returns ------- self._A, self._B
ParaMol/MM_engines/least_square.py:253
↓ 2 callers
Method
_add_symmetries
Method that adds the symmetrie part of the A and B matrices. Returns ------- self._A, self._B
ParaMol/MM_engines/least_square.py:293
↓ 2 callers
Method
_calculate_a
Method that calculates the auxiliary A matrix. Notes ----- This is only necessary for the explicit solution case.
ParaMol/MM_engines/resp.py:381
↓ 2 callers
Method
_calculate_a
Method that calculates the A matrix. Parameters ---------- system : :obj:`ParaMol.System.system.ParaMolSystem`
ParaMol/MM_engines/least_square.py:469
↓ 2 callers
Method
_calculate_b
Method that calculates the auxiliary B matrix. Notes ----- This is only necessary for the explicit solution case. :m
ParaMol/MM_engines/resp.py:463
↓ 2 callers
Method
_calculate_b
Method that calculates the B matrix. Parameters ---------- system : :obj:`ParaMol.System.system.ParaMolSystem`
ParaMol/MM_engines/least_square.py:651
↓ 2 callers
Method
_calculate_regularization_derivative
Method that wraps private regularization derivatives methods in order to calculate the derivative of regularization term. Parameters
ParaMol/MM_engines/resp.py:526
↓ 2 callers
Method
_calculate_scaling_constants
Method that generates the scaling constant's vector. Parameters ---------- method : str, optional Method
ParaMol/MM_engines/least_square.py:362
↓ 2 callers
Method
_get_total_charge
Method that gets the system's total charge as in the ParaMol ForceField of the ParaMolSystem. Parameters ----------
ParaMol/Tasks/parametrization.py:265
↓ 2 callers
Method
_hmc_acceptance_criterion_mm
Method that accepts or rejects a configuration generated by a short MD simulation. Parameters ---------- pot_final :
ParaMol/HMC/hmc_sampler.py:615
↓ 2 callers
Method
_hmc_acceptance_criterion_mm
Method that accepts or rejects a configuration generated by a short MD simulation. Parameters ---------- pot_final :
ParaMol/HMC/hmc_sampler_qm_mm.py:629
↓ 2 callers
Method
_plot
Method that plots the objective function. Parameters ---------- x : list or np.array x points. y
ParaMol/Tasks/objective_function_plot.py:201
↓ 2 callers
Method
_print_output
(self, system_name)
ParaMol/HMC/hmc_sampler.py:581
↓ 2 callers
Method
_reconstruct_parameters
Method that reconstructs the parameters after the LLS. Parameters ---------- final_parameters : np.array or list
ParaMol/MM_engines/least_square.py:386
↓ 2 callers
Method
_write_data
Method that writes objective function plot data to a file. Parameters ---------- data: np.array Returns
ParaMol/Tasks/objective_function_plot.py:186
↓ 2 callers
Method
calculate_inverse_distances
Method that calculates the inverse distances (1/rij) between the atomic centre j and the electrostatic point i for every every conformation o
ParaMol/MM_engines/resp.py:99
↓ 2 callers
Method
calculate_variance
Method that calculates the variance covariance of the QM forces, :math:`var(|F_{i,j}^{QM}|)`. Notes ----- This is us
ParaMol/Objective_function/Properties/force_property.py:175
↓ 2 callers
Method
chdir_previous
Method that changes to previous directory. Returns ------- cwd : str Current working directory.
ParaMol/Utils/interface.py:101
↓ 2 callers
Function
conformational_sampling
Function that performs conformational sampling on a given ParaMol system and calculated the ab initio properties (energies and forces). Note
ParaMol/Utils/conformational_sampling.py:8
↓ 2 callers
Method
generate_maxwell_boltzmann_velocities
Generate random velocities for the solute.
ParaMol/MM_engines/openmm.py:815
↓ 2 callers
Method
get_atomic_numbers
Method that gets a list of the atomic numbers of the system. Returns ------- atom_list : list of str Lis
ParaMol/MM_engines/openmm.py:273
↓ 2 callers
Method
get_cell
Method that gets the cell vectors. Returns ------- cell : np.array (3,3) array containing the cell vecto
ParaMol/MM_engines/openmm.py:320
↓ 2 callers
Method
minimize_system
Method that minimizes the system's energy starting from the state stored at the context attribute. Notes ----- More
ParaMol/MM_engines/openmm.py:366
↓ 2 callers
Method
noisy_objective_function
(self, parameters, noise=0.1)
ParaMol/Optimizers/devel/bayesian.py:28
↓ 2 callers
Method
optimize_torsions_by_symmetry
Methods that sets as optimizable all parameters of the torsions with the same symmetry groups as the ones contained in the listed passed as a
ParaMol/Force_field/force_field.py:842
↓ 2 callers
Method
read_log_files
Method that reads multiple files that correspond to the output of a gaussian ESP calculation. Parameters ----------
ParaMol/Utils/gaussian_esp.py:80
↓ 2 callers
Method
run_optimization
Method to run the parameter's optimization per se. Parameters ---------- f : callable Reference to the o
ParaMol/Optimizers/optimizer.py:60
↓ 2 callers
Method
set_charges
Method that sets the `charges` attribute by constructing a list with the current ParaMol Force Field charges. Parameters ---
ParaMol/MM_engines/resp.py:136
↓ 2 callers
Method
set_initial_parameters_values
Method that sets the initial parameters' values as a private attribute of this instance. Parameters ---------- initi
ParaMol/Objective_function/Properties/regularization.py:68
↓ 2 callers
Method
set_prior_widths
Method that sets the prior widths of the variables as a private attribute of this instance. Parameters ---------- pr
ParaMol/Objective_function/Properties/regularization.py:86
↓ 2 callers
Function
unit_vector
Method that returns the unit vector of the vector. Parameters ---------- v : list of np.array Vector to normalize. Ret
ParaMol/Utils/geometry.py:24
↓ 2 callers
Method
wham_reweighing
Method that performs WHAM reweighting. Notes ----- For more info see the source: "Systematic Parametrization
ParaMol/System/system.py:250
↓ 1 callers
Method
__init__
(self, *args)
ParaMol/Objective_function/pickable_swig.py:33
↓ 1 callers
Method
_acceptance_rate_qm
(self)
ParaMol/HMC/hmc_sampler.py:720
next →
1–100 of 302, ranked by callers