mapgd  0.4
A program for the Maximum-likelihood analysis of population genomic data.
 All Data Structures Functions Variables Friends Groups Pages
Public Member Functions | Static Public Member Functions | Data Fields | Private Attributes | Friends
Base Class Reference

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.
 

Detailed Description

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.

Field Documentation

bool Base::masked
private

indicates the site has been masked.

Some calculations check if a site is masked before use.


The documentation for this class was generated from the following files: