haddock.modules.base_cns_module module

Functionalities related to CNS modules.

class haddock.modules.base_cns_module.BaseCNSModule(order: int, path: Path, initial_params: str | Path, cns_script: str | Path)[source]

Bases: BaseHaddockModule

Operation module for CNS.

Contains additional functionalities excusive for CNS modules.

default_envvars() dict[str, str][source]

Return default env vars updated to envvars (if given).

get_ambig_fnames(prev_ambig_fnames: list[None | str | Path]) list[str | Path] | None[source]

Get the correct ambiguous restraint names.

Parameters:

prev_ambig_fnames (list) – list of ambig_fname files encoded in previous models

Returns:

ambig_fnames (list or None) – list of ambig_fname files to be used by the CNS module

make_self_contained() None[source]

Create folders to make run self-contained.

run(**params: Any) None[source]

Execute the module.

save_envvars(filename: str | Path = 'envvars') None[source]

Save envvars needed for CNS to a file in the module’s folder.