visualization
Renderer = Literal['html', 'notebook', 'streamlit', 'raw']
module-attribute
Which molstar renderer to use for visualization.
load_fitted_models(*, fitted_models_csv, report_csv, runs_csv)
Load fitted models from CSV files generated by the PowerFit CLI commands.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
fitted_models_csv
|
Path
|
CSV file containing fitted models.
Can be generated with |
required |
report_csv
|
Path
|
CSV file containing PowerFit report.
Can be generated with |
required |
runs_csv
|
Path
|
CSV file containing PowerFit runs.
Can be generated with |
required |
Returns:
| Type | Description |
|---|---|
DataFrame
|
DataFrame containing fitted models with additional information from the report and runs. The returned columns are:
|
show_fitted_models_and_density(fitted_models, renderer='notebook')
Visualizes fitted models and their associated density map with molstar.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
fitted_models
|
DataFrame
|
The fitted models returned by load_fitted_models. Expected columns: powerfit_run_id, structure, rank, cc, fishz, relz, translation, rotation, fitted_model_file, unfitted_model_file, density_map, run_dir, options, uniprot_accessions, structure_id, is_alphafold. |
required |
renderer
|
Renderer
|
Renderer to use for visualization. |
'notebook'
|
show_structure_and_density(structure, density, renderer='notebook')
Visualizes a structure and its associated density map with molstar.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
structure
|
Path | str
|
Path to the structure file (PDB format). |
required |
density
|
Path
|
Path to the density map file (e.g., CCP4 format). |
required |
renderer
|
Renderer
|
Renderer to use for visualization. |
'notebook'
|