public class MarkDuplicatesWithMateCigarIterator extends Object implements SAMRecordIterator
| Constructor and Description |
|---|
MarkDuplicatesWithMateCigarIterator(SAMFileHeader header,
CloseableIterator<SAMRecord> iterator,
OpticalDuplicateFinder opticalDuplicateFinder,
DuplicateScoringStrategy.ScoringStrategy duplicateScoringStrategy,
int toMarkQueueMinimumDistance,
boolean removeDuplicates,
boolean skipPairsWithNoMateCigar,
int maxRecordsInRam,
int blockSize,
List<File> tmpDirs)
Initializes the mark duplicates iterator.
|
| Modifier and Type | Method and Description |
|---|---|
SAMRecordIterator |
assertSorted(SAMFileHeader.SortOrder sortOrder)
Establishes that records returned by this iterator are expected to
be in the specified sort order.
|
void |
close() |
LibraryIdGenerator |
getLibraryIdGenerator() |
int |
getNumDuplicates() |
int |
getNumRecordsWithNoMateCigar()
Useful for statistics after the iterator has been exhausted and closed.
|
Histogram<Short> |
getOpticalDupesByLibraryId() |
boolean |
hasNext() |
void |
logMemoryStats(Log log) |
SAMRecord |
next() |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic MarkDuplicatesWithMateCigarIterator(SAMFileHeader header, CloseableIterator<SAMRecord> iterator, OpticalDuplicateFinder opticalDuplicateFinder, DuplicateScoringStrategy.ScoringStrategy duplicateScoringStrategy, int toMarkQueueMinimumDistance, boolean removeDuplicates, boolean skipPairsWithNoMateCigar, int maxRecordsInRam, int blockSize, List<File> tmpDirs) throws PicardException
header - the SAM headeriterator - an iterator over the SAM records to consideropticalDuplicateFinder - the algorithm for optical duplicate detectionduplicateScoringStrategy - the scoring strategy for choosing duplicates. This cannot be SUM_OF_BASE_QUALITIES.toMarkQueueMinimumDistance - minimum distance for which to bufferremoveDuplicates - true to remove duplicates, false to mark duplicatesskipPairsWithNoMateCigar - true to not return mapped pairs with no mate cigar, false otherwiseblockSize - the size of the blocks in the underlying buffer/queuetmpDirs - the temporary directories to use if we spill records to diskPicardException - if the inputs are not in coordinate sort orderpublic void logMemoryStats(Log log)
public SAMRecordIterator assertSorted(SAMFileHeader.SortOrder sortOrder)
assertSorted in interface SAMRecordIteratorsortOrder - The order in which records are expected to be returnedpublic SAMRecord next() throws PicardException
next in interface Iterator<SAMRecord>PicardExceptionpublic void close()
close in interface CloseableIterator<SAMRecord>close in interface Closeableclose in interface AutoCloseablepublic int getNumRecordsWithNoMateCigar()
public int getNumDuplicates()
public LibraryIdGenerator getLibraryIdGenerator()