diff --git a/src/utils/BamTools/include/BamAlignment.mapping.hpp b/src/utils/BamTools/include/BamAlignment.mapping.hpp index ff28899be..1ff4ece46 100644 --- a/src/utils/BamTools/include/BamAlignment.mapping.hpp +++ b/src/utils/BamTools/include/BamAlignment.mapping.hpp @@ -1,51 +1,51 @@ -struct _Bin_t { - operator uint32_t() const {return (uint32_t)(_ptr()->core.bin);} - const uint32_t& operator=(const uint32_t& val) { - _ptr()->core.bin = (uint32_t)val; +struct _RefID_t { + operator int32_t() const {return (int32_t)(_ptr()->core.tid);} + const int32_t& operator=(const int32_t& val) { + _ptr()->core.tid = (int32_t)val; return val; } private: bam1_t* _ptr() const { - return ((BamAlignment*)(((uintptr_t)this) - ((uintptr_t)&((BamAlignment*)NULL)->Bin)))->HtsObj2(); + return ((BamAlignment*)(((uintptr_t)this) - ((uintptr_t)&((BamAlignment*)NULL)->RefID)))->HtsObj2(); } -} Bin; +} RefID; -struct _AlignmentFlag_t { - operator int32_t() const {return (int32_t)(_ptr()->core.flag);} +struct _Position_t { + operator int32_t() const {return (int32_t)(_ptr()->core.pos);} const int32_t& operator=(const int32_t& val) { - _ptr()->core.flag = (int32_t)val; + _ptr()->core.pos = (int32_t)val; return val; } private: bam1_t* _ptr() const { - return ((BamAlignment*)(((uintptr_t)this) - ((uintptr_t)&((BamAlignment*)NULL)->AlignmentFlag)))->HtsObj2(); + return ((BamAlignment*)(((uintptr_t)this) - ((uintptr_t)&((BamAlignment*)NULL)->Position)))->HtsObj2(); } -} AlignmentFlag; +} Position; -struct _MapQuality_t { - operator int16_t() const {return (int16_t)(_ptr()->core.qual);} - const int16_t& operator=(const int16_t& val) { - _ptr()->core.qual = (int16_t)val; +struct _MatePosition_t { + operator int32_t() const {return (int32_t)(_ptr()->core.mpos);} + const int32_t& operator=(const int32_t& val) { + _ptr()->core.mpos = (int32_t)val; return val; } private: bam1_t* _ptr() const { - return ((BamAlignment*)(((uintptr_t)this) - ((uintptr_t)&((BamAlignment*)NULL)->MapQuality)))->HtsObj2(); + return ((BamAlignment*)(((uintptr_t)this) - ((uintptr_t)&((BamAlignment*)NULL)->MatePosition)))->HtsObj2(); } -} MapQuality; +} MatePosition; -struct _Length_t { - operator int32_t() const {return (int32_t)(_ptr()->core.l_qseq);} +struct _MateRefID_t { + operator int32_t() const {return (int32_t)(_ptr()->core.mtid);} const int32_t& operator=(const int32_t& val) { - _ptr()->core.l_qseq = (int32_t)val; + _ptr()->core.mtid = (int32_t)val; return val; } private: bam1_t* _ptr() const { - return ((BamAlignment*)(((uintptr_t)this) - ((uintptr_t)&((BamAlignment*)NULL)->Length)))->HtsObj2(); + return ((BamAlignment*)(((uintptr_t)this) - ((uintptr_t)&((BamAlignment*)NULL)->MateRefID)))->HtsObj2(); } -} Length; +} MateRefID; struct _InsertSize_t { operator int32_t() const {return (int32_t)(_ptr()->core.isize);} @@ -59,86 +59,86 @@ struct _InsertSize_t { } } InsertSize; -struct _MatePosition_t { - operator int32_t() const {return (int32_t)(_ptr()->core.mpos);} +struct _Length_t { + operator int32_t() const {return (int32_t)(_ptr()->core.l_qseq);} const int32_t& operator=(const int32_t& val) { - _ptr()->core.mpos = (int32_t)val; + _ptr()->core.l_qseq = (int32_t)val; return val; } private: bam1_t* _ptr() const { - return ((BamAlignment*)(((uintptr_t)this) - ((uintptr_t)&((BamAlignment*)NULL)->MatePosition)))->HtsObj2(); + return ((BamAlignment*)(((uintptr_t)this) - ((uintptr_t)&((BamAlignment*)NULL)->Length)))->HtsObj2(); } -} MatePosition; +} Length; -struct _NumCigarOperations_t { - operator uint32_t() const {return (uint32_t)(_ptr()->core.n_cigar);} +struct _Bin_t { + operator uint32_t() const {return (uint32_t)(_ptr()->core.bin);} const uint32_t& operator=(const uint32_t& val) { - _ptr()->core.n_cigar = (uint32_t)val; + _ptr()->core.bin = (uint32_t)val; return val; } private: bam1_t* _ptr() const { - return ((BamAlignment*)(((uintptr_t)this) - ((uintptr_t)&((BamAlignment*)NULL)->NumCigarOperations)))->HtsObj2(); + return ((BamAlignment*)(((uintptr_t)this) - ((uintptr_t)&((BamAlignment*)NULL)->Bin)))->HtsObj2(); } -} NumCigarOperations; +} Bin; -struct _QuerySequenceLength_t { - operator uint32_t() const {return (uint32_t)(_ptr()->core.l_qseq);} - const uint32_t& operator=(const uint32_t& val) { - _ptr()->core.l_qseq = (uint32_t)val; +struct _MapQuality_t { + operator int16_t() const {return (int16_t)(_ptr()->core.qual);} + const int16_t& operator=(const int16_t& val) { + _ptr()->core.qual = (int16_t)val; return val; } private: bam1_t* _ptr() const { - return ((BamAlignment*)(((uintptr_t)this) - ((uintptr_t)&((BamAlignment*)NULL)->QuerySequenceLength)))->HtsObj2(); + return ((BamAlignment*)(((uintptr_t)this) - ((uintptr_t)&((BamAlignment*)NULL)->MapQuality)))->HtsObj2(); } -} QuerySequenceLength; +} MapQuality; -struct _Position_t { - operator int32_t() const {return (int32_t)(_ptr()->core.pos);} +struct _AlignmentFlag_t { + operator int32_t() const {return (int32_t)(_ptr()->core.flag);} const int32_t& operator=(const int32_t& val) { - _ptr()->core.pos = (int32_t)val; + _ptr()->core.flag = (int32_t)val; return val; } private: bam1_t* _ptr() const { - return ((BamAlignment*)(((uintptr_t)this) - ((uintptr_t)&((BamAlignment*)NULL)->Position)))->HtsObj2(); + return ((BamAlignment*)(((uintptr_t)this) - ((uintptr_t)&((BamAlignment*)NULL)->AlignmentFlag)))->HtsObj2(); } -} Position; +} AlignmentFlag; -struct _QueryNameLength_t { - operator uint32_t() const {return (uint32_t)(_ptr()->core.l_qname);} +struct _NumCigarOperations_t { + operator uint32_t() const {return (uint32_t)(_ptr()->core.n_cigar);} const uint32_t& operator=(const uint32_t& val) { - _ptr()->core.l_qname = (uint32_t)val; + _ptr()->core.n_cigar = (uint32_t)val; return val; } private: bam1_t* _ptr() const { - return ((BamAlignment*)(((uintptr_t)this) - ((uintptr_t)&((BamAlignment*)NULL)->QueryNameLength)))->HtsObj2(); + return ((BamAlignment*)(((uintptr_t)this) - ((uintptr_t)&((BamAlignment*)NULL)->NumCigarOperations)))->HtsObj2(); } -} QueryNameLength; +} NumCigarOperations; -struct _MateRefID_t { - operator int32_t() const {return (int32_t)(_ptr()->core.mtid);} - const int32_t& operator=(const int32_t& val) { - _ptr()->core.mtid = (int32_t)val; +struct _QueryNameLength_t { + operator uint32_t() const {return (uint32_t)(_ptr()->core.l_qname);} + const uint32_t& operator=(const uint32_t& val) { + _ptr()->core.l_qname = (uint32_t)val; return val; } private: bam1_t* _ptr() const { - return ((BamAlignment*)(((uintptr_t)this) - ((uintptr_t)&((BamAlignment*)NULL)->MateRefID)))->HtsObj2(); + return ((BamAlignment*)(((uintptr_t)this) - ((uintptr_t)&((BamAlignment*)NULL)->QueryNameLength)))->HtsObj2(); } -} MateRefID; +} QueryNameLength; -struct _RefID_t { - operator int32_t() const {return (int32_t)(_ptr()->core.tid);} - const int32_t& operator=(const int32_t& val) { - _ptr()->core.tid = (int32_t)val; +struct _QuerySequenceLength_t { + operator uint32_t() const {return (uint32_t)(_ptr()->core.l_qseq);} + const uint32_t& operator=(const uint32_t& val) { + _ptr()->core.l_qseq = (uint32_t)val; return val; } private: bam1_t* _ptr() const { - return ((BamAlignment*)(((uintptr_t)this) - ((uintptr_t)&((BamAlignment*)NULL)->RefID)))->HtsObj2(); + return ((BamAlignment*)(((uintptr_t)this) - ((uintptr_t)&((BamAlignment*)NULL)->QuerySequenceLength)))->HtsObj2(); } -} RefID; +} QuerySequenceLength;