ties.Ligand¶
- class ties.Ligand(ligand, config=None, save=True)[source]¶
The ligand helper class. Helps to load and manage the different copies of the ligand file. Specifically, it tracks the different copies of the original input files as it is transformed (e.g. charge assignment).
- Parameters:
ligand (string) – ligand filepath
config (
Config
) – Optional configuration from which the relevant ligand settings can be usedsave (bool) – write a file with unique atom names for further inspection
Methods
__init__
(ligand[, config, save])Constructor method
antechamber_prepare_mol2
(**kwargs)Converts the ligand into a .mol2 format.
Checks if atom names:
If the file is not a prep/ac file, this function does not do anything.
Ensure that each atom name:
generate_frcmod
(**kwargs)params
overwrite_coordinates_with
(file, output_file)Load coordinates from another file and overwrite the coordinates in the current file.
Ambertools antechamber creates sometimes DU dummy atoms.
suffix
()Attributes
LIG_COUNTER
Otherwise, key: newName, value: oldName.
rev_renaming_map