Main Page | Class Hierarchy | Class List | File List | Class Members

GenePrediction.h

00001 
00002 // Copyright (c) 2003, The Institute for Genomic Research (TIGR), Rockville,
00003 // Maryland, U.S.A.  All rights reserved.
00005 #ifndef GENEPREDICTION_H
00006 #define GENEPREDICTION_H
00007 
00008 #include "Prediction.h"
00009 class GeneModelType;
00010 
00020 class GenePrediction : public Prediction {
00021 public:
00029   GenePrediction(const SeqLoc& sl, AnnotationScore d, int modelId, const string& source, const GeneModelType& mt, int frame = -1) :
00030     Prediction(sl,d,modelId,source), _modelType(mt), _frame(frame) { }
00031 
00035   virtual ~GenePrediction() { }
00036 
00037   virtual void del() { }
00038 
00042   void print(std::ostream&, const std::string&) const;
00043 
00048   const string& getTypeStr() const;
00049 
00054   const int getScoreIdx() const;
00055 
00059   DataStorageType* makePlaceHolders() const ;
00060 
00064   int getFrame() const { return _frame; }
00065 
00066   static const int NUM_ANNOTATION_SCORED_TYPES = 4;
00067   static const int NOT_GENE_ID = 4;
00068 private:
00069   const GeneModelType& _modelType;
00070   int _frame;
00071 };
00072 
00073 #endif // GENEPREDICTION_H