Biorithm
1.1
|
Public Member Functions | |
MyOneVersusNoneFunctionalFlowGainAlgo (MyGainGraph &g, MyAnnotations &a, MyGainParams &p, Reporter &r, GeneOntology *go=NULL) | |
virtual void | computePredictions (const BioFunction &function, const MyNodeIdList &nodesToAnnotate, MyNodeIdList &predictedNodes) |
virtual MyGainTriState | computeState (MyNode &node) |
virtual string | getName () |
virtual void | run (const MyNodeIdList &nodesToAnnotate) |
Protected Attributes | |
map< MyNodeId, MyNT > | _currentNodeReservoirs |
map< MyNodeId, MyNT > | _previousNodeReservoirs |
map< MyNodeId, MyNT > | _totalInflow |
void MyOneVersusNoneFunctionalFlowGainAlgo::computePredictions | ( | const BioFunction & | function, |
const MyNodeIdList & | nodesToAnnotate, | ||
MyNodeIdList & | predictedNodes | ||
) | [virtual] |
Compute which genes in nodesToAnnotate MyOneVersusAllGainAlgo::run() predicts has the function. Since different algorithms may have different methods for predicting a function, this method must be implemented separately for each class.
nodesToAnnotate,an | instance of MyNodeIdList, the nodes that run() tried to annotate. |
predictedNodes,an | instance of MyNodeIdList, the nodes that run() predicts as having the function. |
Reimplemented from MyOneVersusAllGainAlgo.
MyGainTriState MyOneVersusNoneFunctionalFlowGainAlgo::computeState | ( | MyNode & | node | ) | [virtual] |
This method should be a member of this class since the method needs access to the states of the nodes (stored in subclasses of the class).
Reimplemented from MyOneVersusAllGainAlgo.
virtual string MyOneVersusNoneFunctionalFlowGainAlgo::getName | ( | ) | [inline, virtual] |
Return the name of the algorithm.
Reimplemented from MyOneVersusNoneGainAlgo.
void MyOneVersusNoneFunctionalFlowGainAlgo::run | ( | const MyNodeIdList & | nodesToAnnotate | ) | [virtual] |
This method repeatedly iterates over all the nodes in nodesToAnnotate in the order in which they occur in nodesToAnnotate. It computes the state of each node in this list. The method iterates until the states converge.
Reimplemented from MyOneVersusAllGainAlgo.