Version 4.0.0
Main Page | Class Hierarchy | Class List | File List | Class Members | Related Pages

Partition Class Reference

Dealer of alphabet partitions. More...

#include <seqpp/Partition.h>

List of all members.

Public Member Functions

 Partition (short alphabet_size)
 constructor with integrated creation of the set of partitions
 Partition (const Translator &alphabet, const string &pfile)
 Constructor from a file containing the partitions or the list of synonymous tokens.
virtual ~Partition ()
 destructor
const vector< vector< short > > & list_possible_elements ()
 initialize the list_possible_elements of possible tokens'subset in a partition and return it
long tell_nbposs () const
 returns the number of possible tokens'subset in a partition
const vector< vector< short > > & get_synonymous () const
 returns the synonymous list
short tell_size () const
 returns the size of the space to partition


Detailed Description

Dealer of alphabet partitions.

Let a partition of an alphabet be a set of tokens'subset, i.e. a division of the alphabet into subset. The Partition object gives 2 possibilities:


Constructor & Destructor Documentation

Partition::Partition short  alphabet_size  ) 
 

constructor with integrated creation of the set of partitions

Parameters:
alphabet_size size of the alphabet

Partition::Partition const Translator alphabet,
const string &  pfile
 

Constructor from a file containing the partitions or the list of synonymous tokens.

Parameters:
alphabet a link to a Translator object required for the file reading
pfile partitions file
-> 1st possibility: after a "#Partition" on the first line, each partition is represented as a list of tokens'subset delimited by a "|", each subset being composed with tokens of the alphabet separed by space
Example:
    #Partition
    a g | c t 
-> 2nd possibility: after a "#Synonymous" on the first line, tokens are grouped (separed by spaces) into synonymous classes on each line
Example:
    #Synonymous
    a t
    g c


The documentation for this class was generated from the following files:



Download seq++ 4.0.0
Download previous versions
Statistique & Genome Home


Generated on Wed Mar 23 09:25:58 2005 for seqpp by doxygen 1.3.9.1