BioInt  1.02.00
BioInt: An integrative biological object-oriented application framework and interpreter
BioDnaSequenceRepeatAlignment.h
Go to the documentation of this file.
00001 #ifndef BIODNASEQUENCEREPEATALIGNMENT_H
00002 #define BIODNASEQUENCEREPEATALIGNMENT_H
00003 
00004 #include "BioDnaSequenceAlignment.h"
00005 #include "BioPostScript.h"
00006 #include "BioLenPos.h"
00007 
00008 class BioDnaSequenceRepeatAlignment : public BioDnaSequenceAlignment
00009 {
00010         friend bool operator >(const BioDnaSequenceRepeatAlignment& , const BioDnaSequenceRepeatAlignment&);
00011         friend bool operator <(const BioDnaSequenceRepeatAlignment& , const BioDnaSequenceRepeatAlignment&);
00012         friend bool operator ==(const BioDnaSequenceRepeatAlignment& , const BioDnaSequenceRepeatAlignment&);
00013         int reapPerIden,threshold;
00014 
00015         int nogs;
00016         
00017         BioLenPos lenpos;
00018 
00019         void formAccumulationMatrix();
00020 
00021         void backTrack();
00022 
00023         int reap(int, int);
00024 
00025         void show(ostream & = cout);           
00026 
00027         void init();        
00028     
00029  public:
00030         BioDnaSequenceRepeatAlignment();
00031         BioDnaSequenceRepeatAlignment(BioDnaSequence,BioDnaSequence,string,string MatName,int ReapIden=100,int GP=-50,int extn=-9999,int TH=10);
00032         BioDnaSequenceRepeatAlignment(BioDnaSequence,string,string,string MatName,int ReapIden=100,int GP=-50,int extn=-9999,int TH=10);
00033         BioDnaSequenceRepeatAlignment(BioDnaSequence,BioDnaSequence,string MatName="IDENTITY",int ReapIden=100,int GP=-50,int extn=-9999,int TH=10);
00034         BioDnaSequenceRepeatAlignment(BioDnaSequence,string,string MatName="IDENTITY",int ReapIden=100,int GP=-50,int extn=-9999,int TH=10);
00035         BioDnaSequenceRepeatAlignment(BioDnaSequence,BioDnaSequence,int ReapIden,int MS,int MMS,int GP=-50,int extn=-9999,int TH=10);
00036         BioDnaSequenceRepeatAlignment(BioDnaSequence,string,int ReapIden,int MS,int MMS,int GP=-50,int extn=-9999,int TH=10);
00037 
00038         BioDnaSequenceRepeatAlignment(BioFasta,BioFasta,string,string MatName,int ReapIden=100,int GP=-50,int extn=-9999,int TH=10);
00039         BioDnaSequenceRepeatAlignment(BioFasta,string,string,string MatName,int ReapIden=100,int GP=-50,int extn=-9999,int TH=10);
00040         BioDnaSequenceRepeatAlignment(BioFasta,BioFasta,string MatName="IDENTITY",int ReapIden=100,int GP=-50,int extn=-9999,int TH=10);
00041         BioDnaSequenceRepeatAlignment(BioFasta,string,string MatName="IDENTITY",int ReapIden=100,int GP=-50,int extn=-9999,int TH=10);
00042         BioDnaSequenceRepeatAlignment(BioFasta,BioFasta,int ReapIden,int MS,int MMS,int GP=-50,int extn=-9999,int TH=10);
00043         BioDnaSequenceRepeatAlignment(BioFasta,string,int ReapIden,int MS,int MMS,int GP=-50,int extn=-9999,int TH=10);
00044 
00045         BioDnaSequenceRepeatAlignment(string,string,string,string,int ReapIden=100,int GP=-50,int extn=-9999,int TH=10);
00046         BioDnaSequenceRepeatAlignment(string,string,string matName="IDENTITY",int ReapIden=100,int GP=-50,int extn=-9999,int TH=10);
00047         BioDnaSequenceRepeatAlignment(string,string,int ReapIden,int MS,int MMS,int GP=-50,int extn=-9999,int TH=10);
00048 
00049         void setThreshold(int);
00050         void setRepeatIdentity(int);
00051         void setGaps(int);
00052 
00053         void showAccumulationMatrix(ostream & = cout);
00054 
00055         long getNumberOfRepeats();
00056         long getRepeatStartingPosition(long);
00057         long getRepeatEndingPosition(long);
00058         BioSequence getRepeat(long);
00059         string getAlignedRepeat(long);
00060         long getNumberOfIdentities();
00061         float getIdentity(int);
00062         int getRepeatScore(int);    
00063         
00064         void showAlignment(ostream & = cout);
00065         void showAlignment(BioPostScript& ps,float=100,float=650,float=450);
00066 
00067     string getAlignedSequence1();
00068     string getAlignedSequence2();
00069     float getScore();
00070       
00071 
00072 };
00073 
00074 #endif
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines