BioInt
1.02.00
BioInt: An integrative biological object-oriented application framework and interpreter
|
00001 /**************************************************************************** 00002 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 00003 The BioBhasha : The Biologist's Programming Language 00004 Version 1.0 (19th December 2001) 00005 Prasad, B.V.L.S. 00006 Contact: burrashiva@yahoo.com 00007 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 00008 *****************************************************************************/ 00009 00010 #ifndef BIOPDBHELIX_H 00011 #define BIOPDBHELIX_H 00012 00013 #include <string> 00014 #include <vector> 00015 #include <fstream> 00016 #include "BioProteinChain.h" 00017 #include "BioMatrix.h" 00018 00019 class BioPdbHelix 00020 { 00021 // Caution: Insertion Code is not included ....hence this is not 00022 // exactly following the PDB helix format... 00023 // I will add them in future releases. Bear with me Untill then. 00024 00025 int helixSerialNumber_; 00026 string helixId_; 00027 string initialResidueName_; 00028 int initialResidueNumber_; 00029 00030 char initialChainId_; 00031 char endingChainId_; 00032 00033 string endingResidueName_; 00034 int endingResidueNumber_; 00035 00036 int helixClass_; 00037 int lengthOfHelix_; 00038 00039 string comment_; 00040 string FILE; 00041 00042 friend bool operator >(const BioPdbHelix& , const BioPdbHelix&); 00043 friend bool operator <(const BioPdbHelix& , const BioPdbHelix&); 00044 friend bool operator ==(const BioPdbHelix& , const BioPdbHelix&); 00045 00046 00047 public: 00048 BioPdbHelix(){} 00049 BioPdbHelix(const string& ti_); 00050 BioPdbHelix(int hs,string hid,string irna, char ic, int irnu, 00051 string erna, char ec, int ernu, int hcl, string com, int lh, string f); 00052 00053 int getHelixSerialNumber() ; 00054 string getHelixId() ; 00055 string getInitialResidueName() ; 00056 int getInitialResidueNumber(); 00057 00058 char getInitialChainId() ; 00059 char getEndingChainId() ; 00060 00061 string getEndingResidueName() ; 00062 int getEndingResidueNumber() ; 00063 00064 int getHelixClass() ; 00065 int getHelixLength() ; 00066 00067 string getComment() ; 00068 00069 BioProteinChain getHelixCoordinates(); 00070 BioProteinChain getHelixCoordinates(BioProteinChain& ); 00071 00072 void showHelixCoordinates(ostream& = cout); 00073 void showHelixCoordinates(BioProteinChain& ,ostream& = cout); 00074 00075 string getHelixSequence(); 00076 string getHelixSequence(BioProteinChain& ); 00077 00078 void showHelixDirectionCosines(ostream& = cout); 00079 void showHelixDirectionCosines(BioProteinChain&, ostream& = cout); 00080 00081 BioMatrix getHelixDirectionCosines(BioProteinChain&); 00082 BioMatrix getHelixDirectionCosines(); 00083 }; 00084 00085 #endif