Augustus 3.4.0
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Friends | List of all members
StringAlignment Class Reference

global multiple sequence alignment in (standard) string representation More...

#include <alignment.hh>

Public Member Functions

 StringAlignment (size_t numrows)
 
void insert (std::list< MsaInsertion > &insList, int maxInsertLen=INT_MAX)
 
size_t removeGapOnlyCols ()
 
bool isGapOnlyCol (size_t col)
 
void computeLen ()
 

Public Attributes

vector< string > rows
 
size_t k
 
size_t len
 

Friends

ostream & operator<< (ostream &strm, const StringAlignment &msa)
 

Detailed Description

global multiple sequence alignment in (standard) string representation

Author
Mario Stanke

Member Function Documentation

◆ computeLen()

void StringAlignment::computeLen ( )
inline

Ensure all rows have the same length and compute and set this length.

◆ insert()

void StringAlignment::insert ( std::list< MsaInsertion > &  insList,
int  maxInsertLen = INT_MAX 
)

Insert unaligned sequences into an alignment. The insertion positions all refer to the MSA before insertions. Example:

a-tt-g insert((0, 0, "ggg"), (2, 4, "gaga"), ggga-tt--—g –ctgg (1, 4, "ttt")) --—ctttt-gg a-ttgc ===================================> —a-ttgagagc

Parameters
[in]insLista list of inserts at certain positions

◆ removeGapOnlyCols()

size_t StringAlignment::removeGapOnlyCols ( )

Remove all columns which in which each row that is present has a gap. Example

ggga-tt--—g gggatt--—g --—ctttt-gg ====> -—ctttt-gg —a-ttgagagc —attgagagc

Parameters
[in]insLista list of inserts at certain positions

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