int
|
countHeavyAtoms(st)
This function counts the number of heavy atoms in the structure. |
|
|
|
|
|
get_fep_cts(cts)
Find reactant and product ct from the input, and return touple of
full system, environment, reference ligand and mutated ligand
structures |
|
|
|
count_heavy_atoms(ct,
atom_index_list) |
|
|
|
get_heavy_atoms(ct,
atom_index_list) |
|
|
|
|
|
get_fragment(b0,
b1,
ct)
Returns:
list of atom indice for all atom connected to b1 when bond b0-b1 is
removed |
|
|
|
|
|
get_anchor_atoms(ct)
Returns:
list of atom indices Find the core atoms from which a mutation is
attached |
|
|
|
get_dummy_atoms(ct)
dummy atoms here includes mutated ring atoms and linker atoms |
|
|
|
get_big_fused_rings(ct)
return heavy atoms of fused rings from SSSR set |
|
|
|
|
|
|
|
whole_ring_test(ct,
atom_list)
test if atom list contains entire rings |
|
|
|
find_closest_rotbond(graph,
anchor_index,
rotable_bonds)
given anchor atom and connection graph of a molecule, find the
rotable bonds that is cloest (in terms of number of bonds to the
anchor atom) |
|
|
|
remove_extra_rotable_atoms(ct,
graph,
anchor_index,
hot_r,
rotable_bonds)
remove the extra fragments connected to the current hot region. |
|
|
|
find_frag_from_closest_rotbond(ct,
anchor_index,
rotable_bonds)
find rotable bond that is closest to the anchor atom in terms of number of bonds
return the fragment, original rotable bond, bond used to find the fragment,
and list of rotable bonds from which large fragment is cut off (extra_rot). |
|
|
|
get_fragments_from_att_points(source_ct,
dest_ct,
source_att,
dest_att,
source_rotable_bonds,
dest_rotable_bonds)
given attachment pairs, find the rotable fragments containing the
attachment bond return fragments and the rotable bond associated The
bigger one of the fragment pair is used to determine which rotabond
to use. |
|
|
|
is_rotabond(bond,
rota_bond_list) |
|
|
|
apply_exclusion(source_hot_frag,
source_excl,
dest_hot_frag,
dest_excl) |
|
|
|
extend_hotregion(total_heavy,
source_ct,
dest_ct,
att_bonds,
hotregion_source,
hotregion_dest,
source_rot_bonds,
dest_rot_bonds,
source_frag_rot_bonds_visited,
dest_frag_rot_bonds_visited,
max_rest_atoms,
source_excl,
dest_excl)
extend the hot region by moving to the next rotable bond |
|
|
|
get_rotable_bonds(source_ct,
dest_ct,
min_h_atom)
Find rotable bonds paired for source and dest cts return paired
rotable bonds in core, and all possible rotable bonds for each ct |
|
|
|
|
|
set_hotregion(cts,
max_rest_atoms=MAX_NUM_REST_ATOM,
min_h_atom=N_HATOM,
exclusion_lists=(set(),set()))
@param cts: input structures, s_fep_fragname should be defined for sourec and dest cts
@type cts: Lists of structure
@param max_rest_atoms: maximum allowed number of heavy atoms in hot region, soft limit
@param min_h_atom: minimum heavy atom moved by a rotable bond
@param exclusion_lists: touple of sets of core atoms (hydrogen included)
@retrun: number of heavy atoms assigned |
|
|