Skip to content

cli

Expose commands for running, listing and reporting HADDOCK3 refinements.

list_runs(session_dir, /, *, output=None)

List refinement runs and saved known structures from their IO indexes.

Read command options from RO-Crate and include runs recorded in both sources.

Parameters:

Name Type Description Default
session_dir Annotated[Path, Parameter(validator=Path(file_okay=False, dir_okay=True, exists=True))]

Session directory containing refinement runs.

required
output StdioPath | None

CSV output path; defaults to standard output.

None

report(session_dir, /, *, refine_run_id=None, top=1, no_group_by_structure=False, output=None)

Report the best final members of every cluster for each fitted input.

Parameters:

Name Type Description Default
session_dir Annotated[Path, Parameter(validator=Path(file_okay=False, dir_okay=True, exists=True))]

Session directory containing refinement results.

required
refine_run_id str | None

Refinement run to select; defaults to all runs.

None
top PositiveInt

Number of best members per cluster, or overall when grouping is disabled. This does not change the workflow's top_clusters or top_models options.

1
no_group_by_structure Annotated[bool, Parameter(negative='')]

Select the best top models overall instead of per fitted input and cluster.

False
output StdioPath | None

CSV output path; defaults to standard output.

None

run(session_dir, known_structure, /, *, refine_options=None, remove_known_chains=None, refine_run_id=None, powerfit_run_id=None, scheduler_address=None, _=None)

Refine structures fitted with PowerFit against a known structure using HADDOCK3.

The fitted structures will be refined against the known structure using HADDOCK3 rigidbody and molecular dynamics refinement.

The refined fitted structure and refined known structure are reconstructed from the refined complex made by HADDOCK3. The known structures original chain identifiers and residue numbers are restored.

Parameters:

Name Type Description Default
session_dir Annotated[Path, Parameter(validator=Path(file_okay=False, dir_okay=True, exists=True))]

Session directory containing fitted PowerFit results

required
known_structure Annotated[Path, Parameter(validator=Path(file_okay=True, dir_okay=False, exists=True))]

Path to the known structure to refine against. The known structure should be in the same coordinate system as the fitted structures from the session directory. The known structure should contain the known structures in the volume. Can be a PDB or mmCIF file either gzipped or not. It will be copied into session directory and converted into a structure file with all chains renamed to B. It will not be translated or rotated.

required
refine_options Annotated[RefineOptions, Parameter(name='*', group=Group('Refine options', sort_key=0))] | None

Refinement options for HADDOCK3.

None
remove_known_chains Annotated[set[str] | None, Parameter(negative='')]

Chain identifiers to remove from the given known structure before renaming the remaining chains to B. For mmCIF inputs, use author chain identifiers (auth_asym_id). Use this to omit the fitted counterpart of the fitted unknown structure. To remove multiple chains, repeat the option: --remove-known-chains A --remove-known-chains C.

None
refine_run_id str | None

Set refinement run ID; defaults to refine_run_NNN.

None
powerfit_run_id str | None

ID of the PowerFit run to refine. If not provided, all fitted models of all powerfit runs will be refined.

None
scheduler_address str | None

Address of the Dask scheduler to connect to. If not provided, will create a local cluster. If set to sequential will run tasks sequentially.

None