]> git.donarmstrong.com Git - mothur.git/blobdiff - alignmentdb.h
started work on classify.seqs command. changed the database class so that it does...
[mothur.git] / alignmentdb.h
diff --git a/alignmentdb.h b/alignmentdb.h
new file mode 100644 (file)
index 0000000..339f46f
--- /dev/null
@@ -0,0 +1,42 @@
+#ifndef ALIGNMENTDB_H
+#define ALIGNMENTDB_H
+
+/*
+ *  alignmentdb.h
+ *  Mothur
+ *
+ *  Created by westcott on 11/4/09.
+ *  Copyright 2009 Schloss Lab. All rights reserved.
+ *
+ */
+
+#include "mothur.h"
+#include "sequence.hpp"
+#include "database.hpp"
+
+/**************************************************************************************************/
+
+class AlignmentDB {
+
+public:
+
+       AlignmentDB(string, string, int, int, int, int, int);  //reads fastafile passed in and stores sequences
+       ~AlignmentDB();
+       
+       Sequence findClosestSequence(Sequence*);
+       float getSearchScore()  {  return search->getSearchScore();  }
+       int getLongestBase()    {  return longest;  }
+       
+private:
+       int numSeqs, longest;
+       float searchScore;
+       
+       Database* search;
+       vector<Sequence> templateSequences;
+       Sequence emptySequence;
+};
+
+/**************************************************************************************************/
+
+#endif
+