]> git.donarmstrong.com Git - mothur.git/blob - distancedb.hpp
changing command name classify.shared to classifyrf.shared
[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() { delete distCalculator; }
23         
24         void generateDB() {} //doesn't generate a search db 
25         void addSequence(Sequence); 
26         string getName(int i) { return data[i].getName(); } 
27         vector<int> findClosestSequences(Sequence*, int);  // returns indexes of n closest sequences to query
28         
29         #ifdef USE_MPI  
30         int MPISend(int) {return 0;}
31         int MPIRecv(int) {return 0;}
32         #endif
33         
34 private:
35         vector<Sequence> data;
36         Dist* distCalculator;
37         
38         int templateSeqsLength;
39         bool templateAligned;
40         
41         bool isAligned(string);
42         
43 };
44
45 #endif