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