File: optiblastmatrix.hpp

package info (click to toggle)
mothur 1.48.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 13,684 kB
  • sloc: cpp: 161,854; makefile: 122; sh: 31
file content (41 lines) | stat: -rw-r--r-- 925 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//
//  optiblastmatrix.hpp
//  Mothur
//
//  Created by Sarah Westcott on 5/10/18.
//  Copyright © 2018 Schloss Lab. All rights reserved.
//

#ifndef optiblastmatrix_hpp
#define optiblastmatrix_hpp

#include "optidata.hpp"


class OptiBlastMatrix : public OptiData {
    
public:
    
    OptiBlastMatrix(string, string, string, bool, double c, int l, float p, bool min);
    ~OptiBlastMatrix(){ }
    
    vector< set<long long> > getBlastOverlap() { return blastOverlap; }
    string getOverlapName(long long); //name from nameMap index
    
protected:
    vector<string> overlapNameMap;
    vector< set<long long> > blastOverlap;  //empty unless reading a blast file.
    
    string distFile, namefile, countfile, format;
    bool sim, minWanted;
    float penalty;
    int length;
    
    int readBlast();
    int readBlastNames(map<string, long long>& nameAssignment);
    
    
};


#endif /* optiblastmatrix_hpp */