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 42 43 44 45 46
|
#ifndef READMATRIX_HPP
#define READMATRIX_HPP
/*
* readmatrix.hpp
*
*
* Created by Pat Schloss on 8/13/08.
* Copyright 2008 Patrick D. Schloss. All rights reserved.
*
*/
#include "mothur.h"
#include "listvector.hpp"
#include "nameassignment.hpp"
#include "counttable.h"
#include "sparsedistancematrix.h"
#include "utils.hpp"
class ReadMatrix {
public:
ReadMatrix(){ DMatrix = new SparseDistanceMatrix(); m = MothurOut::getInstance(); }
virtual ~ReadMatrix() = default;
virtual int read(NameAssignment*){ return 1; }
virtual int read(CountTable*){ return 1; }
void setCutoff(float c) { cutoff = c; }
SparseDistanceMatrix* getDMatrix() { return DMatrix; }
ListVector* getListVector() { return list; }
int successOpen;
protected:
SparseDistanceMatrix* DMatrix;
ListVector* list;
float cutoff;
MothurOut* m;
bool sim;
Utils util;
};
#endif
|