|
Node
Base class for a node in a synthetic route or a retrosynthetic
tree.
|
|
RetroSynthesisNode
A node in a retrosynthetic analysis tree.
|
|
RouteNode
A node in a synthetic route.
|
|
ReagentNode
A node representing a starting material in a synthetic route.
|
|
Synthesizer
A Synthesizer is a "machine" that given a RouteNode,
knows how to apply all the reactions in the RouteNode in the right
order to a list of starting materials to give the final product.
|
|
RouteRenderer
A class for rendering a Route as an image.
|
|
Reaction
A Reaction object represents a generic reaction, such as
"amide coupling".
|
|
ReactionInstance
A ReactionInstance is the application of a Reaction to a list of
reagents/precursors.
|
|
|
|
read_route_file(filename,
reactions_dict)
Read a route file in JSON format, returning a RouteNode object. |
|
|
|
parse_route_data(json_data,
reactions_dict)
Generate a Route from the raw dict/list-based data structure usually
obtained from a route JSON file. |
|
|
|
_parse_route_node(node,
reactions_dict,
counter) |
|
|
dict {str: Reaction}
|
read_reactions_file(filename)
Read a reactions file in JSON format and return a dictionary of
reactions by name. |
|
|
dict {str: Reaction}
|
parse_reaction_data(raw_dict)
Convert a "raw dict" (usually from a JSON file) into a
dictionary of Reaction objects by name. |
|
|
str
|
|
bool
|
|
list of reaction
|
filter_reactions(reactions,
exclude)
Return a shallow copy of a list of reactions, filtering out those
matching any of the exclusion criteria. |
|
|
RetrosynthesisNode
|
retrosynthesize(target_mol,
reactions_dict,
max_depth=1,
exclude=None)
Generate a retrosynthetic tree to the desired depth based on the
target molecule. |
|
|
|
_retrosynthesize(mol,
reactions,
max_depth,
reagent_class=None) |
|
|
|
_convert_unicode(val)
Return a copy of a recursive data structure based on dicts and/or
lists, replacing any unicode keys or values with str. |
|
|
|
debug_mols(message,
mols,
separator=' + ' )
Print a debug message (if the logger level indicates it), appending a
list of SMILES representation of the molecules. |
|
|
list of generators of Mol.
|
get_reagent_sources(route,
r_dict=None,
smiles_opts=None)
Return a list of reagent sources given a route and a dictionary of
reagent sources (each key is either a reagent index or reagent class
name; each value is a filename). |
|
|
generator of Mol
|
get_mol_reader(filename,
smiles_opts=None)
Return a Mol generator given a filename. |
|
|