public class CountAdaptiveBinningAdaptor extends Object implements CountBinningAdapterI
| Constructor and Description |
|---|
CountAdaptiveBinningAdaptor(CountsReaderI delegate) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
double |
getAverage()
Get the average count over the bin.
|
int |
getCount()
Return the count at the given position.
|
int |
getLength()
The length of the region/peak where the count is observed.
|
int |
getMax()
Get the maximum count observed over the bin.
|
int |
getPosition()
Return the zero-based position along the sequence where the count is observed.
|
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 CountAdaptiveBinningAdaptor(CountsReaderI delegate)
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic int getPosition()
CountsReaderIgetPosition in interface CountsReaderIpublic boolean hasNextTransition()
throws IOException
CountsReaderIhasNextTransition in interface CountsReaderIIOExceptionpublic void nextTransition()
throws IOException
CountsReaderInextTransition in interface CountsReaderIIOExceptionpublic int getCount()
CountsReaderIgetCount in interface CountsReaderIpublic double getAverage()
CountBinningAdapterIgetAverage in interface CountBinningAdapterIpublic void skipTo(int position)
throws IOException
skipTo in interface CountsReaderIposition - position to skip to.IOExceptionpublic 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 int getMax()
getMax in interface CountBinningAdapterICopyright © 2018 Campagne Laboratory. All rights reserved.