haddock.modules.topology.topocg package
Module contents
Create and manage CNS coarse-grained topology.
The [topocg] module is dedicated to the generation of CNS compatible
parameters and topologies (.psf) for each of the input structures.
It will:
- Convert an all atom model to a Martini coarse-grained model
- Detect missing atoms
- Re-build them when missing
- Build and write out topologies (.psf) and coordinates (.pdb) files
- Write out a restrain file to convert back the CG model to all atoms
Only standard amino acids and nucleic acids are supported.
For more details about this module, please refer to the haddock3 user manual
- class haddock.modules.topology.topocg.HaddockModule(order: int, path: Path, initial_params: str | Path = PosixPath('/opt/hostedtoolcache/Python/3.10.20/x64/lib/python3.10/site-packages/haddock/modules/topology/topocg/defaults.yaml'))[source]
Bases:
BaseCNSModuleHADDOCK3 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.topocg.generate_topology(input_pdb: Path, output_path: str, 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, force_field: str = 'martini2', shape: bool = False) Path | str[source]
Generate a HADDOCK topology file from input_pdb.