Gamgee
You miserable little maggot. I'll stove your head in!
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
read_group.h
Go to the documentation of this file.
1 #ifndef gamgee__read_group__guard
2 #define gamgee__read_group__guard
3 
4 #include<string>
5 
6 namespace gamgee {
7 
8 
17  class ReadGroup {
18 
19  public:
20  std::string id;
21  std::string center;
22  std::string description;
23  std::string date_time;
24  std::string flow_order;
25  std::string key_sequence;
26  std::string library;
27  std::string programs;
28  std::string median_insert_size;
29  std::string platform;
30  std::string platform_unit;
31  std::string sample;
32 
33  ReadGroup() = default;
34  ReadGroup(const std::string& header_line);
35 
36  private:
37  static const char ID_TAG [];
38  static const char CENTER_TAG [];
39  static const char DESCRIPTION_TAG [];
40  static const char DATE_TIME_TAG [];
41  static const char FLOW_ORDER_TAG [];
42  static const char KEY_SEQUENCE_TAG [];
43  static const char LIBRARY_TAG [];
44  static const char PROGRAMS_TAG [];
45  static const char MEDIAN_INSERT_SIZE_TAG [];
46  static const char PLATFORM_TAG [];
47  static const char PLATFORM_UNIT_TAG [];
48  static const char SAMPLE_TAG [];
49 
50  static bool starts_with(const std::string& token, const char tag[2]) {
51  return token[0] == tag[0] && token[1] == tag[1];
52  }
53  };
54 
55 
56 }
57 
58 
59 
60 #endif //gamgee__read_group__guard
std::string date_time
Definition: read_group.h:23
std::string flow_order
Definition: read_group.h:24
std::string platform
Definition: read_group.h:29
std::string sample
Definition: read_group.h:31
std::string description
Definition: read_group.h:22
std::string id
Definition: read_group.h:20
Definition: exceptions.h:9
std::string key_sequence
Definition: read_group.h:25
std::string center
Definition: read_group.h:21
ReadGroup()=default
std::string median_insert_size
Definition: read_group.h:28
Helper struct to hold one read group record from a sam file header.
Definition: read_group.h:17
std::string library
Definition: read_group.h:26
std::string platform_unit
Definition: read_group.h:30
std::string programs
Definition: read_group.h:27