A helper class to sort a pose library. By default, multiple poses for
one ligand-title are 'block sorted'. i.e. grouped and sorted by Title
and sort_property_2, and each group is sorted by its best member's
sort_property_1. The pose library may be resorted by sort_property_1, in
a title agnostic manner, by calling sortByProperties().
|
__init__(self,
file_name='
' ,
file_type=None,
sort_property_1=' r_i_glide_gscore ' ,
sort_property_2=' r_i_glide_emodel ' ,
block_sort=True) |
|
|
|
_show(self)
Helper/debugging method to print out values. |
|
|
|
sortPoses(self)
Helper method that calls sortIntraTitle(), then sortInterTitle(). |
|
|
|
sortIntraTitle(self)
Creates tuples of poses with the same title, then sorts within each
title-tuple by self.sort_property_2. |
|
|
|
|
|
sortByProperties(self)
Orders the pose library in a Title agnostic manner, considering only
sort_property_1; a simple (multi-key) sort of the docking results. |
|
|
|
|
|
write(self,
output_lib_name='
' ,
indexes=( ) ,
block_size=4000)
Outputs an ordered pose lib file. |
|
|
|
writeValidPoses(self,
output_lib_name='
' ,
actives=[ ] ,
max_pose_per_active=10,
max_pose_per_decoy=1,
max_number_decoys=1000,
block_size=2000)
Writes a pose library with multiple poses per active but a single
pose per 'decoy'. |
|
|
|
writeTopPoses(self,
output_lib_name='
' ,
max_pose_per_title=1,
block_size=2000)
Writes a pose library with the top N poses per ligand. |
|
|