Trees | Indices | Help |
|
---|
|
Functions and classes for filtering structure files based on properties or SMARTS patterns. Supports filter files in the formats used by propfilter and canvasSearch, respectively. The filter classes support both Structure and Mol objects. Simple example: prop_filter = PropFilter(filename='filters.txt') reader = StructureReader('structs.maegz'): for st in prop_filter.filter(reader): # st matches; do something with it smarts_filter = SmartsFilter(filename='filters.cflt') for st in smarts_filter.filter(reader): # st matches; do something with it Copyright Schrodinger, LLC. All rights reserved.
|
|||
SingleFilter Base class for single filters. |
|||
Filter Base class for filtering structures. |
|||
SinglePropFilter Check if a structure satisfies an expression testing a single property. |
|||
PropFilter Check if a structure satisfies a given list of conditions. |
|||
SingleSmartsFilter Check if a structure matches a SMARTS pattern a given number of times. |
|||
SmartsFilter Check if a structure satisfies a given list of SMARTS filters. |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
pyparsing.ParserElement |
|
||
bool |
|
||
float or str or int or bool |
|
||
list |
|
|
|||
logger = log.get_output_logger("schrodinger.analysis.reaction")
|
|||
OPERATORS =
|
|||
_last_op = None hash(x) |
|||
_instructions =
|
|||
_pp_parser = None hash(x) |
|||
__package__ =
|
|
Check whether a structure has a property.
|
Return the value of a property from a structure, which may either be a Structure or a Mol. For the latter, values that look like numbers are returned as floats and anything else as strings.
|
Given a filter expression, return a list of instructions for a stack-based machine. The first instruction is a property name. The others are tuples of an operator optionally followed by a value to be compared against the property value. When the tuple only has an operator, it is applied to two values popped from the result stack. For example, "r_i_glide_gscore < -5 > -6' produces ['r_i_glide_gscore', ('<', '-5'), ('>', '-6'), ('AND',)].
|
|
OPERATORS
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue May 2 06:32:56 2017 | http://epydoc.sourceforge.net |