BioInt
1.02.00
BioInt: An integrative biological object-oriented application framework and interpreter
|
00001 #ifndef BIOPROTEINSECONDARYSTRUCTUREPREDICTION_H 00002 #define BIOPROTEINSECONDARYSTRUCTUREPREDICTION_H 00003 00004 00005 00006 #include "BioRaw.h" 00007 #include "BioSwissProt.h" 00008 #include "BioFasta.h" 00009 #include "BioProteinSequence.h" 00010 #include "BioPostScript.h" 00011 #include <ostream> 00012 #include <string> 00013 00014 class BioProteinSecondaryStructurePrediction 00015 { 00016 private : 00017 string sequence_; 00018 int helWin_,helnum_; 00019 int sheetWin_,sheetnum_; 00020 float helExt_,sheetExt_; 00021 string predictedSeq_; 00022 00023 bool PREDICT; 00024 vector<int> helix,sheet,turn; 00025 void predict(void); 00026 friend bool operator >(const BioProteinSecondaryStructurePrediction& , const BioProteinSecondaryStructurePrediction&); 00027 friend bool operator <(const BioProteinSecondaryStructurePrediction& , const BioProteinSecondaryStructurePrediction&); 00028 friend bool operator ==(const BioProteinSecondaryStructurePrediction& , const BioProteinSecondaryStructurePrediction&); 00029 public : 00030 BioProteinSecondaryStructurePrediction(){} 00031 BioProteinSecondaryStructurePrediction(BioRaw&); 00032 BioProteinSecondaryStructurePrediction(BioFasta&); 00033 BioProteinSecondaryStructurePrediction(BioProteinSequence&); 00034 BioProteinSecondaryStructurePrediction(BioSwissProt&); 00035 BioProteinSecondaryStructurePrediction(const string&); 00036 00037 void showPrediction(ostream& = cout); 00038 void showHelixPrediction(ostream& = cout); 00039 void showStrandPrediction(ostream& = cout); 00040 void showTurnPrediction(ostream& = cout); 00041 00042 int getNumberOfHelices(); 00043 int getNumberOfStrands(); 00044 int getNumberOfTurns(); 00045 // void setPredictedSequence(string&); 00046 string getPredictedSequence(); 00047 00048 string getHelix(int i); 00049 string getStrand(int i); 00050 string getTurn(int i); 00051 00052 void setHelixNucleationParameters(int window,int num); 00053 void setSheetNucleationParameters(int window,int num); 00054 void setHelixExtensionParameter(float param); 00055 void setSheetExtensionParamater(float param); 00056 00057 void showPrediction(BioPostScript& ps,float startx=50,float starty=800,float width=475); 00058 void showHelixPrediction(BioPostScript& ps,float startx=50,float starty=800,float width=475); 00059 void showStrandPrediction(BioPostScript& ps,float startx=50,float starty=800,float width=475); 00060 void showTurnPrediction(BioPostScript& ps,float startx=50,float starty=800,float width=475); 00061 00062 00063 00064 }; 00065 00066 00067 #endif 00068 00069 00070 00071