Quetzal-CoaTL
The Coalescence Template Library
Loading...
Searching...
No Matches
marker_traits.hpp
1
// Copyright 2021 Arnaud Becheler <abechele@umich.edu> Florence Jornod <florence@jornod.com>
2
3
/*********************************************************************** * This program is free software; you can
4
*redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free
5
*Software Foundation; either version 2 of the License, or * (at your option) any later version. *
6
* *
7
************************************************************************/
8
9
#ifndef __GENET_H_INCLUDED__
10
#define __GENET_H_INCLUDED__
11
12
/**************************************************************************
13
Descriptor for marker types used in genetic sample data :
14
- In microsatellite data, allelic states are unsigned integers
15
- In Single Nuclear Polymorphism data, allelic states are A, T, G, C
16
***************************************************************************/
17
18
namespace
quetzal::format
19
{
20
namespace
genetics
21
{
22
23
template
<
typename
T>
struct
Marker_Descriptor
24
{
25
typedef
T value_type;
26
};
27
28
Marker_Descriptor<unsigned int>
microsat_instance;
29
Marker_Descriptor<std::string>
SNP_instance;
30
31
using
undefined = int;
32
using
microsatellite
=
Marker_Descriptor<unsigned int>
;
33
using
SNP
=
Marker_Descriptor<std::string>
;
34
35
}
// namespace genetics
36
}
// namespace quetzal::format
37
38
#endif
quetzal::format
Parsers and generators for input/output.
Definition
io.hpp:23
quetzal::format::genetics::Marker_Descriptor
Definition
marker_traits.hpp:24
src
include
quetzal
io
genetics
marker_traits.hpp
Generated by
1.9.8