func IsSupplementary(record *sam.Record) bool {
	return record.Flags&sam.Supplementary != 0
}
IsSupplementary returns true if record is a supplementary alignment.
package bam
import (
	"fmt"
	"github.com/grailbio/hts/sam"
)
func IsPaired(record *sam.Record) bool {
	return record.Flags&sam.Paired != 0
}
func IsProperPair(record *sam.Record) bool {
	return record.Flags&sam.ProperPair != 0
}
func IsUnmapped(record *sam.Record) bool {
	return record.Flags&sam.Unmapped != 0
}
func IsMateUnmapped(record *sam.Record) bool {
	return record.Flags&sam.MateUnmapped != 0
}
func IsReverse(record *sam.Record) bool {
	return record.Flags&sam.Reverse != 0
}
func IsMateReverse(record *sam.Record) bool {
	return record.Flags&sam.MateReverse != 0
}
func IsRead1(record *sam.Record) bool {
	return record.Flags&sam.Read1 != 0
}
func IsRead2(record *sam.Record) bool {
	return record.Flags&sam.Read2 != 0
}
func IsSecondary(record *sam.Record) bool {
	return record.Flags&sam.Secondary != 0
}
func IsQCFail(record *sam.Record) bool {
	return record.Flags&sam.QCFail != 0
}
func IsDuplicate(record *sam.Record) bool {
	return record.Flags&sam.Duplicate != 0
}
func IsLinearDuplicate(record *sam.Record) bool {
	dupType, err := record.LinearDup()
	if err != nil {
		panic(err)
	}
	return dupType == sam.LinearDuplicate
}