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 | Data Fields
quartet Struct Reference

A class that stores quartet information. More...

#include <quartet.h>

Public Member Functions

 quartet ()
 
 quartet (const count_t &A, const count_t &C, const count_t &G, const count_t &T, const count_t &N)
 
quartetoperator+= (const quartet &x)
 
quartet operator+ (const quartet &x) const
 
quartetoperator= (const count_t &x)
 
quartetoperator= (const quartet &rhs)
 
count_t operator[] (const gt_t &x) const
 
count_t operator[] (const Base &x) const
 

Data Fields

count_t base [5]
 The count of the number of occurnaces of bases. What nucleotieds this cout represents is stored at the Locus.
 
bool masked
 A flag that indicates whether or not functions should use information from this quartet_t. Functions may ignore this flag if such behavior is desired.
 
char delim
 

Detailed Description

A class that stores quartet information.

Constructor & Destructor Documentation

quartet::quartet ( )
inline

The default constructor unmaskeds the site and zeros the base counts.

quartet::quartet ( const count_t &  A,
const count_t &  C,
const count_t &  G,
const count_t &  T,
const count_t &  N 
)
inline

This constructor explicitly sets the counts of A, C, G, T, and N and unmasked the site.

Member Function Documentation

quartet quartet::operator+ ( const quartet x) const
inline

This operator adds the basecounts of the two quartet s together and returns them. masked is ignored.

quartet& quartet::operator+= ( const quartet x)
inline

This operator is not implemented correctly. TODO fix it.

quartet& quartet::operator= ( const count_t &  x)
inline

This operator copies the array count_t to base. Mask and delimiter is left untouched.


The documentation for this struct was generated from the following file: