Biorithm  1.1
Public Member Functions
EdgeGroupHyp Class Reference

This is the same as GroupHypAlgorithm, but it operates on edges instead of nodes. More...

#include <enrichment-algorithm.h>

Inheritance diagram for EdgeGroupHyp:
FunctionalEnrichmentAlgorithm

List of all members.

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

Detailed Description

This is the same as GroupHypAlgorithm, but it operates on edges instead of nodes.


Constructor & Destructor Documentation

EdgeGroupHyp::EdgeGroupHyp ( const MyGraph clusterGraph,
const MyGraph universeGraph,
MyAnnotations annotations,
const GeneOntology go,
string  category 
)

Default constructor.

Parameters:
[in]clusterGraphan instance of MyGraph storing the "cluster" for which we want to compute functional enrichment.
[in]universeGraphan instance of MyGraph storing the universe of genes.
[in]annotationsThe annotations for the genes.
Warning:
clusterGraph should be a subgraph of universeGraph, but the class does not check this condition.

Member Function Documentation

void EdgeGroupHyp::computeEnrichedFunctions ( const set< string > &  functionsToProcess) [virtual]

Computes the enrichment of all the functions.

Parameters:
[in]functionstoProcess,aset 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.

Parameters:
[in]typea string specifying the type of the function.
[in]functionIda string specifying function.

Implements FunctionalEnrichmentAlgorithm.

void EdgeGroupHyp::printEnrichmentResults ( ostream &  ostr) [virtual]

prints the enrichment results

Parameters:
[in]ostr,anoutput stream to which the results will be written. Use cout for printing to a terminal.

Implements FunctionalEnrichmentAlgorithm.


The documentation for this class was generated from the following files:
 All Classes Functions Variables Typedefs Friends