Generated on Tue Dec 16 12:50:02 2008 for BIU-2.2.0 by doxygen 1.5.1

biu::AllowedBasePairs Class Reference

#include <AllowedBasePairs.hh>


Detailed Description

This class handels possible base pairs of an RNA structure.

Author:
Salem Dekelbab

Martin Mann

Sebastian Will

Andreas Richter

Definition at line 18 of file AllowedBasePairs.hh.

Public Member Functions

bool allowedBasePair (const Alphabet::AlphElem &first, const Alphabet::AlphElem &second) const
 AllowedBasePairs (const Alphabet *alphabet, const std::string &bps, const bool symmetric=true)
const AlphabetgetAlphabet () const
bool operator!= (const AllowedBasePairs &abp2) const
bool operator== (const AllowedBasePairs &abp2) const
 ~AllowedBasePairs ()

Private Types

typedef std::pair< Alphabet::AlphElem,
Alphabet::AlphElem
BPair

Private Attributes

biu::Matrix< bool > allowedPairs
const Alphabetalph


Member Typedef Documentation

Allowed base pairs of an RNA structure.

Definition at line 21 of file AllowedBasePairs.hh.


Constructor & Destructor Documentation

biu::AllowedBasePairs::AllowedBasePairs ( const Alphabet alphabet,
const std::string &  bps,
const bool  symmetric = true 
)

Construction

Parameters:
alphabet has to be a structure alphabet for a RNA
bps the allowed combinations of alphabet elements as comma separated list of alphabet element, e.g. "AU,GU".
symmetric when true, it builds a symmetric matrix, so supplying AU is enough for UA to be valid as well

biu::AllowedBasePairs::~AllowedBasePairs (  ) 


Member Function Documentation

bool biu::AllowedBasePairs::allowedBasePair ( const Alphabet::AlphElem first,
const Alphabet::AlphElem second 
) const

Returns if two characters form a valid base pair, e.g. a Watson-Crick (AU, CG) or a non-standard (GU) pair.

const Alphabet* biu::AllowedBasePairs::getAlphabet (  )  const

Returns the alphabet the base pairs are basing on.

bool biu::AllowedBasePairs::operator!= ( const AllowedBasePairs abp2  )  const

bool biu::AllowedBasePairs::operator== ( const AllowedBasePairs abp2  )  const


Field Documentation

Matrix of the allowed combinations of base pairs.

Definition at line 27 of file AllowedBasePairs.hh.

the Alphabet the allowed base pairs are basing on

Definition at line 24 of file AllowedBasePairs.hh.


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