A node in a synthetic route. Similar to RetroSynthesisNode, except
that it can have one reaction instance at most. Also, RouteNode provides
additional methods that only make sense for a synthetic route.
|
|
|
|
|
isStartingMaterial(self)
Return True if the node represents a starting material (i.e., has no
reaction instance). |
|
|
|
list of Node-derived objects
|
getStartingNodes(self)
Search recursively and return the Node objects for all the starting
materials in the route. |
|
|
|
|
|
|
|
steps(self)
Return the total number of steps in the route. |
|
|
|
int
|
depth(self,
_depth=0)
Return the maximum depth of the route. |
|
|
|
|
write(self,
filename,
specific=False)
Write a route file. |
|
|
|
|
getTreeData(self,
specific=False)
Return a simple data structure, suitable for dumping to JSON,
representing the route. |
|
|
|
|
| _getNodeData(self,
specific) |
|
|
|
|
getReactionSet(self)
Return the set of reactions used by the route. |
|
|
|
bool
|
checkReactions(self,
reqs)
Check that the route meets all requirements. |
|
|
|
Inherited from Node:
__init__,
treeAsString
Inherited from object:
__delattr__,
__format__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__sizeof__,
__subclasshook__
|