public class BAMSplitGuesser 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 |
|---|
BAMSplitGuesser(htsjdk.samtools.seekablestream.SeekableStream ss,
org.apache.hadoop.conf.Configuration conf)
The stream must point to a valid BAM file, because the header is read
from it.
|
BAMSplitGuesser(htsjdk.samtools.seekablestream.SeekableStream ss,
InputStream headerStream,
org.apache.hadoop.conf.Configuration conf) |
| Modifier and Type | Method and Description |
|---|---|
protected int |
getUShort(int idx) |
long |
guessNextBAMRecordStart(long beg,
long end)
Finds a virtual BAM record position in the physical position range
[beg,end).
|
protected BaseSplitGuesser.PosSize |
guessNextBGZFPos(int p,
int end) |
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 BAMSplitGuesser(htsjdk.samtools.seekablestream.SeekableStream ss,
org.apache.hadoop.conf.Configuration conf)
throws IOException
IOExceptionpublic BAMSplitGuesser(htsjdk.samtools.seekablestream.SeekableStream ss,
InputStream headerStream,
org.apache.hadoop.conf.Configuration conf)
throws IOException
IOExceptionpublic long guessNextBAMRecordStart(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.