1 // ***************************************************************************
2 // SamReadGroup.h (c) 2010 Derek Barnett
3 // Marth Lab, Department of Biology, Boston College
4 // All rights reserved.
5 // ---------------------------------------------------------------------------
6 // Last modified: 23 December 2010 (DB)
7 // ---------------------------------------------------------------------------
8 // Provides functionality for querying/manipulating read group data
9 // **************************************************************************
11 #ifndef SAM_READGROUP_H
12 #define SAM_READGROUP_H
14 #include "api/api_global.h"
19 class API_EXPORT SamReadGroup {
24 SamReadGroup(const std::string& id);
33 // convenience methods to check if SamReadGroup contains these values:
34 bool HasID(void) const;
35 bool HasSample(void) const;
36 bool HasLibrary(void) const;
37 bool HasDescription(void) const;
38 bool HasPlatformUnit(void) const;
39 bool HasPredictedInsertSize(void) const;
40 bool HasSequencingCenter(void) const;
41 bool HasProductionDate(void) const;
42 bool HasSequencingTechnology(void) const;
46 std::string ID; // ID:<ID>
47 std::string Sample; // SM:<Sample>
48 std::string Library; // LB:<Library>
49 std::string Description; // DS:<Description>
50 std::string PlatformUnit; // PU:<PlatformUnit>
51 std::string PredictedInsertSize; // PI:<PredictedInsertSize>
52 std::string SequencingCenter; // CN:<SequencingCenter>
53 std::string ProductionDate; // DT:<ProductionDate>
54 std::string SequencingTechnology; // PL:<SequencingTechnology>
57 // ---------------------------------------------------
58 // comparison operators
60 // for equality: compare IDs
61 inline bool operator==(const SamReadGroup& lhs, const SamReadGroup& rhs) {
62 return lhs.ID == rhs.ID;
65 } // namespace BamTools
67 #endif // SAM_READGROUP_H