Class SAMRecordQueryHashComparator

java.lang.Object
htsjdk.samtools.SAMRecordQueryNameComparator
htsjdk.samtools.SAMRecordQueryHashComparator
All Implemented Interfaces:
SAMRecordComparator, Serializable, Comparator<SAMRecord>

public class SAMRecordQueryHashComparator extends SAMRecordQueryNameComparator implements Serializable
SAMRecord comparator that provides an ordering based on a hash of the queryname. Has the useful property that reads with the same name will be grouped together, but that reads appear in an otherwise random order. Useful for when the read names in a BAM are correlated to something else (e.g. position, read group), making a straight queryname sort undesirable.
See Also:
  • Constructor Details

    • SAMRecordQueryHashComparator

      public SAMRecordQueryHashComparator()
  • Method Details