libstructure: functions related to structures
Molecular data structures.
- class haddock.libs.libstructure.Molecule(file_name: Path, segid: int | None = None, no_parent: bool = False)[source]
Bases:
object
Input molecule, usually a PDB file.
- Parameters:
file_name (
pathlib.Path
) – The path to the molecule file.segid (int, optional) – The ID of the segment. Defaults to
None
.no_parent (boolean) – Whether to add the parent path
..
to thehaddock.libs.libstructure.Molecule.with_parent
. When set to true, thewith_parent
attribute returns the same asfile_name
.