X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=src%2Fapi%2FBamAlignment.h;h=0f4fe7366dd3f8096b9f7c775f673188d81d1d41;hb=b307a397f7d818d0fa064b91229e312707e43951;hp=d18b239d65f50b44703682184e760927fd181f81;hpb=8897acb8a7562a08b76ec04093f8d2065ee7bb3b;p=bamtools.git diff --git a/src/api/BamAlignment.h b/src/api/BamAlignment.h index d18b239..0f4fe73 100644 --- a/src/api/BamAlignment.h +++ b/src/api/BamAlignment.h @@ -2,7 +2,7 @@ // BamAlignment.h (c) 2009 Derek Barnett // Marth Lab, Department of Biology, Boston College // --------------------------------------------------------------------------- -// Last modified: 18 November 2012 (DB) +// Last modified: 25 July 2013 (DB) // --------------------------------------------------------------------------- // Provides the BamAlignment data structure // *************************************************************************** @@ -86,6 +86,9 @@ struct API_EXPORT BamAlignment { // retrieves the SAM/BAM type-code for requested tag name bool GetTagType(const std::string& tag, char& type) const; + // retrieves the SAM/BAM type-code for the data elements in an array tag + bool GetArrayTagType(const std::string& tag, char& type) const; + // returns true if alignment has a record for this tag name bool HasTag(const std::string& tag) const; @@ -113,8 +116,8 @@ struct API_EXPORT BamAlignment { public: std::string Name; // read name int32_t Length; // length of query sequence - std::string QueryBases; // 'original' sequence (as reported from sequencing machine) - std::string AlignedBases; // 'aligned' sequence (includes any indels, padding, clipping) + std::string QueryBases; // 'original' sequence (contained in BAM file) + std::string AlignedBases; // 'aligned' sequence (QueryBases plus deletion, padding, clipping chars) std::string Qualities; // FASTQ qualities (ASCII characters, not numeric values) std::string TagData; // tag data (use provided methods to query/modify) int32_t RefID; // ID number for reference sequence