All-atom topology module
Module contents
Create and manage CNS all-atom topology.
The [topoaa]
module is dedicated to the generation of CNS compatible
parameters (.param) and topologies (.psf) for each of the input structures.
It will: - Detect missing atoms, including hydrogens - Re-build them when missing - Build and write out topologies (psf) and coordinates (pdb) files
This module is a pre-requisite to run any downstream modules using CNS. Having access to parameters and topology is mandatory for any kind of EM/MD related tasks. Therefore this is the reason why the module [topoaa] is often used as first module in a workflow.
Note that for non-standard bio-molecules (apart from standard amino-acids, some modified ones, DNA, RNA, ions and carbohydrates … see detailed list of supported molecules), such as small-molecules, parameters and topology must be obtained and provided by the user, as there is currently no built-in solution to generate them on the fly.
- class haddock.modules.topology.topoaa.HaddockModule(order: int, path: Path, initial_params: str | Path = PosixPath('/opt/hostedtoolcache/Python/3.10.15/x64/lib/python3.10/site-packages/haddock/modules/topology/topoaa/defaults.yaml'))[source]
Bases:
BaseCNSModule
HADDOCK3 module to create CNS all-atom topologies.
- static get_ensemble_origin(ensemble_f: str | Path) dict[int, str] [source]
Try to find origin for each model in ensemble.
- Parameters:
ensemble_f (FilePath) – Path to a pdb file containing an ensemble.
- Returns:
origin_dic (dict[int, str]) – Dictionary holding as keys the modelID and values its origin.
- haddock.modules.topology.topoaa.generate_topology(input_pdb: Path, recipe_str: str, defaults: MutableMapping[str, Any], mol_params: MutableMapping[str, Any], default_params_path: str | Path | None = None, write_to_disk: bool | None = True) Path | str [source]
Generate a HADDOCK topology file from input_pdb.