haddock3
  • A brief introduction to HADDOCK3
  • Installation
  • Usage
  • Workflow Examples
  • Advanced features
  • Command-line interfaces
  • Modules
  • Testing
  • Contributing to HADDOCK3
  • Citing
  • Library Reference
    • Core Reference
    • Libs Reference
      • Subpackages
      • Submodules
        • libalign: sequence and structural alignments
        • libcli: functions helping clients
        • libclust: functions related to clustering
        • libcns: creating CNS files
        • haddock.libs.libfcc module
        • libfunc: functional-programming helping tools
        • libhpc: HPC execution functions
        • libinteractive: functions related to interactive tasks
        • libio: I/O helping functions
        • liblog: Logging helping functions
        • libmath: Math helping functions
        • libmpi: MPI execution functions
        • libontology: module communication
        • libparallel: multiprocessing helping functions
        • libpdb: PDB helping functions
        • libplots: plotting functionalities
        • libprodigy: classes and functions related to the use of prodigy
        • librestraints: functions related to restraints
        • libstructure: functions related to structures
        • libsubprocess: subprocess execution functions
        • libtimer: timing functions
        • libutil: utility functions
        • libworkflow: workflow functions
      • Module contents
    • Gear Reference
haddock3
  • Library Reference
  • Libs Reference
  • libstructure: functions related to structures
  • View page source

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 the haddock.libs.libstructure.Molecule.with_parent. When set to true, the with_parent attribute returns the same as file_name.

haddock.libs.libstructure.make_molecules(paths: Iterable[Path], **kwargs: Any) → list[Molecule][source]

Get input molecules from the data stream.

Previous Next

© Copyright 2025, BonvinLab. Last updated on Jun 12, 2025.

Built with Sphinx using a theme provided by Read the Docs.