haddock.modules.analysis.caprifilter package
Submodules
Module contents
Filter models by any combination of CAPRI metrics computed against a reference structure.
The user specifies a list of metrics via filter_by (e.g. ['irmsd', 'fnat']).
For each metric, a per-metric cutoff and filter direction are set independently:
{metric}_filter_cutoff: the numerical threshold.{metric}_filter_out:aboveremoves models where value > cutoff (keep ≤);belowremoves models where value < cutoff (keep ≥).
All active filters are applied simultaneously (AND logic), a model must pass every filter to be kept. The following metrics are supported:
RMSD
iRMSD (interface RMSD)
lRMSD (ligand RMSD)
ilRMSD (interface ligand RMSD)
FNAT (fraction of native contacts)
DOCKQ
The following files are generated:
caprifilter.tsv: kept models with score and the user-requested metric columns only.
caprifilter_all_models.tsv: all input models, user-requested metrics, and a
statuscolumn (kept/filtered). Written only whencaprifilter_full = true.caprifilter_ss.tsv: caprieval-style ranked table of all models.
caprifilter_multiref.tsv: when multiple references are provided, one row per (model, reference) pair.
For more details about this module, please refer to the haddock3 user manual
- class haddock.modules.analysis.caprifilter.HaddockModule(order: int, path: Path, init_params: str | Path = PosixPath('/opt/hostedtoolcache/Python/3.10.20/x64/lib/python3.10/site-packages/haddock/modules/analysis/caprifilter/defaults.yaml'))[source]
Bases:
BaseHaddockModuleHADDOCK3 module to filter models by CAPRI metrics.