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
  • libinteractive: functions related to interactive tasks
  • View page source

libinteractive: functions related to interactive tasks

Set of functions related to haddock3 interactive rescoring haddock3-re.

haddock.libs.libinteractive.handle_clt_file(df_ss, clt_ranks_dict)[source]

Handle capri.clt file.

Parameters:
  • df_ss (pd.DataFrame) – The caprieval ss data.

  • clt_ranks_dict (dict) – New cluster ranking dictionary.

  • Reclustering modifies the cluster data, so capri_clt.tsv must be updated.

haddock.libs.libinteractive.handle_ss_file(df_ss: DataFrame) → tuple[DataFrame, dict][source]

Manage a caprieval capri_ss file focusing on 4 first elements per cluster.

Parameters:

df_ss (pd.DataFrame) – The caprieval ss data.

Returns:

  • df_ss (pd.DataFrame) – The input dataframe

  • clt_ranks_dict (dict) – Dictionary with the cluster ranks

haddock.libs.libinteractive.look_for_capri(run_dir: str, module_id: int) → Path | None[source]

Look for capri evaluation files previous to clustfcc_dir.

Parameters:
  • run_dir (str) – Path to the haddock3 run directory

  • module_id (int) – Id of the module.

Returns:

capri_eval (Path) – Path to the capri evaluation file

haddock.libs.libinteractive.rewrite_capri_tables(caprieval_folder: str, clt_dic: dict, outdir: str) → None[source]

Rewrite the capri tables with new values.

Parameters:
  • caprieval_folder (str) – Path to the capriveal folder to be changed

  • clt_dic (dict) – Data for each cluster

  • outdir (str) – Output directory

Previous Next

© Copyright 2025, BonvinLab. Last updated on Jul 02, 2025.

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