inline uint32_t getNameLength() { uint32_t l = bam_name_len(read1); char* r = getName(); if ( l > 2 and r[l-2] == '/') { return l-2; } return l;//bam_name_len(read1); }
inline uint32_t getNameLength() { return bam_name_len(read); }