packman.apps.predict_hinge module

The ‘predict_hinge’ object host file.

This is file information, not the class information. This information is only for the API developers. Please read the ‘predict_hinge’ object documentation for details.

Example:

from packman.apps import predict_hinge
help( predict_hinge )
Authors:
packman.apps.predict_hinge.hinge_cli(args, mol)

Command-line Interface for the ‘hinge’ command. Please check the packman.bin.PACKMAN file for more details.

This function is for the CLI and not an integral function for the API.

Parameters:
  • args (parser.parse_args()) – The arguments that were passed by the user to the PACKMAN-hinge app.
  • mol (packman.molecule.Protein) – The ‘Protein’ object for the anaylsis.
packman.apps.predict_hinge.predict_hinge(atoms, outputfile, Alpha=inf, method='alpha_shape', filename='Output.pdb', MinimumHingeLength=5, nclusters=4)

This function is used to carry out hinge prediction given the parameters.

Notes

Parameters:
  • atoms ([packman.molecule.Atom]) – PACKMAN uses backbone atoms of the protein. However, any number and type of atoms can be used (Alpha value range will change)
  • outputfile (file) – Output File.
  • Alpha (float, optional) – Please refer to the paper for this parameter. Defaults to float(‘Inf’).
  • method (str, optional) – Please refer to the paper for this parameter. Defaults to ‘alpha_shape’.
  • filename (str, optional) – Please refer to the paper for this parameter. Defaults to ‘Output.pdb’.
  • MinimumHingeLength (int, optional) – Please refer to the paper for this parameter. Defaults to 5.
  • nclusters (int, optional) – Please refer to the paper for this parameter. Defaults to 4.
Returns:

The Alpha Shape (Subset of Delaunay Tesselations)

Return type:

alpha_shape