run
clear_worker_cache()
Clear cached objects on the worker.
Call this function if you want to call powerfit_worker again with different arguments except the template_structure.
Example:
from dask.distributed import Client
client = Client() # or your existing client
from protein_detective.powerfit.run import clear_worker_cache
client.run(clear_worker_cache)
powerfit_worker(template_structure, density_map_target, powerfit_run_root_dir, options)
Worker function for running PowerFit on a template structure file.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
template_structure
|
Path
|
Path to the template structure file to process |
required |
density_map_target
|
Path
|
Path to the density map file |
required |
powerfit_run_root_dir
|
Path
|
Root directory for PowerFit results |
required |
options
|
PowerfitOptions
|
PowerFit options |
required |