Class SamPairUtil.SetMateInfoIterator

java.lang.Object
htsjdk.samtools.util.PeekableIterator<SAMRecord>
htsjdk.samtools.SamPairUtil.SetMateInfoIterator
All Implemented Interfaces:
CloseableIterator<SAMRecord>, Closeable, AutoCloseable, Iterator<SAMRecord>
Enclosing class:
SamPairUtil

public static class SamPairUtil.SetMateInfoIterator extends PeekableIterator<SAMRecord>
A class to iterate through SAMRecords and set mate information on the given records, and optionally set the mate cigar tag (true by default).
  • Constructor Details

    • SetMateInfoIterator

      public SetMateInfoIterator(Iterator<SAMRecord> iterator)
      By default, the mate cigar tag is set
      Parameters:
      iterator - the iterator to wrap
    • SetMateInfoIterator

      public SetMateInfoIterator(Iterator<SAMRecord> iterator, boolean setMateCigar)
      Parameters:
      iterator - the iterator to wrap
      setMateCigar - true if we are to update/create the Mate CIGAR (MC) optional tag, false if we are to clear any mate cigar tag that is present.
    • SetMateInfoIterator

      public SetMateInfoIterator(Iterator<SAMRecord> iterator, boolean setMateCigar, boolean ignoreMissingMates)
      Parameters:
      iterator - the iterator to wrap
      setMateCigar - true if we are to update/create the Mate CIGAR (MC) optional tag, false if we are to clear any mate cigar tag that is present.
      ignoreMissingMates - set this to true if we are to ignore missing mates, otherwise an exception will be thrown when a missing mate is encountered
  • Method Details