public class BCFSplitGuesser extends Object
| Modifier and Type | Class and Description |
|---|---|
protected static class |
BaseSplitGuesser.PosSize |
| Modifier and Type | Field and Description |
|---|---|
protected static int |
BGZF_MAGIC |
protected static int |
BGZF_MAGIC_SUB |
protected static int |
BGZF_SUB_SIZE |
protected ByteBuffer |
buf |
protected htsjdk.samtools.seekablestream.SeekableStream |
in |
| Constructor and Description |
|---|
BCFSplitGuesser(htsjdk.samtools.seekablestream.SeekableStream ss)
The stream must point to a valid BCF file, because the header is read
from it.
|
BCFSplitGuesser(htsjdk.samtools.seekablestream.SeekableStream ss,
InputStream headerStream) |
| Modifier and Type | Method and Description |
|---|---|
protected int |
getUShort(int idx) |
long |
guessNextBCFRecordStart(long beg,
long end)
Finds a (virtual in the case of BGZF) BCF record position in the
physical position range [beg,end).
|
protected BaseSplitGuesser.PosSize |
guessNextBGZFPos(int p,
int end) |
boolean |
isBGZF() |
static void |
main(String[] args) |
protected static final int BGZF_MAGIC
protected static final int BGZF_MAGIC_SUB
protected static final int BGZF_SUB_SIZE
protected htsjdk.samtools.seekablestream.SeekableStream in
protected final ByteBuffer buf
public BCFSplitGuesser(htsjdk.samtools.seekablestream.SeekableStream ss)
throws IOException
IOExceptionpublic BCFSplitGuesser(htsjdk.samtools.seekablestream.SeekableStream ss,
InputStream headerStream)
throws IOException
IOExceptionpublic boolean isBGZF()
public long guessNextBCFRecordStart(long beg,
long end)
throws IOException
IOExceptionpublic static void main(String[] args) throws IOException
IOExceptionprotected BaseSplitGuesser.PosSize guessNextBGZFPos(int p, int end)
protected int getUShort(int idx)
Copyright © 2016. All rights reserved.