|
mapgd
0.4
A program for the Maximum-likelihood analysis of population genomic data.
|
A class converts human readable bases to bit flags. More...
#include <base.h>
Public Member Functions | |
| Base (const char &) | |
| constructor from IUPCA base code. | |
| Base (const gt_t &) | |
| constructor from Base. | |
Static Public Member Functions | |
| static char | btoc (const gt_t &) |
| static gt_t | ctob (const char &) |
Data Fields | |
| gt_t | base |
| Represents a single base. | |
Private Attributes | |
| bool | masked |
| indicates the site has been masked. More... | |
Friends | |
| std::ostream & | operator<< (std::ostream &, const Base &) |
| use the << operator to write Allele. | |
| std::istream & | operator>> (std::istream &, Base &) |
| use the >> operator to read Allele. | |
A class converts human readable bases to bit flags.
Uses a bit flags to represent the IUPCA encoded bases. Bits 1,2,3 and 4 represent A, C, G and T. An ambiguous base will set all applicable flags.
|
private |
indicates the site has been masked.
Some calculations check if a site is masked before use.
1.8.6