X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=src%2Fapi%2FSamReadGroup.h;h=b203d3cdb16927c5363272c9810b74b84bd2ecba;hb=cdf4bbcb19025398d429035fe672661a8c8d1a80;hp=538617d972d0e66928867b0506b2ae8dcd91a624;hpb=8c80d760637f8df39262683cd2570f0589423d36;p=bamtools.git diff --git a/src/api/SamReadGroup.h b/src/api/SamReadGroup.h index 538617d..b203d3c 100644 --- a/src/api/SamReadGroup.h +++ b/src/api/SamReadGroup.h @@ -3,7 +3,7 @@ // Marth Lab, Department of Biology, Boston College // All rights reserved. // --------------------------------------------------------------------------- -// Last modified: 4 March 2011 (DB) +// Last modified: 18 April 2011 (DB) // --------------------------------------------------------------------------- // Provides direct read/write access to the SAM read group data fields. // *************************************************************************** @@ -28,26 +28,33 @@ struct API_EXPORT SamReadGroup { void Clear(void); // clears all data fields // convenience query methods + bool HasDescription(void) const; // returns true if read group has a description + bool HasFlowOrder(void) const; // returns true if read group has a flow order entry bool HasID(void) const; // returns true if read group has a group ID - bool HasSample(void) const; // returns true if read group has a sample name + bool HasKeySequence(void) const; // returns true if read group has a key sequence bool HasLibrary(void) const; // returns true if read group has a library name - bool HasDescription(void) const; // returns true if read group has a description bool HasPlatformUnit(void) const; // returns true if read group has a platform unit ID bool HasPredictedInsertSize(void) const; // returns true if read group has a predicted insert size - bool HasSequencingCenter(void) const; // returns true if read group has a sequencing center ID bool HasProductionDate(void) const; // returns true if read group has a production date + bool HasProgram(void) const; // returns true if read group has a program entry + bool HasSample(void) const; // returns true if read group has a sample name + bool HasSequencingCenter(void) const; // returns true if read group has a sequencing center ID bool HasSequencingTechnology(void) const; // returns true if read group has a sequencing technology ID - // data members - std::string ID; // ID: - std::string Sample; // SM: - std::string Library; // LB: - std::string Description; // DS: - std::string PlatformUnit; // PU: - std::string PredictedInsertSize; // PI: - std::string SequencingCenter; // CN: - std::string ProductionDate; // DT: - std::string SequencingTechnology; // PL: + + // data fields + std::string Description; // DS: + std::string FlowOrder; // FO: + std::string ID; // ID: *Required for valid SAM header* + std::string KeySequence; // KS: + std::string Library; // LB: + std::string PlatformUnit; // PU: + std::string PredictedInsertSize; // PI: + std::string ProductionDate; // DT: + std::string Program; // PG: + std::string Sample; // SM: + std::string SequencingCenter; // CN: + std::string SequencingTechnology; // PL: }; /*! \fn bool operator==(const SamReadGroup& lhs, const SamReadGroup& rhs)