Biorithm  1.1
Classes | Public Member Functions
RandomUniverseNetworkBasedEnrichmentAlgorithm Class Reference

Calculates enrichment based on network connectivity using various randomization techniques by randomizing the structure of the underlying universal graph. More...

#include <enrichment-algorithm.h>

Inheritance diagram for RandomUniverseNetworkBasedEnrichmentAlgorithm:
FunctionalEnrichmentAlgorithm

List of all members.

Classes

struct  randomUniverseEnrichmentResult
 This structure stores various enrichment results calculated during functional enrichment. Any p-values that are computed will be stored in this structure along with their associated function.

Public Member Functions

 RandomUniverseNetworkBasedEnrichmentAlgorithm (const MyGraph &clusterGraph, const MyGraph &universeGraph, MyAnnotations &annotations, const GeneOntology &go, string category, unsigned int numRandomGraphs, unsigned int numRandomizationIterations)
 Default constructor.
virtual ~RandomUniverseNetworkBasedEnrichmentAlgorithm ()
 Default destructor.
virtual void computeEnrichedFunctions (const set< string > &functionsToProcess)
 Computes the enrichment of all the functions.
void computeEnrichmentForFunction (const string funcType, const string funcId)
 Computes whether one function is enriched.
void printEnrichmentResult (ostream &ostr, randomUniverseEnrichmentResult result)
 Prints functional enrichment information for a single function.
virtual void printEnrichmentResults (ostream &ostr)
 prints the enrichment results for each function.

Detailed Description

Calculates enrichment based on network connectivity using various randomization techniques by randomizing the structure of the underlying universal graph.


Constructor & Destructor Documentation

RandomUniverseNetworkBasedEnrichmentAlgorithm::RandomUniverseNetworkBasedEnrichmentAlgorithm ( const MyGraph clusterGraph,
const MyGraph universeGraph,
MyAnnotations annotations,
const GeneOntology go,
string  category,
unsigned int  numRandomGraphs,
unsigned int  numRandomizationIterations 
)

Default constructor.

Parameters:
[in]clusterGraphan instance of MyGraph storing the "cluster" we want to compute functional enrichment for.
[in]universeGraphan instance of MyGraph storing the universe of genes.
[in]annotationsThe annotations for the genes.
[in]goan instance of the Gene Ontology DAG
Warning:
clusterGraph should be a subgraph of universeGraph, but the class does not check this condition.
Parameters:
[in]numRandomGraphsan integer specifying how many random graphs to produce.
[in]numRandomizationIterationsan integer specifying how many iterations to run the randomization algorithm to produce a single random graph.

Member Function Documentation

void RandomUniverseNetworkBasedEnrichmentAlgorithm::computeEnrichmentForFunction ( const string  funcType,
const string  funcId 
) [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 RandomUniverseNetworkBasedEnrichmentAlgorithm::printEnrichmentResult ( ostream &  ostr,
randomUniverseEnrichmentResult  result 
)

Prints functional enrichment information for a single function.

Parameters:
[in]ostream,anoutput stream to which the results will be written.
[in]enrichmentResultan instance of the enrichment result structure to print.

prints the enrichment results for each function.

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