ʻOhana
Population structure, admixture history, and selection using learning methods.
jade.genotype.hpp
1 /* -------------------------------------------------------------------------
2  Ohana
3  Copyright (c) 2015-2020 Jade Cheng (\___/)
4  Jade Cheng <info@jade-cheng.com> (='.'=)
5  ------------------------------------------------------------------------- */
6 
7 #ifndef JADE_GENOTYPE_HPP__
8 #define JADE_GENOTYPE_HPP__
9 
10 #include "jade.system.hpp"
11 
12 namespace jade
13 {
14  ///
15  /// A genotype, encoded as a one-byte integer value.
16  ///
17  typedef char genotype;
18 
19  ///
20  /// The major-major genotype.
21  ///
22  static const genotype genotype_major_major = '0';
23 
24  ///
25  /// The major-minor genotype.
26  ///
27  static const genotype genotype_major_minor = '1';
28 
29  ///
30  /// The minor-minor genotype.
31  ///
32  static const genotype genotype_minor_minor = '2';
33 
34  ///
35  /// An indication that a genotype is missing.
36  ///
37  static const genotype genotype_missing = '3';
38 }
39 
40 #endif // JADE_GENOTYPE_HPP__