java.lang.AutoCloseable, java.io.CloseableAsIsBref3Writer, CompressBref3Writerpublic interface BrefWriter
extends java.io.Closeable
Interface BrefWrites writes phased, non-missing genotypes to a
binary reference format (bref) file. The close() method must
be called after the last invocation of the write() method
in order to ensure that any buffered data are written to the output
binary reference file.
Instances of class BrefWriter are not thread-safe.
| Modifier and Type | Field | Description |
|---|---|---|
static byte |
ALLELE_CODED |
The byte value denoting an allele coded record
|
static int |
END_OF_DATA |
The end of file code for a bref file.
|
static long |
END_OF_INDEX |
The integer denoting denoting the end of the index in a bref file
|
static int |
MAGIC_NUMBER_V2 |
The initial integer in a bref version 2 file.
|
static int |
MAGIC_NUMBER_V3 |
The initial integer in a bref version 3 file.
|
static byte |
SEQ_CODED |
The byte value denoting a sequence coded record
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
Flushes any buffered output and releases any system resources that are
held by this
BrefWriter. |
Samples |
samples() |
Returns the list of samples.
|
void |
write(RefGTRec rec) |
Writes the specified phased genotype data in binary reference format.
|
static final int END_OF_DATA
static final long END_OF_INDEX
static final int MAGIC_NUMBER_V2
static final int MAGIC_NUMBER_V3
static final byte SEQ_CODED
static final byte ALLELE_CODED
Samples samples()
void write(RefGTRec rec)
this.close()
has previously been invoked, or if
rec.samples().equals(this.samples()) == false.rec - phased genotype datajava.lang.NullPointerException - if rec == nullvoid close()
BrefWriter. The Java virtual machine will exit
with an error message if an I/O error occurs during method execution.close in interface java.lang.AutoCloseableclose in interface java.io.Closeable