haddock.modules.analysis.caprieval.capri module

CAPRIeval-specific helpers: weight dumping and CNS step detection.

All shared CAPRI computation that are being used both in caprieval and in caprifilter (namely CAPRI class and metric functions) are in haddock.libs.libcapri.

haddock.modules.analysis.caprieval.capri.dump_weights(order: int) None[source]
haddock.modules.analysis.caprieval.capri.get_previous_cns_step(sel_steps: list, st_order: int) str | None[source]

Get the previous CNS step.

Parameters:
  • sel_steps (list) – List of folder names that are modules.

  • st_order (int) – Index of the current module.

Returns:

cns_step (str or None) – Name of the most recent CNS step.

haddock.modules.analysis.caprieval.capri.save_scoring_weights(cns_step: str) Path[source]

Save the scoring weights in a json file.

Parameters:

cns_step (str) – Name of the CNS step.

Returns:

scoring_params_fname (Path) – Path to the json file.