Classes:
- 
          Config–The configuration with parameters that can be used to define the entire protocol. 
Config(**kwargs)
The configuration with parameters that can be used to define the entire protocol. The settings can be overridden later in the actual classes.
The settings are stored as properties in the object and can be overwritten.
Methods:
- 
            get_serializable–Get a JSON serializable structure of the config. 
Attributes:
- 
          workdir–Working directory for antechamber calls. 
- 
          protein–Path to the protein 
- 
          ligand_files–A list of ligand filenames. 
- 
          ambertools_home–Ambertools HOME path. If not configured, the env variable AMBERHOME as AMBER_PREFIX will be checked. 
- 
          ambertools_antechamber–Antechamber path based on the .ambertools_home 
- 
          ambertools_parmchk2–Parmchk2 path based on the .ambertools_home 
- 
          ambertools_tleap–Tleap path based on the .ambertools_home 
- 
          antechamber_dr–Whether to use -dr setting when calling antechamber. 
- 
          ligand_net_charge–The ligand charge. If not provided, neutral charge is assumed. 
- 
          coordinates_file–A file from which coordinate can be taken. 
- 
          atom_pair_q_atol–It defines the maximum difference in charge 
- 
          net_charge_threshold–Defines how much the superimposed regions can, in total, differ in charge. 
- 
          ignore_charges_completely–Ignore the charges during the superimposition. Useful for debugging. 
- 
          allow_disjoint_components–Defines whether there might be multiple superimposed areas that are 
- 
          use_element_in_superimposition–Use element rather than the actual atom type for the superimposition 
- 
          use_rmsd–Whether to use the RMSD to decide which solution is better. 
- 
          align_molecules_using_mcs–After determining the maximum common substructure (MCS), 
- 
          use_original_coor–Antechamber when assigning charges can modify the charges slightly. 
- 
          ligands_contain_q–If not provided, it tries to deduce whether charges are provided. 
- 
          superimposition_starting_pairs–Set a starting pair for the superimposition to narrow down the MCS search. 
- 
          manually_matched_atom_pairs–Either a list of pairs or a file with a list of pairs of atoms 
- 
          manually_mismatched_pairs–A path to a file with a list of a pairs that should be mismatched. 
- 
          protein_ff–The protein forcefield to be used by ambertools for the protein parameterisation. 
- 
          md_engine–The MD engine, with the supported values NAMD2.13, NAMD2.14, NAMD3 and OpenMM 
- 
          ligand_ff–The forcefield for the ligand. 
- 
          ligand_ff_name–Either GAFF or GAFF2 
- 
          redistribute_q_over_unmatched–The superimposed and matched atoms have every slightly different charges. 
- 
          use_hybrid_single_dual_top–Hybrid single dual topology (experimental). Currently not implemented. 
- 
          ligand_tleap_in–The name of the tleap input file for ambertools for the ligand. 
- 
          complex_tleap_in–The tleap input file for the complex. 
- 
          prep_dir–Path to the prepdirectory. Currently in theworkdir
- 
          pair_morphfrcmods_dir–Path to the .frcmod files for the morph. 
- 
          pair_morphfrmocs_tests_dir–Path to the location where a test is carried out with .frcmod 
- 
          pair_unique_atom_names_dir–Location of the morph files with unique filenames. 
- 
          lig_unique_atom_names_dir–Directory location for files with unique atom names. 
- 
          lig_frcmod_dir–Directory location with the .frcmod created for each ligand. 
- 
          lig_acprep_dir–Directory location where the .ac charges are converted into the .mol2 format. 
- 
          lig_dir–Directory location with the .mol2 files. 
Source code in ties/config.py
                    | 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 |  | 
property
      writable
  
workdir
Working directory for antechamber calls. If None, a temporary directory in /tmp/ will be used.
:return: Work dir :rtype: str
property
      writable
  
protein
Path to the protein
:return: Protein filename :rtype: str
property
      writable
  
ligand_files
A list of ligand filenames. :return:
property
      writable
  
ambertools_home
Ambertools HOME path. If not configured, the env variable AMBERHOME as AMBER_PREFIX will be checked.
:return: ambertools path
property
  
ambertools_antechamber
Antechamber path based on the .ambertools_home
:return:
property
  
ambertools_parmchk2
Parmchk2 path based on the .ambertools_home :return:
property
  
ambertools_tleap
Tleap path based on the .ambertools_home :return:
property
      writable
  
antechamber_dr
Whether to use -dr setting when calling antechamber.
:return:
property
      writable
  
ligand_net_charge
The ligand charge. If not provided, neutral charge is assumed. The charge is necessary for calling antechamber (-nc).
:return:
property
      writable
  
coordinates_file
A file from which coordinate can be taken.
:return:
property
      writable
  
atom_pair_q_atol
It defines the maximum difference in charge between any two superimposed atoms a1 and a2. If the two atoms differ in charge more than this value, they will be unmatched and added to the alchemical regions.
:return: default (0.1e) :rtype: float
property
      writable
  
net_charge_threshold
Defines how much the superimposed regions can, in total, differ in charge. If the total exceeds the thresholds, atom pairs will be unmatched until the threshold is met.
:return: default (0.1e) :rtype: float
property
      writable
  
ignore_charges_completely
Ignore the charges during the superimposition. Useful for debugging. :return: default (False) :rtype: bool
property
      writable
  
allow_disjoint_components
Defines whether there might be multiple superimposed areas that are separated by alchemical region.
:return: default (False) :rtype: bool
property
      writable
  
use_element_in_superimposition
Use element rather than the actual atom type for the superimposition during the joint-traversal of the two molecules.
:return: default (False) :rtype: bool
property
  
use_rmsd
Whether to use the RMSD to decide which solution is better. If two solutions are of the same length, the RMSD will be the decider.
The RMSD is calculated only for the joint part.
property
      writable
  
align_molecules_using_mcs
After determining the maximum common substructure (MCS), use it to align the coordinates of the second molecule to the first.
:return: default (False) :rtype: bool
property
      writable
  
use_original_coor
Antechamber when assigning charges can modify the charges slightly. If that's the case, use the original charges in order to correct this slight divergence in coordinates.
:return: default (?) :rtype: bool
property
      writable
  
ligands_contain_q
If not provided, it tries to deduce whether charges are provided. If all charges are set to 0, then it assumes that charges are not provided.
If set to False explicitly, charges are ignored and computed again.
:return: default (None) :rtype: bool
property
      writable
  
superimposition_starting_pairs
Set a starting pair for the superimposition to narrow down the MCS search. E.g. "C2-C12"
:rtype: str
property
      writable
  
manually_matched_atom_pairs
Either a list of pairs or a file with a list of pairs of atoms that should be superimposed/matched.
:return:
property
      writable
  
manually_mismatched_pairs
A path to a file with a list of a pairs that should be mismatched.
property
      writable
  
protein_ff
The protein forcefield to be used by ambertools for the protein parameterisation.
:return: default (leaprc.ff19SB) :rtype: string
property
      writable
  
md_engine
The MD engine, with the supported values NAMD2.13, NAMD2.14, NAMD3 and OpenMM
:return: NAMD2.13, NAMD2.14, NAMD3 and OpenMM :rtype: string
property
  
ligand_ff
The forcefield for the ligand.
property
      writable
  
ligand_ff_name
Either GAFF or GAFF2
:return:
property
      writable
  
redistribute_q_over_unmatched
The superimposed and matched atoms have every slightly different charges. Taking an average charge between any two atoms introduces imbalances in the net charge of the alchemical regions, due to the different charge distribution.
:return: default(True)
property
      writable
  
use_hybrid_single_dual_top
Hybrid single dual topology (experimental). Currently not implemented.
:return: default(False).
property
  
ligand_tleap_in
The name of the tleap input file for ambertools for the ligand.
:return: Default ('leap_ligand.in') :rtype: string
property
  
complex_tleap_in
The tleap input file for the complex.
:return: Default 'leap_complex.in' :type: string
property
  
prep_dir
Path to the prep directory. Currently in the workdir
:return: Default (workdir/prep)
property
  
pair_morphfrcmods_dir
Path to the .frcmod files for the morph.
:return: Default (workdir/prep/morph_frcmods)
property
  
pair_morphfrmocs_tests_dir
Path to the location where a test is carried out with .frcmod
:return: Default (workdir/prep/morph_frcmods/tests)
property
  
pair_unique_atom_names_dir
Location of the morph files with unique filenames.
:return: Default (workdir/prep/morph_unique_atom_names)
property
  
lig_unique_atom_names_dir
Directory location for files with unique atom names.
:return: Default (workdir/prep/unique_atom_names)
property
  
lig_frcmod_dir
Directory location with the .frcmod created for each ligand.
:return: Default (workdir/prep/ligand_frcmods)
property
  
lig_acprep_dir
Directory location where the .ac charges are converted into the .mol2 format.
:return: Default (workdir/prep/acprep_to_mol2)
property
  
lig_dir
Directory location with the .mol2 files.
:return: Default (workdir/mol2)
get_serializable()
Get a JSON serializable structure of the config.
pathlib.Path is not JSON serializable, so replace it with str
todo - consider capturing all information about the system here, including each suptop.get_serializable() so that you can record specific information such as the charge changes etc.
:return: Dictionary {key:value} with the settings :rtype: Dictionary
Source code in ties/config.py
              | 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 |  |