libontology: module communication
Describe the Haddock3 ontology used for communicating between modules.
- class haddock.libs.libontology.Format(value)[source]
Bases:
Enum
Input and Output possible formats.
- CNS_INPUT = 'inp'
- CNS_OUTPUT = 'out'
- MATRIX = 'matrix'
- PDB = 'pdb'
- PDB_ENSEMBLE = 'pdb'
- TOPOLOGY = 'psf'
- class haddock.libs.libontology.ModuleIO[source]
Bases:
object
Intercommunicating modules and exchange input/output information.
- class haddock.libs.libontology.PDBFile(file_name: Path | str, topology: Any | None = None, path: Path | str = '.', score: float = nan, md5: str | None = None, restr_fname: str | Path | None = None, unw_energies: dict[str, float] | None = None)[source]
Bases:
Persistent
Represent a PDB file.
- class haddock.libs.libontology.PDBPathT
Generic type variable for PDBFile or Path.
If the first annotated variable is PDBFile, the second annotated variable will be PDBFile instead of Path,vice versa.
- class haddock.libs.libontology.Persistent(file_name: str | Path, file_type: Format, path: str | Path = '.', md5: str | None = None, restr_fname: str | Path | None = None)[source]
Bases:
object
Any persistent file generated by this framework.