alignment.cc File Reference

#include "alignment.h"
#include <fstream>
#include <utility>
#include <list>
#include <cstdlib>
#include <sstream>

Functions

pair< string, string > split (const string &ln)
void outputList (list< pair< int, int > > &gl, ostream &os)
void outputGapList (const list< pair< int, int > > &gl, ostream &os)
int getSeqStartIdx (const string &ln)
ostream & operator<< (ostream &ou, const alignment &aln)
list< pair< int, int > > listgap (const string &s, const char gapChar)
void outputList (const list< pair< int, int > > &gl, ostream &os)

Function Documentation

int getSeqStartIdx ( const string &  ln  ) 

list<pair<int, int> > listgap ( const string &  s,
const char  gapChar = '-' 
)

helper functons given the aligned sequence string it will return the list of gap position and gap length pair The default gap character is '-'

Referenced by main(), operator<<(), outputgaparray(), and printgaplist().

ostream& operator<< ( ostream &  ou,
const alignment &  aln 
)

dump the alignment model as array version

References listgap(), and outputGapList().

void outputGapList ( const list< pair< int, int > > &  gl,
ostream &  os 
)

Referenced by operator<<().

void outputList ( const list< pair< int, int > > &  gl,
ostream &  os 
)

in the array formatd as in C++ and postgres

void outputList ( list< pair< int, int > > &  gl,
ostream &  os 
)

Referenced by main().

pair< string, string > split ( const string &  ln  ) 


Generated on Wed Aug 10 11:56:59 2011 for Softwares from Orpara by  doxygen 1.5.6