Package TEES :: Package Utils :: Package STFormat :: Module Equiv
[hide private]

Module Equiv

source code

Functions [hide private]
 
process(documents, debug=False)
Resolves equivalences in place
source code
 
getRoots(document)
Returns topmost events in event hierarchy
source code
 
getArgs(event, argList)
Return the arguments of a nested event tree in a depth-first order.
source code
 
hasNestedEquivs(event) source code
 
makeEvent(model, argCombination, count, newEvent=None, finished=False, duplDict=None, debug=False, level=0)
Given an argument list in depth-first order (argCombination), make a copy of "model" event tree.
source code
 
duplicateEquiv(event, duplDict, debug)
If the event (event tree) has arguments which have Equiv-statements, create a new event for each combination.
source code
 
rebuildEventList(events, eventList=None)
Add all events (top and nested) from event trees to a list.
source code
Variables [hide private]
  thisPath = '/home/jari/TEES/Utils/STFormat'
  __package__ = 'TEES.Utils.STFormat'
Function Details [hide private]

getArgs(event, argList)

source code 

Return the arguments of a nested event tree in a depth-first order. Each argument is in a list, and has multiple items if that argument is a protein with Equivs.

duplicateEquiv(event, duplDict, debug)

source code 

If the event (event tree) has arguments which have Equiv-statements, create a new event for each combination. Otherwise, return just the existing event.