public class OffsetCountsReader extends Object implements CountsReaderI
| Constructor and Description |
|---|
OffsetCountsReader(CountsReader delegate,
int offset) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
getCount()
Return the count at the given position.
|
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.
|
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 |
setOffset(int offset)
Change the offset.
|
void |
skipTo(int position)
Advance up to or past the specified position.
|
public OffsetCountsReader(CountsReader delegate, int offset)
public int getCount()
getCount in interface CountsReaderIpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic void skipTo(int position)
throws IOException
CountsReaderI.getPosition() is at least equal, or greater to
the specified position.skipTo in interface CountsReaderIIOExceptionpublic 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 getPosition()
getPosition in interface CountsReaderIpublic boolean hasNextTransition()
throws IOException
hasNextTransition in interface CountsReaderIIOExceptionpublic void nextTransition()
throws IOException
nextTransition in interface CountsReaderIIOExceptionpublic void setOffset(int offset)
offset - New value that is being added to count transition positions.Copyright © 2018 Campagne Laboratory. All rights reserved.