Biorithm
1.1
|
This is the same as GroupHypAlgorithm, but it operates on edges instead of nodes. More...
#include <enrichment-algorithm.h>
Public Member Functions | |
EdgeGroupHyp (const MyGraph &clusterGraph, const MyGraph &universeGraph, MyAnnotations &annotations, const GeneOntology &go, string category) | |
Default constructor. | |
virtual | ~EdgeGroupHyp () |
Default destructor. | |
virtual void | computeEnrichedFunctions (const set< string > &functionsToProcess) |
Computes the enrichment of all the functions. | |
virtual void | computeEnrichmentForFunction (const string funcType, const string funcId) |
Computes whether one function is enriched. | |
virtual void | printEnrichmentResults (ostream &ostr) |
prints the enrichment results |
This is the same as GroupHypAlgorithm, but it operates on edges instead of nodes.
EdgeGroupHyp::EdgeGroupHyp | ( | const MyGraph & | clusterGraph, |
const MyGraph & | universeGraph, | ||
MyAnnotations & | annotations, | ||
const GeneOntology & | go, | ||
string | category | ||
) |
Default constructor.
[in] | clusterGraph | an instance of MyGraph storing the "cluster" for which we want to compute functional enrichment. |
[in] | universeGraph | an instance of MyGraph storing the universe of genes. |
[in] | annotations | The annotations for the genes. |
void EdgeGroupHyp::computeEnrichedFunctions | ( | const set< string > & | functionsToProcess | ) | [virtual] |
Computes the enrichment of all the functions.
[in] | functionstoProcess,a | set of strings, where each string represents a function ID. If the set is nonempty, functional enrichment will only be performed for the listed functions in this set. |
Reimplemented from FunctionalEnrichmentAlgorithm.
virtual void EdgeGroupHyp::computeEnrichmentForFunction | ( | const string | funcType, |
const string | funcId | ||
) | [inline, virtual] |
Computes whether one function is enriched.
[in] | type | a string specifying the type of the function. |
[in] | functionId | a string specifying function. |
Implements FunctionalEnrichmentAlgorithm.
void EdgeGroupHyp::printEnrichmentResults | ( | ostream & | ostr | ) | [virtual] |
prints the enrichment results
[in] | ostr,an | output stream to which the results will be written. Use cout for printing to a terminal. |
Implements FunctionalEnrichmentAlgorithm.