-
Notifications
You must be signed in to change notification settings - Fork 0
/
species.h
45 lines (37 loc) · 1 KB
/
species.h
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
/*
* species.h
*
* Written by Conrad Shyu (conradshyu at hotmail.com)
*
* Center for the Study of Biological Complexity (CSBC)
* Department of Microbiology and Immunology
* Medical College of Virginia
* Virginia Commonwealth University
* Richmond, VA 23298
*
* revised on April 16, 2013
*/
#ifndef _SPECIES_H
#define _SPECIES_H
#include <table.h>
#include <pivot.h>
#include <map>
#include <string>
class Species
{
public:
Species(
const std::map<unsigned int, stTABLE>&, // translate table
const std::map<unsigned int, double>& ); // weighted shannon index
~Species();
bool Run( const std::string& );
private:
std::map<std::string, double> mIndex;
std::map<std::string, stPIVOT> mAssign;
std::map<unsigned int, std::string> mTaxon;
bool Output( const std::string& );
bool Profile( const std::string& );
bool Assign( const std::string& );
bool Assign( const std::string&, const stPIVOT& );
}; // end of class definition
#endif // _SPECIES_H