BioInt  1.02.00
BioInt: An integrative biological object-oriented application framework and interpreter
BioMultipleEmbl.h
Go to the documentation of this file.
00001 /***************************************************************************
00002                           BioMultipleEmbl.h  -  description
00003                              -------------------
00004     begin                : Wed Jun 2 2004
00005     copyright            : (C) 2004 by Helix Team
00006     email                : parisodhana@helixgenomics.com
00007  ***************************************************************************/
00008 #ifndef BIOMULTIPLEEMBL_H
00009 #define BIOMULTIPLEEMBL_H
00010 
00011 #include <string>
00012 #include <vector>
00013 #include "BioEmbl.h"
00014 
00015 using namespace std;
00016 
00017 class BioMultipleEmbl
00018 {
00019 friend bool operator >(const BioMultipleEmbl& , const BioMultipleEmbl&);
00020 friend bool operator <(const BioMultipleEmbl& , const BioMultipleEmbl&);
00021 friend bool operator ==(const BioMultipleEmbl& , const BioMultipleEmbl&);
00022         vector <BioEmbl> multipleEmbl_;
00023    public :
00024         BioMultipleEmbl();
00025         BioMultipleEmbl(const string&);
00026 
00027 
00028   long getNumberOfEntries();
00029   long getNumberOfOccurencesOfGene(const string& );
00030   long getNumberOfGenomes();
00031 
00032   BioMultipleEmbl getEntriesByGene(const string& );
00033   BioMultipleEmbl getEntriesByGenomes();
00034   // to add 
00035   // BioMultipleEmbl getEntriesByOrganism(const string& );
00036   // vector <string > getUniqueGenes();
00037   // vector <string> getUniqueOrganisms(); 
00038 
00039 
00040         BioEmbl getEntry(long);
00041         BioEmbl getEntry(const string& );
00042         
00043   bool findDefinition( unsigned long i, const string& );
00044   bool findLocus( unsigned long i, const string& );
00045   bool findAccessionNumber(unsigned long i,  const string& );
00046  // to add 
00047  // bool findSource (unsigned long i, const string& ); 
00048   bool findOrganism( unsigned long i, const string& );
00049   bool findTaxanomy( unsigned long i, const string& );
00050   bool findKeyword( unsigned long i, const string& );
00051 
00052   void showInMultipleFasta(const string& );
00053   void showInMultipleFasta(ostream& = cout);
00054   void showInFasta(int, ostream& = cout);
00055 
00056   friend BioMultipleEmbl operator+= (BioMultipleEmbl& , BioEmbl );
00057   friend BioMultipleEmbl operator+( BioMultipleEmbl , BioEmbl& );
00058   friend BioMultipleEmbl operator+( BioEmbl&, BioEmbl&);
00059 
00060   void pushEntry(BioEmbl&);
00061 
00062 };
00063 
00064 #endif
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines