public final class AlignmentCollectionHandler extends Object implements ProtobuffCollectionHandler
| Modifier and Type | Class and Description |
|---|---|
protected class |
AlignmentCollectionHandler.CombinedLists |
| Modifier and Type | Field and Description |
|---|---|
static DynamicOptionClient |
doc |
boolean |
enableDomainOptimizations |
protected it.unimi.dsi.fastutil.ints.IntList |
linkOffsetOptimization |
protected it.unimi.dsi.fastutil.ints.Int2ObjectMap<AlignmentCollectionHandler.CombinedLists> |
queryIndex2CombinedInfo |
protected it.unimi.dsi.fastutil.ints.IntArrayList |
varPositionDeltaMods |
static int |
VERSION
The version of the stream that this class reads and writes.
|
TYPE_ALIGNMENTS, TYPE_READS, TYPE_SEQUENCE_BASE_INFO| Constructor and Description |
|---|
AlignmentCollectionHandler() |
| Modifier and Type | Method and Description |
|---|---|
com.google.protobuf.Message |
compressCollection(com.google.protobuf.Message collection,
ByteArrayOutputStream compressedBits)
Transform a collection to a stream of compressed bits, and return the left-over collection.
|
protected boolean |
debug(int level) |
protected void |
decodeArithmetic(String label,
int numEntriesInChunk,
it.unimi.dsi.io.InputBitStream bitInput,
it.unimi.dsi.fastutil.ints.IntList list) |
void |
decodeDeltaModTransform(it.unimi.dsi.fastutil.ints.IntList input,
it.unimi.dsi.fastutil.ints.IntList varPositionsList) |
static int |
decodeQueryAlignedLength(int codedValue,
int targetAlignedLength) |
void |
decodeToLength(it.unimi.dsi.fastutil.ints.IntList fromLengths,
it.unimi.dsi.fastutil.ints.IntList toLengths)
Model toLength as a function of fromLengths.
|
protected void |
decodeVarPositions(String label,
int numEntriesInChunk,
it.unimi.dsi.io.InputBitStream bitInput,
it.unimi.dsi.fastutil.ints.IntList varPositionsList) |
com.google.protobuf.Message |
decompressCollection(com.google.protobuf.Message reducedCollection,
byte[] compressedBytes)
Take a left-over collection and a stream of compressed bits and reconstitute the original collection.
|
it.unimi.dsi.fastutil.ints.IntArrayList |
deltaModTransform(it.unimi.dsi.fastutil.ints.IntList varPositionsList) |
void |
displayStats() |
static DynamicOptionClient |
doc() |
void |
encodeToLength(it.unimi.dsi.fastutil.ints.IntList fromLengths,
it.unimi.dsi.fastutil.ints.IntList toLengths)
Model toLength as a function of fromLengths.
|
int |
getNextLinkOptimizationOffset() |
int |
getType()
Returns the type of the collection elements.
|
boolean |
isEnableDomainOptimizations() |
static int |
modelQueryAlignedLength(int queryAlignedLength,
int targetAlignedLength) |
com.google.protobuf.GeneratedMessage |
parse(InputStream uncompressedStream) |
void |
setDebugLevel(int level) |
void |
setEnableDomainOptimizations(boolean enableDomainOptimizations) |
void |
setUseTemplateCompression(boolean useTemplateCompression) |
protected void |
writeArithmetic(String label,
it.unimi.dsi.fastutil.ints.IntList list,
it.unimi.dsi.io.OutputBitStream out) |
void |
writeRiceCoding(String label,
it.unimi.dsi.fastutil.ints.IntList list,
it.unimi.dsi.io.OutputBitStream out)
Write a list with Rice/Golomb coding
|
public static DynamicOptionClient doc
public boolean enableDomainOptimizations
public static final int VERSION
protected final it.unimi.dsi.fastutil.ints.Int2ObjectMap<AlignmentCollectionHandler.CombinedLists> queryIndex2CombinedInfo
protected it.unimi.dsi.fastutil.ints.IntList linkOffsetOptimization
protected final it.unimi.dsi.fastutil.ints.IntArrayList varPositionDeltaMods
public boolean isEnableDomainOptimizations()
public void setEnableDomainOptimizations(boolean enableDomainOptimizations)
public static DynamicOptionClient doc()
public int getType()
ProtobuffCollectionHandlergetType in interface ProtobuffCollectionHandlerpublic com.google.protobuf.GeneratedMessage parse(InputStream uncompressedStream) throws IOException
parse in interface ProtobuffCollectionHandlerIOExceptionpublic com.google.protobuf.Message compressCollection(com.google.protobuf.Message collection,
ByteArrayOutputStream compressedBits)
throws IOException
ProtobuffCollectionHandlercompressCollection in interface ProtobuffCollectionHandlercollection - collection to compresscompressedBits - stream of compressed bits.IOExceptionpublic com.google.protobuf.Message decompressCollection(com.google.protobuf.Message reducedCollection,
byte[] compressedBytes)
throws IOException
ProtobuffCollectionHandlerdecompressCollection in interface ProtobuffCollectionHandlerIOExceptionpublic void setUseTemplateCompression(boolean useTemplateCompression)
setUseTemplateCompression in interface ProtobuffCollectionHandlerpublic void displayStats()
protected final boolean debug(int level)
public void writeRiceCoding(String label, it.unimi.dsi.fastutil.ints.IntList list, it.unimi.dsi.io.OutputBitStream out) throws IOException
label - list - out - IOExceptionprotected final void decodeArithmetic(String label, int numEntriesInChunk, it.unimi.dsi.io.InputBitStream bitInput, it.unimi.dsi.fastutil.ints.IntList list) throws IOException
IOExceptionprotected final void writeArithmetic(String label, it.unimi.dsi.fastutil.ints.IntList list, it.unimi.dsi.io.OutputBitStream out) throws IOException
IOExceptionpublic void encodeToLength(it.unimi.dsi.fastutil.ints.IntList fromLengths,
it.unimi.dsi.fastutil.ints.IntList toLengths)
fromLengths - toLengths - public void decodeToLength(it.unimi.dsi.fastutil.ints.IntList fromLengths,
it.unimi.dsi.fastutil.ints.IntList toLengths)
fromLengths - toLengths - public it.unimi.dsi.fastutil.ints.IntArrayList deltaModTransform(it.unimi.dsi.fastutil.ints.IntList varPositionsList)
protected final void decodeVarPositions(String label, int numEntriesInChunk, it.unimi.dsi.io.InputBitStream bitInput, it.unimi.dsi.fastutil.ints.IntList varPositionsList) throws IOException
IOExceptionpublic void decodeDeltaModTransform(it.unimi.dsi.fastutil.ints.IntList input,
it.unimi.dsi.fastutil.ints.IntList varPositionsList)
public static int modelQueryAlignedLength(int queryAlignedLength,
int targetAlignedLength)
public static int decodeQueryAlignedLength(int codedValue,
int targetAlignedLength)
public int getNextLinkOptimizationOffset()
public void setDebugLevel(int level)
Copyright © 2017 Campagne Laboratory. All rights reserved.