public class UnionAlgorithmSkeleton extends Object implements CountsAggregatorI
| Constructor and Description |
|---|
UnionAlgorithmSkeleton(CountsReaderI... readers) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
getCount()
Return the sum of counts over the readers that have non zero counts at the current position.
|
int |
getCount(int readerIndex)
Return the count for a specific reader.
|
int |
getLength()
The length of the region/peak where the count is observed.
|
int |
getPosition()
Return the zero-based position along the sequence where the count is observed.
|
CountsReaderI[] |
getReaders() |
boolean |
hasNextTransition()
Determines if the reader has data about another transition.
|
void |
nextTransition()
Advance to the next transition.
|
void |
reposition(int position)
Reposition the reader on a genomic position.
|
void |
skipTo(int position)
Advance up to or past the specified position.
|
public UnionAlgorithmSkeleton(CountsReaderI... readers)
public int getPosition()
CountsReaderIgetPosition in interface CountsReaderIpublic boolean hasNextTransition()
throws IOException
CountsReaderIhasNextTransition in interface CountsReaderIIOExceptionpublic void nextTransition()
throws IOException
CountsReaderInextTransition in interface CountsReaderIIOExceptionpublic void skipTo(int position)
CountsReaderICountsReaderI.getPosition() is at least equal, or greater to
the specified position.skipTo in interface CountsReaderIpublic void reposition(int position)
throws IOException
CountsReaderIreposition in interface CountsReaderIposition - Position to seek to.IOException - If an error occurs accessing the index or counts data.public int getLength()
CountsReaderIgetLength in interface CountsReaderIpublic void close()
close in interface Closeableclose in interface AutoCloseablepublic int getCount()
getCount in interface CountsAggregatorIgetCount in interface CountsReaderIpublic final CountsReaderI[] getReaders()
public final int getCount(int readerIndex)
getCount in interface CountsAggregatorIreaderIndex - Index ((zero-based) of the reader when provided as parameter to the constructorCopyright © 2017 Campagne Laboratory. All rights reserved.