Skip to content

solution

fit_model(unfitted_model_file, translation, rotation, fitted_model_file)

Fit a model PDB file according to the given translation and rotation.

Parameters:

Name Type Description Default
unfitted_model_file Path

Path to the input PDB file

required
translation ndarray

Translation vector (numpy array of shape (3,))

required
rotation ndarray

Rotation matrix (3x3 numpy array)

required
fitted_model_file Path

Path to save the fitted model PDB file

required

fit_models(solutions, session_dir)

Fit model PDB files according to the translation and rotation in solutions DataFrame.

Parameters:

Name Type Description Default
solutions DataFrame

DataFrame with columns "powerfit_run_id", "translation", "rotation", and "template_file"

required
session_dir Path

Path to the session directory.

required

Returns:

Type Description
DataFrame

DataFrame with columns "powerfit_run_id", "structure", "rank", "fitted_model_file", and "unfitted_model_file"