There are also a number of functions for using SMARTS, ASL, and SMILES
(e.g. evaluate_smarts or generate_smiles). Other functions return
information about a structure (i.e. get_chiral_atoms or
hydrogens_present). There are also several SASA (Solvent Accessible
Surface Area) functions (i.e. calculate_sasa_by_atom and
calculate_sasa).
See also the discussion in the Python API overview.
dict
|
get_chiral_atoms(structure)
Return a dictionary of chiral atoms, for which the key is the atom
index and the value is one of the following strings: "R",
"S", "ANR", "ANS", "undef". |
|
|
list
|
evaluate_smarts(structure,
smarts_expression,
verbose=False,
first_match_only=False,
unique_sets=False)
Search for substructures in Structure structure matching the SMARTS
pattern smarts_expression . |
|
|
|
|
|
|
|
|
|
validate_smarts_canvas(smarts) |
|
|
list
|
evaluate_smarts_canvas(structure,
smarts,
stereo=' annotation_and_geom ' ,
start_index=1,
uniqueFilter=True,
allowRelativeStereo=False,
rigorousValidationOfSource=False,
hydrogensInterchangeable=True)
Evaluate SMARTS patterns using the Canvas libraries. |
|
|
list
|
evaluate_multiple_smarts(structure,
smarts_list,
verbose=False,
first_match_only=False,
unique_sets=False)
Search for multiple SMARTS substructures in Structure structure . |
|
|
list
|
evaluate_substructure(st,
subs_expression,
first_match_only=False)
Search for the MacroModel-style substructure expression in Structure st and return the atoms that
match. |
|
|
str
|
generate_asl(st,
atom_list)
Generate and return an atom expression for the atoms in Structure st which are listed in
atom_list . |
|
|
list
|
evaluate_asl(st,
asl_expr)
Search for substructures matching the ASL (Atom Specification
Language) string asl_expr in Structure st . |
|
|
generator
|
|
list
|
find_rings(st,
sort=False)
Return the smallest set of smallest rings (SSSR) in st . |
|
|
bool
|
|
|
generate_tautomer_code(st,
considerEZStereo=True,
considerRSStereo=True,
stereo=' annotation_and_geom ' ,
strip=False) |
|
|
str
|
generate_smiles(st,
unique=True,
stereo=' annotation_and_geom ' )
Return a SMILES string for st . |
|
|
str
|
generate_smarts(st,
atom_subset=None,
check_connectivity=True)
Return a SMARTS pattern for atoms atom_subset in Structure st . |
|
|
bool
|
match_hbond(atom1,
atom2,
distance_max=2.5,
donor_angle=120.0,
acceptor_angle=90.0,
distance=None,
measure=None)
Return True if atom1-atom2 represents an H-bond where atom1 is an
acceptor, and atom2 is a donor hydrogen. |
|
|
list
|
generate_crystal_mates(st,
radius=10.0,
space_group=None,
a=None,
b=None,
c=None,
alpha=None,
beta=None,
gamma=None,
group_radius=14.0)
Generate crystal mates for the input Structure st . |
|
|
list
|
find_overlapping_atoms(st,
ignore_hydrogens=True,
ignore_waters=True,
dist_threshold=0.8)
Search the specified structure for overlapping atoms. |
|
|
str
|
|
bool
|
|
bool
|
|
bool
|
is_bond_rotatable(bond,
rings=None)
Return True if specified bond is rotatable, False otherwise. |
|
|
iterator of tuples
|
|
int
|
|
iterator of tuples
|
hbond_iterator(st,
atoms)
Iterate over hydrogen bond between the atoms specified by the
atom_set and the other atoms in st . |
|
|
int
|
get_num_hbonds(st,
atoms=None)
Calculate the the number of inter-molecular hydrogen bonds between
the specified atoms and other molecules in st . |
|
|
list
|
|
|
|
list
|
calculate_sasa_by_residue(st,
atoms=None,
cutoff=8.0,
probe_radius=1.4,
resolution=0.2,
exclude_water=False)
Calculate the solvent-accessible surface area (SASA) for the whole
structure, or an atom subset, and then group them by residue. |
|
|
float
|
calculate_sasa(st,
atoms=None,
cutoff=8.0,
probe_radius=1.4,
resolution=0.2,
exclude_water=False,
exclude_atoms=None)
Calculate the solvent-accessible surface area (SASA) for the whole
structure, or an atom subset. |
|
|
list
|
calculate_sasa_by_atom(st,
cutoff=8.0,
probe_radius=1.4,
resolution=0.2)
Calculate the solvent-accessible surface area (SASA) for each atom in
the given structure, and returns a list of floats. |
|
|
|
|
list
|
|
numpy array
|
center_of_mass(st,
atom_indices=None)
Get the x, y, z coordinates for the center of mass. |
|
|
tuple
|
|