|
|
| AlignmentBase () |
| | Default constructor.
|
| |
|
| AlignmentBase (const AlignmentBase &orig) |
| | Copy constructor.
|
| |
|
virtual | ~AlignmentBase () |
| | Destructor.
|
| |
| virtual void | addAlignment (const AlignmentBase &other) |
| | Combine two multiple sequence alignments of same target. More...
|
| |
| virtual double | calculateIdentity () |
| | Calculate overall identity. More...
|
| |
| virtual double | calculatePairwiseIdentity (const string &seq1, const string &seq2) |
| | Calculate pairwise identity between seq1 and seq2. More...
|
| |
|
virtual void | clearAlignment () |
| | Clear alignment data.
|
| |
|
virtual void | clearTemplate () |
| | Clear template data.
|
| |
| virtual void | copy (const AlignmentBase &orig) |
| | Copy orig object to this object ("deep copy"). More...
|
| |
| virtual void | cutTemplate (unsigned int index) |
| | Remove all templates below index. More...
|
| |
| string | deleteChar (const string &s, unsigned int n) |
| | Delete n-th character. More...
|
| |
| void | deletePos (unsigned int p) |
| | Delete character (or '-') from target and all templates at position p. More...
|
| |
|
unsigned int | getLength () |
| | Return length of alignment.
|
| |
| virtual vector< vector< int > > | getMatchSubset () |
| |
| unsigned int | getSequenceLength (const string &seq) |
| | Return length of seq. More...
|
| |
|
virtual string | getTarget () const |
| | Return target sequence.
|
| |
|
virtual int | getTargetAminoAcidOffset () const |
| | Return target aa offset (only needed for alignment, default = 0).
|
| |
|
virtual string | getTargetName () const |
| | Return target name.
|
| |
|
virtual char | getTargetPos (unsigned int p) const |
| | Return target position p.
|
| |
|
virtual string | getTemplate (unsigned int index=0) const |
| | Return template index sequence.
|
| |
|
virtual int | getTemplateAminoAcidOffset (unsigned int index=0) const |
| | Return template index aa offset (counting from zero).
|
| |
|
virtual string | getTemplateName (unsigned int index=0) const |
| | Return template index name.
|
| |
|
virtual char | getTemplatePos (unsigned int p, unsigned int index=0) const |
| | Return template index position p.
|
| |
| vector< string > | getTokens (const string &text) |
| | Return vector of words of a line of text. More...
|
| |
| void | insertCharacter (unsigned int p, char c) |
| | Insert character c in target and all templates at position p. More...
|
| |
| void | insertDash (unsigned int p) |
| | Insert character '-' in target and all templates at position p. More...
|
| |
| virtual bool | isConserved (unsigned int p, unsigned int index=9999) const |
| | Check for conservation. If index is 9999 check on all templates. More...
|
| |
| virtual bool | isDeletion (unsigned int p) const |
| | Check for deletion at position p. More...
|
| |
| virtual bool | isGap (unsigned int p, unsigned int index=0) const |
| | Check for gap at position p. More...
|
| |
| virtual bool | isInsertion (unsigned int p, unsigned int index=0) const |
| | Check for insertion at position p. More...
|
| |
| virtual double | matchPositionVector (vector< int > CeTarget, vector< int > CeTemplate, vector< int > seqTarget, vector< int > seqTemplate) |
| | Companion class to the previous. More...
|
| |
| virtual AlignmentBase * | newCopy () |
| | Construct a new "deep copy" of this object. More...
|
| |
| AlignmentBase & | operator= (const AlignmentBase &orig) |
| | Assignment operator. More...
|
| |
|
void | purgeTargetInsertions () |
| | Delete all gaps from target and all templates.
|
| |
| virtual void | saveClustal (ostream &output) const |
| | Save as CLUSTAL like output. More...
|
| |
| virtual void | saveFasta (ostream &output) const |
| | Save as FASTA like output. More...
|
| |
|
virtual void | setTarget (string t, string tName="target") |
| | Set target to t.
|
| |
|
virtual void | setTargetAminoAcidOffset (int orig) |
| | Set target aa offset (only needed for alignment, default = 0).
|
| |
|
virtual void | setTargetPos (unsigned int p, char res) |
| | Set target residue to res.
|
| |
| virtual void | setTemplate (string t, string tName="template") |
| | Set template to t. More...
|
| |
|
virtual void | setTemplateAminoAcidOffset (unsigned int index, int val) |
| | Set template index aa offset (counting from zero).
|
| |
|
virtual void | setTemplatePos (unsigned int p, char res, unsigned int index=0) |
| | Set template index residue to res.
|
| |
| virtual vector< int > | shiftMatchSubset (vector< int > inputVector, int newStartPos) |
| | Return a new vector with positions shifted, depending on new position. More...
|
| |
|
unsigned int | size () const |
| | Return size of alignment.
|
| |
| virtual void | swapTemplate (unsigned int index1, unsigned int index2) |
| | Swap templates index1 and index2. More...
|
| |
Abstract base class for all sorts of alignments.