provenance
Record refinement provenance and read invocation arguments from RO-Crate.
refine_run_arguments_from_rocrate(session_dir)
¶
Extract command options from recorded refinement invocations.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
session_dir
|
Path
|
Session directory containing RO-Crate metadata. |
required |
Returns:
| Type | Description |
|---|---|
dict[str, str]
|
Refinement run IDs mapped to command options, excluding positional |
dict[str, str]
|
arguments. Empty when the session has no RO-Crate metadata. |
write_refinement_ro_crate(*, session_dir, start_time, processed_known_structure, input_known_structure, refined, io_csv, options, remove_known_chains, powerfit_run_id, original_known_structure)
¶
Record refinement inputs, outputs and effective options in RO-Crate.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
session_dir
|
Path
|
Session directory in which to write RO-Crate metadata. |
required |
start_time
|
datetime
|
Time at which the refinement invocation started. |
required |
processed_known_structure
|
Path
|
Prepared known structure inside the session. |
required |
input_known_structure
|
Path
|
Original known structure used to prepare the partner. |
required |
refined
|
list[tuple[Path, Path]]
|
Fitted inputs paired with their refinement output directories. |
required |
io_csv
|
Path
|
Per-run index containing the input/output mapping. |
required |
options
|
RefineOptions
|
Effective HADDOCK3 refinement parameters. |
required |
remove_known_chains
|
set[str] | None
|
Original chain identifiers removed before renaming. |
required |
powerfit_run_id
|
str | None
|
Selected source fitting run, or all runs when omitted. |
required |
original_known_structure
|
Path
|
Unmodified known input saved inside the session. |
required |