]> git.donarmstrong.com Git - mothur.git/blob - distancedb.hpp
added distance search method to classify.seqs
[mothur.git] / distancedb.hpp
1 #ifndef DISTANCEDB_HPP
2 #define DISTANCEDB_HPP
3
4 /*
5  *  distancedb.hpp
6  *  
7  *
8  *  Created by westcott on 1/27/10.
9  *  Copyright 2010 Schloss Lab. All rights reserved.
10  *
11  */
12
13
14 #include "mothur.h"
15 #include "dist.h"
16
17 class DistanceDB : public Database {
18         
19 public:
20         
21         DistanceDB();
22         ~DistanceDB() {}
23         
24         void generateDB() {} //doesn't generate a search db 
25         void addSequence(Sequence);  
26         vector<int> findClosestSequences(Sequence*, int);  // returns indexes of n closest sequences to query
27         
28 private:
29         vector<Sequence> data;
30         Dist* distCalculator;
31         
32         int templateSeqsLength;
33         bool templateAligned;
34         
35         bool isAligned(string);
36         
37 };
38
39 #endif