Katzlab dd76ab1d12 Added PTL2 Scripts
These are PTL2 files from Auden 2/9
2023-02-14 11:20:52 -05:00

29 lines
900 B
C++

// $Id: indel.h 1901 2007-03-15 13:21:06Z nimrodru $
#ifndef ____INDEL
#define ____INDEL
#include "definitions.h"
#include "errorMsg.h"
#include "alphabet.h"
class indel : public alphabet {
public:
explicit indel();
virtual ~indel() {}
virtual alphabet* clone() const { return new indel(*this); }
int unknown() const {return -2;}
int gap() const {errorMsg::reportError("The method indel::gap() is used"); return -1;} // What is it for ? I don't need this !!!
int size() const {return 2;}
int stringSize() const {return 1;} // one letter code.
int relations(const int charInSeq, const int charToCheck) const;
int fromChar(const string& str, const int pos) const;
int fromChar(const char s) const;
string fromInt(const int in_id) const;
vector<int> fromString(const string& str) const;
bool isSpecific(const int id) const {return (id>=0 && id < size());}
};//end of class
#endif